clk: at91: add PMC sama5d2 support
Add support for the new sama5d2 SoC and adapt capabilities. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:

committed by
Stephen Boyd

parent
36844bdf65
commit
a5752e57bb
@@ -206,6 +206,14 @@ static const struct at91_pmc_caps at91sam9x5_caps = {
|
||||
AT91_PMC_MOSCRCS | AT91_PMC_CFDEV,
|
||||
};
|
||||
|
||||
static const struct at91_pmc_caps sama5d2_caps = {
|
||||
.available_irqs = AT91_PMC_MOSCS | AT91_PMC_LOCKA | AT91_PMC_MCKRDY |
|
||||
AT91_PMC_LOCKU | AT91_PMC_PCK0RDY |
|
||||
AT91_PMC_PCK1RDY | AT91_PMC_PCK2RDY |
|
||||
AT91_PMC_MOSCSELS | AT91_PMC_MOSCRCS |
|
||||
AT91_PMC_CFDEV | AT91_PMC_GCKRDY,
|
||||
};
|
||||
|
||||
static const struct at91_pmc_caps sama5d3_caps = {
|
||||
.available_irqs = AT91_PMC_MOSCS | AT91_PMC_LOCKA | AT91_PMC_MCKRDY |
|
||||
AT91_PMC_LOCKU | AT91_PMC_PCK0RDY |
|
||||
@@ -436,6 +444,13 @@ static void __init of_at91sam9x5_pmc_setup(struct device_node *np)
|
||||
CLK_OF_DECLARE(at91sam9x5_clk_pmc, "atmel,at91sam9x5-pmc",
|
||||
of_at91sam9x5_pmc_setup);
|
||||
|
||||
static void __init of_sama5d2_pmc_setup(struct device_node *np)
|
||||
{
|
||||
of_at91_pmc_setup(np, &sama5d2_caps);
|
||||
}
|
||||
CLK_OF_DECLARE(sama5d2_clk_pmc, "atmel,sama5d2-pmc",
|
||||
of_sama5d2_pmc_setup);
|
||||
|
||||
static void __init of_sama5d3_pmc_setup(struct device_node *np)
|
||||
{
|
||||
of_at91_pmc_setup(np, &sama5d3_caps);
|
||||
|
Reference in New Issue
Block a user