diff options
| author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2016-05-11 08:01:59 -0400 |
|---|---|---|
| committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2016-06-02 05:18:01 -0400 |
| commit | 0a7d82e6ee75db55b99096080ff4f12ac9a7aec3 (patch) | |
| tree | 9d467c340969be19fd41b7a12fd07a0f5a426760 /drivers/clk/samsung | |
| parent | b3a96eed8e84780d300b79b58047ea277ba358b7 (diff) | |
clk: samsung: exynos3250: Constify all clock initializers
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Diffstat (limited to 'drivers/clk/samsung')
| -rw-r--r-- | drivers/clk/samsung/clk-exynos3250.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/clk/samsung/clk-exynos3250.c b/drivers/clk/samsung/clk-exynos3250.c index e26b04fea33b..057c3f0d0e35 100644 --- a/drivers/clk/samsung/clk-exynos3250.c +++ b/drivers/clk/samsung/clk-exynos3250.c | |||
| @@ -103,7 +103,7 @@ | |||
| 103 | #define PWR_CTRL1_USE_CORE1_WFI (1 << 1) | 103 | #define PWR_CTRL1_USE_CORE1_WFI (1 << 1) |
| 104 | #define PWR_CTRL1_USE_CORE0_WFI (1 << 0) | 104 | #define PWR_CTRL1_USE_CORE0_WFI (1 << 0) |
| 105 | 105 | ||
| 106 | static unsigned long exynos3250_cmu_clk_regs[] __initdata = { | 106 | static const unsigned long exynos3250_cmu_clk_regs[] __initconst = { |
| 107 | SRC_LEFTBUS, | 107 | SRC_LEFTBUS, |
| 108 | DIV_LEFTBUS, | 108 | DIV_LEFTBUS, |
| 109 | GATE_IP_LEFTBUS, | 109 | GATE_IP_LEFTBUS, |
| @@ -226,7 +226,7 @@ PNAME(group_sclk_fimd0_p) = { "xxti", "xusbxti", | |||
| 226 | PNAME(mout_mfc_p) = { "mout_mfc_0", "mout_mfc_1" }; | 226 | PNAME(mout_mfc_p) = { "mout_mfc_0", "mout_mfc_1" }; |
| 227 | PNAME(mout_g3d_p) = { "mout_g3d_0", "mout_g3d_1" }; | 227 | PNAME(mout_g3d_p) = { "mout_g3d_0", "mout_g3d_1" }; |
| 228 | 228 | ||
| 229 | static struct samsung_fixed_factor_clock fixed_factor_clks[] __initdata = { | 229 | static const struct samsung_fixed_factor_clock fixed_factor_clks[] __initconst = { |
| 230 | FFACTOR(0, "sclk_mpll_1600", "mout_mpll", 1, 1, 0), | 230 | FFACTOR(0, "sclk_mpll_1600", "mout_mpll", 1, 1, 0), |
| 231 | FFACTOR(0, "sclk_mpll_mif", "mout_mpll", 1, 2, 0), | 231 | FFACTOR(0, "sclk_mpll_mif", "mout_mpll", 1, 2, 0), |
| 232 | FFACTOR(0, "sclk_bpll", "fout_bpll", 1, 2, 0), | 232 | FFACTOR(0, "sclk_bpll", "fout_bpll", 1, 2, 0), |
| @@ -237,7 +237,7 @@ static struct samsung_fixed_factor_clock fixed_factor_clks[] __initdata = { | |||
| 237 | FFACTOR(CLK_FIN_PLL, "fin_pll", "xusbxti", 1, 1, 0), | 237 | FFACTOR(CLK_FIN_PLL, "fin_pll", "xusbxti", 1, 1, 0), |
| 238 | }; | 238 | }; |
| 239 | 239 | ||
| 240 | static struct samsung_mux_clock mux_clks[] __initdata = { | 240 | static const struct samsung_mux_clock mux_clks[] __initconst = { |
| 241 | /* | 241 | /* |
| 242 | * NOTE: Following table is sorted by register address in ascending | 242 | * NOTE: Following table is sorted by register address in ascending |
| 243 | * order and then bitfield shift in descending order, as it is done | 243 | * order and then bitfield shift in descending order, as it is done |
| @@ -326,7 +326,7 @@ static struct samsung_mux_clock mux_clks[] __initdata = { | |||
| 326 | CLK_SET_RATE_PARENT, 0), | 326 | CLK_SET_RATE_PARENT, 0), |
| 327 | }; | 327 | }; |
| 328 | 328 | ||
| 329 | static struct samsung_div_clock div_clks[] __initdata = { | 329 | static const struct samsung_div_clock div_clks[] __initconst = { |
| 330 | /* | 330 | /* |
| 331 | * NOTE: Following table is sorted by register address in ascending | 331 | * NOTE: Following table is sorted by register address in ascending |
| 332 | * order and then bitfield shift in descending order, as it is done | 332 | * order and then bitfield shift in descending order, as it is done |
| @@ -429,7 +429,7 @@ static struct samsung_div_clock div_clks[] __initdata = { | |||
| 429 | DIV(CLK_DIV_COPY, "div_copy", "mout_hpm", DIV_CPU1, 0, 3), | 429 | DIV(CLK_DIV_COPY, "div_copy", "mout_hpm", DIV_CPU1, 0, 3), |
| 430 | }; | 430 | }; |
| 431 | 431 | ||
| 432 | static struct samsung_gate_clock gate_clks[] __initdata = { | 432 | static const struct samsung_gate_clock gate_clks[] __initconst = { |
| 433 | /* | 433 | /* |
| 434 | * NOTE: Following table is sorted by register address in ascending | 434 | * NOTE: Following table is sorted by register address in ascending |
| 435 | * order and then bitfield shift in descending order, as it is done | 435 | * order and then bitfield shift in descending order, as it is done |
| @@ -669,7 +669,7 @@ static struct samsung_gate_clock gate_clks[] __initdata = { | |||
| 669 | }; | 669 | }; |
| 670 | 670 | ||
| 671 | /* APLL & MPLL & BPLL & UPLL */ | 671 | /* APLL & MPLL & BPLL & UPLL */ |
| 672 | static struct samsung_pll_rate_table exynos3250_pll_rates[] = { | 672 | static const struct samsung_pll_rate_table exynos3250_pll_rates[] = { |
| 673 | PLL_35XX_RATE(1200000000, 400, 4, 1), | 673 | PLL_35XX_RATE(1200000000, 400, 4, 1), |
| 674 | PLL_35XX_RATE(1100000000, 275, 3, 1), | 674 | PLL_35XX_RATE(1100000000, 275, 3, 1), |
| 675 | PLL_35XX_RATE(1066000000, 533, 6, 1), | 675 | PLL_35XX_RATE(1066000000, 533, 6, 1), |
| @@ -691,7 +691,7 @@ static struct samsung_pll_rate_table exynos3250_pll_rates[] = { | |||
| 691 | }; | 691 | }; |
| 692 | 692 | ||
| 693 | /* EPLL */ | 693 | /* EPLL */ |
| 694 | static struct samsung_pll_rate_table exynos3250_epll_rates[] = { | 694 | static const struct samsung_pll_rate_table exynos3250_epll_rates[] = { |
| 695 | PLL_36XX_RATE(800000000, 200, 3, 1, 0), | 695 | PLL_36XX_RATE(800000000, 200, 3, 1, 0), |
| 696 | PLL_36XX_RATE(288000000, 96, 2, 2, 0), | 696 | PLL_36XX_RATE(288000000, 96, 2, 2, 0), |
| 697 | PLL_36XX_RATE(192000000, 128, 2, 3, 0), | 697 | PLL_36XX_RATE(192000000, 128, 2, 3, 0), |
| @@ -710,7 +710,7 @@ static struct samsung_pll_rate_table exynos3250_epll_rates[] = { | |||
| 710 | }; | 710 | }; |
| 711 | 711 | ||
| 712 | /* VPLL */ | 712 | /* VPLL */ |
| 713 | static struct samsung_pll_rate_table exynos3250_vpll_rates[] = { | 713 | static const struct samsung_pll_rate_table exynos3250_vpll_rates[] __initconst = { |
| 714 | PLL_36XX_RATE(600000000, 100, 2, 1, 0), | 714 | PLL_36XX_RATE(600000000, 100, 2, 1, 0), |
| 715 | PLL_36XX_RATE(533000000, 266, 3, 2, 32768), | 715 | PLL_36XX_RATE(533000000, 266, 3, 2, 32768), |
| 716 | PLL_36XX_RATE(519230987, 173, 2, 2, 5046), | 716 | PLL_36XX_RATE(519230987, 173, 2, 2, 5046), |
| @@ -740,7 +740,7 @@ static struct samsung_pll_rate_table exynos3250_vpll_rates[] = { | |||
| 740 | { /* sentinel */ } | 740 | { /* sentinel */ } |
| 741 | }; | 741 | }; |
| 742 | 742 | ||
| 743 | static struct samsung_pll_clock exynos3250_plls[] __initdata = { | 743 | static const struct samsung_pll_clock exynos3250_plls[] __initconst = { |
| 744 | PLL(pll_35xx, CLK_FOUT_APLL, "fout_apll", "fin_pll", | 744 | PLL(pll_35xx, CLK_FOUT_APLL, "fout_apll", "fin_pll", |
| 745 | APLL_LOCK, APLL_CON0, exynos3250_pll_rates), | 745 | APLL_LOCK, APLL_CON0, exynos3250_pll_rates), |
| 746 | PLL(pll_35xx, CLK_FOUT_MPLL, "fout_mpll", "fin_pll", | 746 | PLL(pll_35xx, CLK_FOUT_MPLL, "fout_mpll", "fin_pll", |
| @@ -772,7 +772,7 @@ static void __init exynos3_core_down_clock(void __iomem *reg_base) | |||
| 772 | __raw_writel(0x0, reg_base + PWR_CTRL2); | 772 | __raw_writel(0x0, reg_base + PWR_CTRL2); |
| 773 | } | 773 | } |
| 774 | 774 | ||
| 775 | static struct samsung_cmu_info cmu_info __initdata = { | 775 | static const struct samsung_cmu_info cmu_info __initconst = { |
| 776 | .pll_clks = exynos3250_plls, | 776 | .pll_clks = exynos3250_plls, |
| 777 | .nr_pll_clks = ARRAY_SIZE(exynos3250_plls), | 777 | .nr_pll_clks = ARRAY_SIZE(exynos3250_plls), |
| 778 | .mux_clks = mux_clks, | 778 | .mux_clks = mux_clks, |
| @@ -848,7 +848,7 @@ CLK_OF_DECLARE(exynos3250_cmu, "samsung,exynos3250-cmu", exynos3250_cmu_init); | |||
| 848 | #define EPLL_CON2 0x111c | 848 | #define EPLL_CON2 0x111c |
| 849 | #define SRC_EPLL 0x1120 | 849 | #define SRC_EPLL 0x1120 |
| 850 | 850 | ||
| 851 | static unsigned long exynos3250_cmu_dmc_clk_regs[] __initdata = { | 851 | static const unsigned long exynos3250_cmu_dmc_clk_regs[] __initconst = { |
| 852 | BPLL_LOCK, | 852 | BPLL_LOCK, |
| 853 | BPLL_CON0, | 853 | BPLL_CON0, |
| 854 | BPLL_CON1, | 854 | BPLL_CON1, |
| @@ -874,7 +874,7 @@ PNAME(mout_bpll_p) = { "fin_pll", "fout_bpll", }; | |||
| 874 | PNAME(mout_mpll_mif_p) = { "fin_pll", "sclk_mpll_mif", }; | 874 | PNAME(mout_mpll_mif_p) = { "fin_pll", "sclk_mpll_mif", }; |
| 875 | PNAME(mout_dphy_p) = { "mout_mpll_mif", "mout_bpll", }; | 875 | PNAME(mout_dphy_p) = { "mout_mpll_mif", "mout_bpll", }; |
| 876 | 876 | ||
| 877 | static struct samsung_mux_clock dmc_mux_clks[] __initdata = { | 877 | static const struct samsung_mux_clock dmc_mux_clks[] __initconst = { |
| 878 | /* | 878 | /* |
| 879 | * NOTE: Following table is sorted by register address in ascending | 879 | * NOTE: Following table is sorted by register address in ascending |
| 880 | * order and then bitfield shift in descending order, as it is done | 880 | * order and then bitfield shift in descending order, as it is done |
| @@ -893,7 +893,7 @@ static struct samsung_mux_clock dmc_mux_clks[] __initdata = { | |||
| 893 | MUX(CLK_MOUT_EPLL, "mout_epll", mout_epll_p, SRC_EPLL, 4, 1), | 893 | MUX(CLK_MOUT_EPLL, "mout_epll", mout_epll_p, SRC_EPLL, 4, 1), |
| 894 | }; | 894 | }; |
| 895 | 895 | ||
| 896 | static struct samsung_div_clock dmc_div_clks[] __initdata = { | 896 | static const struct samsung_div_clock dmc_div_clks[] __initconst = { |
| 897 | /* | 897 | /* |
| 898 | * NOTE: Following table is sorted by register address in ascending | 898 | * NOTE: Following table is sorted by register address in ascending |
| 899 | * order and then bitfield shift in descending order, as it is done | 899 | * order and then bitfield shift in descending order, as it is done |
| @@ -910,14 +910,14 @@ static struct samsung_div_clock dmc_div_clks[] __initdata = { | |||
| 910 | DIV(CLK_DIV_DMCD, "div_dmcd", "div_dmc", DIV_DMC1, 11, 3), | 910 | DIV(CLK_DIV_DMCD, "div_dmcd", "div_dmc", DIV_DMC1, 11, 3), |
| 911 | }; | 911 | }; |
| 912 | 912 | ||
| 913 | static struct samsung_pll_clock exynos3250_dmc_plls[] __initdata = { | 913 | static const struct samsung_pll_clock exynos3250_dmc_plls[] __initconst = { |
| 914 | PLL(pll_35xx, CLK_FOUT_BPLL, "fout_bpll", "fin_pll", | 914 | PLL(pll_35xx, CLK_FOUT_BPLL, "fout_bpll", "fin_pll", |
| 915 | BPLL_LOCK, BPLL_CON0, exynos3250_pll_rates), | 915 | BPLL_LOCK, BPLL_CON0, exynos3250_pll_rates), |
| 916 | PLL(pll_36xx, CLK_FOUT_EPLL, "fout_epll", "fin_pll", | 916 | PLL(pll_36xx, CLK_FOUT_EPLL, "fout_epll", "fin_pll", |
| 917 | EPLL_LOCK, EPLL_CON0, exynos3250_epll_rates), | 917 | EPLL_LOCK, EPLL_CON0, exynos3250_epll_rates), |
| 918 | }; | 918 | }; |
| 919 | 919 | ||
| 920 | static struct samsung_cmu_info dmc_cmu_info __initdata = { | 920 | static const struct samsung_cmu_info dmc_cmu_info __initconst = { |
| 921 | .pll_clks = exynos3250_dmc_plls, | 921 | .pll_clks = exynos3250_dmc_plls, |
| 922 | .nr_pll_clks = ARRAY_SIZE(exynos3250_dmc_plls), | 922 | .nr_pll_clks = ARRAY_SIZE(exynos3250_dmc_plls), |
| 923 | .mux_clks = dmc_mux_clks, | 923 | .mux_clks = dmc_mux_clks, |
| @@ -947,7 +947,7 @@ CLK_OF_DECLARE(exynos3250_cmu_dmc, "samsung,exynos3250-cmu-dmc", | |||
| 947 | #define GATE_IP_ISP1 0x804 | 947 | #define GATE_IP_ISP1 0x804 |
| 948 | #define GATE_SCLK_ISP 0x900 | 948 | #define GATE_SCLK_ISP 0x900 |
| 949 | 949 | ||
| 950 | static struct samsung_div_clock isp_div_clks[] __initdata = { | 950 | static const struct samsung_div_clock isp_div_clks[] __initconst = { |
| 951 | /* | 951 | /* |
| 952 | * NOTE: Following table is sorted by register address in ascending | 952 | * NOTE: Following table is sorted by register address in ascending |
| 953 | * order and then bitfield shift in descending order, as it is done | 953 | * order and then bitfield shift in descending order, as it is done |
| @@ -967,7 +967,7 @@ static struct samsung_div_clock isp_div_clks[] __initdata = { | |||
| 967 | DIV(CLK_DIV_MPWM, "div_mpwm", "div_isp1", DIV_ISP1, 0, 3), | 967 | DIV(CLK_DIV_MPWM, "div_mpwm", "div_isp1", DIV_ISP1, 0, 3), |
| 968 | }; | 968 | }; |
| 969 | 969 | ||
| 970 | static struct samsung_gate_clock isp_gate_clks[] __initdata = { | 970 | static const struct samsung_gate_clock isp_gate_clks[] __initconst = { |
| 971 | /* | 971 | /* |
| 972 | * NOTE: Following table is sorted by register address in ascending | 972 | * NOTE: Following table is sorted by register address in ascending |
| 973 | * order and then bitfield shift in descending order, as it is done | 973 | * order and then bitfield shift in descending order, as it is done |
| @@ -1063,7 +1063,7 @@ static struct samsung_gate_clock isp_gate_clks[] __initdata = { | |||
| 1063 | GATE_SCLK_ISP, 0, CLK_IGNORE_UNUSED, 0), | 1063 | GATE_SCLK_ISP, 0, CLK_IGNORE_UNUSED, 0), |
| 1064 | }; | 1064 | }; |
| 1065 | 1065 | ||
| 1066 | static struct samsung_cmu_info isp_cmu_info __initdata = { | 1066 | static const struct samsung_cmu_info isp_cmu_info __initconst = { |
| 1067 | .div_clks = isp_div_clks, | 1067 | .div_clks = isp_div_clks, |
| 1068 | .nr_div_clks = ARRAY_SIZE(isp_div_clks), | 1068 | .nr_div_clks = ARRAY_SIZE(isp_div_clks), |
| 1069 | .gate_clks = isp_gate_clks, | 1069 | .gate_clks = isp_gate_clks, |
