diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2016-10-23 14:19:29 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-11-01 17:47:01 -0700 |
commit | fb16d9e50a3351048b56cdb479b52a91f66ac9f9 (patch) | |
tree | 4cad7e7578b4039b4e4d13657464cbca2b1491e6 /drivers/clk/pxa/clk-pxa25x.c | |
parent | 7c5145191b2c5351ebc049f9a7108a6548889d56 (diff) |
clk: pxa: export core clocks
pxaxxx_get_clk_frequency_khz() needs several clocks to be available
through clk_get(), ie. the cpu clocks, system bus clock and memory
clocks.
Add the missing clkdev so that their rate can be acquired.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/pxa/clk-pxa25x.c')
-rw-r--r-- | drivers/clk/pxa/clk-pxa25x.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/clk/pxa/clk-pxa25x.c b/drivers/clk/pxa/clk-pxa25x.c index 3bb603a27f2b..6a3009eec830 100644 --- a/drivers/clk/pxa/clk-pxa25x.c +++ b/drivers/clk/pxa/clk-pxa25x.c @@ -189,8 +189,10 @@ RATE_RO_OPS(clk_pxa25x_cpll, "cpll"); static void __init pxa25x_register_core(void) { - clk_register_clk_pxa25x_cpll(); - clk_register_clk_pxa25x_run(); + clkdev_pxa_register(CLK_NONE, "cpll", NULL, + clk_register_clk_pxa25x_cpll()); + clkdev_pxa_register(CLK_NONE, "run", NULL, + clk_register_clk_pxa25x_run()); clkdev_pxa_register(CLK_CORE, "core", NULL, clk_register_clk_pxa25x_core()); } @@ -212,7 +214,8 @@ static void __init pxa25x_base_clocks_init(void) { pxa25x_register_plls(); pxa25x_register_core(); - clk_register_clk_pxa25x_memory(); + clkdev_pxa_register(CLK_NONE, "system_bus", NULL, + clk_register_clk_pxa25x_memory()); } #define DUMMY_CLK(_con_id, _dev_id, _parent) \ |