clk: at91: enable AUDIOPLL as source for PCKx on SAMA5D2
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 18 Dec 2018 11:20:48 +0000 (12:20 +0100)
committerStephen Boyd <sboyd@kernel.org>
Wed, 9 Jan 2019 19:49:35 +0000 (11:49 -0800)
Datasheet for SAMA5D2x mentions 6 sources for PCKx, the last being AUDIOPLL.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/sama5d2.c

index d69ad96..ade0636 100644 (file)
@@ -241,13 +241,14 @@ static void __init sama5d2_pmc_setup(struct device_node *np)
        parent_names[2] = "plladivck";
        parent_names[3] = "utmick";
        parent_names[4] = "mck";
+       parent_names[5] = "audiopll_pmcck";
        for (i = 0; i < 3; i++) {
                char name[6];
 
                snprintf(name, sizeof(name), "prog%d", i);
 
                hw = at91_clk_register_programmable(regmap, name,
-                                                   parent_names, 5, i,
+                                                   parent_names, 6, i,
                                                    &at91sam9x5_programmable_layout);
                if (IS_ERR(hw))
                        goto err_free;