clk: ux500: Pass clock base adresses in initcall for u8540 and u9540
authorPhilippe Begnic <philippe.begnic@st.com>
Mon, 27 May 2013 12:41:29 +0000 (14:41 +0200)
committerMike Turquette <mturquette@linaro.org>
Fri, 7 Jun 2013 01:16:04 +0000 (18:16 -0700)
Align on u8500 version, pass clock base address in clk_init functions
for u8540 and u9540.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Philippe Begnic <philippe.begnic@st.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
arch/arm/mach-ux500/cpu.c
drivers/clk/ux500/u8540_clk.c
drivers/clk/ux500/u9540_clk.c
include/linux/platform_data/clk-ux500.h

index b6145ea5164105dd80a2abafffb569acbd746410..e6fb0239151bdcf5953ac74cc37a0c3b80287c42 100644 (file)
@@ -76,13 +76,15 @@ void __init ux500_init_irq(void)
        } else if (cpu_is_u9540()) {
                prcmu_early_init(U8500_PRCMU_BASE, SZ_8K - 1);
                ux500_pm_init(U8500_PRCMU_BASE, SZ_8K - 1);
-               u8500_clk_init(U8500_CLKRST1_BASE, U8500_CLKRST2_BASE,
+               u9540_clk_init(U8500_CLKRST1_BASE, U8500_CLKRST2_BASE,
                               U8500_CLKRST3_BASE, U8500_CLKRST5_BASE,
                               U8500_CLKRST6_BASE);
        } else if (cpu_is_u8540()) {
                prcmu_early_init(U8500_PRCMU_BASE, SZ_8K + SZ_4K - 1);
                ux500_pm_init(U8500_PRCMU_BASE, SZ_8K + SZ_4K - 1);
-               u8540_clk_init();
+               u8540_clk_init(U8500_CLKRST1_BASE, U8500_CLKRST2_BASE,
+                              U8500_CLKRST3_BASE, U8500_CLKRST5_BASE,
+                              U8500_CLKRST6_BASE);
        }
 }
 
index 10adfd2ead2109e477cba99016fa900d82073fa0..90f3c88694b9b20769b214473fee6b874c598f11 100644 (file)
 #include <linux/clk-provider.h>
 #include <linux/mfd/dbx500-prcmu.h>
 #include <linux/platform_data/clk-ux500.h>
-
 #include "clk.h"
 
-void u8540_clk_init(void)
+void u8540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
+                   u32 clkrst5_base, u32 clkrst6_base)
 {
        /* register clocks here */
 }
index dbc0191e16c8e8aad0863bee6f56525ce93a6a0d..44794782e7e01681414ad123809bf1b8ce35be0b 100644 (file)
 #include <linux/clk-provider.h>
 #include <linux/mfd/dbx500-prcmu.h>
 #include <linux/platform_data/clk-ux500.h>
-
 #include "clk.h"
 
-void u9540_clk_init(void)
+void u9540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
+                   u32 clkrst5_base, u32 clkrst6_base)
 {
        /* register clocks here */
 }
index 320d9c39ea0a17fb98d127ebd71a20741cb1754a..9d98f3aaa16c7637b42a8de33530aab4df9137ac 100644 (file)
@@ -12,7 +12,9 @@
 
 void u8500_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
                    u32 clkrst5_base, u32 clkrst6_base);
-void u9540_clk_init(void);
-void u8540_clk_init(void);
+void u9540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
+                   u32 clkrst5_base, u32 clkrst6_base);
+void u8540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
+                   u32 clkrst5_base, u32 clkrst6_base);
 
 #endif /* __CLK_UX500_H */
This page took 0.027732 seconds and 5 git commands to generate.