Skip to content

Commit 1237e59

Browse files
begnicMike Turquette
authored andcommitted
clk: ux500: Pass clock base adresses in initcall for u8540 and u9540
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>
1 parent 8823598 commit 1237e59

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎arch/arm/mach-ux500/cpu.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ void __init ux500_init_irq(void)
7676
} else if (cpu_is_u9540()) {
7777
prcmu_early_init(U8500_PRCMU_BASE, SZ_8K - 1);
7878
ux500_pm_init(U8500_PRCMU_BASE, SZ_8K - 1);
79-
u8500_clk_init(U8500_CLKRST1_BASE, U8500_CLKRST2_BASE,
79+
u9540_clk_init(U8500_CLKRST1_BASE, U8500_CLKRST2_BASE,
8080
U8500_CLKRST3_BASE, U8500_CLKRST5_BASE,
8181
U8500_CLKRST6_BASE);
8282
} else if (cpu_is_u8540()) {
8383
prcmu_early_init(U8500_PRCMU_BASE, SZ_8K + SZ_4K - 1);
8484
ux500_pm_init(U8500_PRCMU_BASE, SZ_8K + SZ_4K - 1);
85-
u8540_clk_init();
85+
u8540_clk_init(U8500_CLKRST1_BASE, U8500_CLKRST2_BASE,
86+
U8500_CLKRST3_BASE, U8500_CLKRST5_BASE,
87+
U8500_CLKRST6_BASE);
8688
}
8789
}
8890

‎drivers/clk/ux500/u8540_clk.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
#include <linux/clk-provider.h>
1313
#include <linux/mfd/dbx500-prcmu.h>
1414
#include <linux/platform_data/clk-ux500.h>
15-
1615
#include "clk.h"
1716

18-
void u8540_clk_init(void)
17+
void u8540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
18+
u32 clkrst5_base, u32 clkrst6_base)
1919
{
2020
/* register clocks here */
2121
}

‎drivers/clk/ux500/u9540_clk.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
#include <linux/clk-provider.h>
1313
#include <linux/mfd/dbx500-prcmu.h>
1414
#include <linux/platform_data/clk-ux500.h>
15-
1615
#include "clk.h"
1716

18-
void u9540_clk_init(void)
17+
void u9540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
18+
u32 clkrst5_base, u32 clkrst6_base)
1919
{
2020
/* register clocks here */
2121
}

‎include/linux/platform_data/clk-ux500.h‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
void u8500_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
1414
u32 clkrst5_base, u32 clkrst6_base);
15-
void u9540_clk_init(void);
16-
void u8540_clk_init(void);
15+
void u9540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
16+
u32 clkrst5_base, u32 clkrst6_base);
17+
void u8540_clk_init(u32 clkrst1_base, u32 clkrst2_base, u32 clkrst3_base,
18+
u32 clkrst5_base, u32 clkrst6_base);
1719

1820
#endif /* __CLK_UX500_H */

0 commit comments

Comments
 (0)