aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/samsung/clk-exynos5440.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/samsung/clk-exynos5440.c')
-rw-r--r--drivers/clk/samsung/clk-exynos5440.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/clk/samsung/clk-exynos5440.c b/drivers/clk/samsung/clk-exynos5440.c
index c57cff1e1798..a57d01b99b76 100644
--- a/drivers/clk/samsung/clk-exynos5440.c
+++ b/drivers/clk/samsung/clk-exynos5440.c
@@ -35,7 +35,7 @@ static struct samsung_fixed_rate_clock exynos5440_fixed_rate_ext_clks[] __initda
35}; 35};
36 36
37/* fixed rate clocks */ 37/* fixed rate clocks */
38static struct samsung_fixed_rate_clock exynos5440_fixed_rate_clks[] __initdata = { 38static const struct samsung_fixed_rate_clock exynos5440_fixed_rate_clks[] __initconst = {
39 FRATE(0, "ppll", NULL, 0, 1000000000), 39 FRATE(0, "ppll", NULL, 0, 1000000000),
40 FRATE(0, "usb_phy0", NULL, 0, 60000000), 40 FRATE(0, "usb_phy0", NULL, 0, 60000000),
41 FRATE(0, "usb_phy1", NULL, 0, 60000000), 41 FRATE(0, "usb_phy1", NULL, 0, 60000000),
@@ -44,26 +44,26 @@ static struct samsung_fixed_rate_clock exynos5440_fixed_rate_clks[] __initdata =
44}; 44};
45 45
46/* fixed factor clocks */ 46/* fixed factor clocks */
47static struct samsung_fixed_factor_clock exynos5440_fixed_factor_clks[] __initdata = { 47static const struct samsung_fixed_factor_clock exynos5440_fixed_factor_clks[] __initconst = {
48 FFACTOR(0, "div250", "ppll", 1, 4, 0), 48 FFACTOR(0, "div250", "ppll", 1, 4, 0),
49 FFACTOR(0, "div200", "ppll", 1, 5, 0), 49 FFACTOR(0, "div200", "ppll", 1, 5, 0),
50 FFACTOR(0, "div125", "div250", 1, 2, 0), 50 FFACTOR(0, "div125", "div250", 1, 2, 0),
51}; 51};
52 52
53/* mux clocks */ 53/* mux clocks */
54static struct samsung_mux_clock exynos5440_mux_clks[] __initdata = { 54static const struct samsung_mux_clock exynos5440_mux_clks[] __initconst = {
55 MUX(0, "mout_spi", mout_spi_p, MISC_DOUT1, 5, 1), 55 MUX(0, "mout_spi", mout_spi_p, MISC_DOUT1, 5, 1),
56 MUX_A(CLK_ARM_CLK, "arm_clk", mout_armclk_p, 56 MUX_A(CLK_ARM_CLK, "arm_clk", mout_armclk_p,
57 CPU_CLK_STATUS, 0, 1, "armclk"), 57 CPU_CLK_STATUS, 0, 1, "armclk"),
58}; 58};
59 59
60/* divider clocks */ 60/* divider clocks */
61static struct samsung_div_clock exynos5440_div_clks[] __initdata = { 61static const struct samsung_div_clock exynos5440_div_clks[] __initconst = {
62 DIV(CLK_SPI_BAUD, "div_spi", "mout_spi", MISC_DOUT1, 3, 2), 62 DIV(CLK_SPI_BAUD, "div_spi", "mout_spi", MISC_DOUT1, 3, 2),
63}; 63};
64 64
65/* gate clocks */ 65/* gate clocks */
66static struct samsung_gate_clock exynos5440_gate_clks[] __initdata = { 66static const struct samsung_gate_clock exynos5440_gate_clks[] __initconst = {
67 GATE(CLK_PB0_250, "pb0_250", "div250", CLKEN_OV_VAL, 3, 0, 0), 67 GATE(CLK_PB0_250, "pb0_250", "div250", CLKEN_OV_VAL, 3, 0, 0),
68 GATE(CLK_PR0_250, "pr0_250", "div250", CLKEN_OV_VAL, 4, 0, 0), 68 GATE(CLK_PR0_250, "pr0_250", "div250", CLKEN_OV_VAL, 4, 0, 0),
69 GATE(CLK_PR1_250, "pr1_250", "div250", CLKEN_OV_VAL, 5, 0, 0), 69 GATE(CLK_PR1_250, "pr1_250", "div250", CLKEN_OV_VAL, 5, 0, 0),
@@ -125,8 +125,6 @@ static void __init exynos5440_clk_init(struct device_node *np)
125 } 125 }
126 126
127 ctx = samsung_clk_init(np, reg_base, CLK_NR_CLKS); 127 ctx = samsung_clk_init(np, reg_base, CLK_NR_CLKS);
128 if (!ctx)
129 panic("%s: unable to allocate context.\n", __func__);
130 128
131 samsung_clk_of_register_fixed_ext(ctx, exynos5440_fixed_rate_ext_clks, 129 samsung_clk_of_register_fixed_ext(ctx, exynos5440_fixed_rate_ext_clks,
132 ARRAY_SIZE(exynos5440_fixed_rate_ext_clks), ext_clk_match); 130 ARRAY_SIZE(exynos5440_fixed_rate_ext_clks), ext_clk_match);