|
339 | 339 | #define GENERALIO_ACD_CHANNEL_3 0x3f0c |
340 | 340 | #define GENERALIO_ACD_MASK 0x3f14 |
341 | 341 |
|
342 | | -static const unsigned long cmu_top_clk_regs[] __initconst = { |
| 342 | +static const unsigned long top_clk_regs[] __initconst = { |
343 | 343 | PLL_LOCKTIME_PLL_SHARED0, |
344 | 344 | PLL_LOCKTIME_PLL_SHARED1, |
345 | 345 | PLL_LOCKTIME_PLL_SHARED2, |
@@ -638,7 +638,7 @@ static const unsigned long cmu_top_clk_regs[] __initconst = { |
638 | 638 | GENERALIO_ACD_MASK, |
639 | 639 | }; |
640 | 640 |
|
641 | | -static const struct samsung_pll_clock cmu_top_pll_clks[] __initconst = { |
| 641 | +static const struct samsung_pll_clock top_pll_clks[] __initconst = { |
642 | 642 | /* CMU_TOP_PURECLKCOMP */ |
643 | 643 | PLL(pll_0517x, CLK_FOUT_SHARED0_PLL, "fout_shared0_pll", "oscclk", |
644 | 644 | PLL_LOCKTIME_PLL_SHARED0, PLL_CON3_PLL_SHARED0, |
@@ -952,7 +952,7 @@ PNAME(mout_cmu_cmuref_p) = { "mout_cmu_top_boost_option1", |
952 | 952 | * For gates remove _UID _BLK _IPCLKPORT and _RSTNSYNC |
953 | 953 | */ |
954 | 954 |
|
955 | | -static const struct samsung_mux_clock cmu_top_mux_clks[] __initconst = { |
| 955 | +static const struct samsung_mux_clock top_mux_clks[] __initconst = { |
956 | 956 | MUX(CLK_MOUT_PLL_SHARED0, "mout_pll_shared0", mout_pll_shared0_p, |
957 | 957 | PLL_CON0_PLL_SHARED0, 4, 1), |
958 | 958 | MUX(CLK_MOUT_PLL_SHARED1, "mout_pll_shared1", mout_pll_shared1_p, |
@@ -1108,7 +1108,7 @@ static const struct samsung_mux_clock cmu_top_mux_clks[] __initconst = { |
1108 | 1108 | CLK_CON_MUX_MUX_CMU_CMUREF, 0, 1), |
1109 | 1109 | }; |
1110 | 1110 |
|
1111 | | -static const struct samsung_div_clock cmu_top_div_clks[] __initconst = { |
| 1111 | +static const struct samsung_div_clock top_div_clks[] __initconst = { |
1112 | 1112 | DIV(CLK_DOUT_CMU_BO_BUS, "dout_cmu_bo_bus", "gout_cmu_bo_bus", |
1113 | 1113 | CLK_CON_DIV_CLKCMU_BO_BUS, 0, 4), |
1114 | 1114 | DIV(CLK_DOUT_CMU_BUS0_BUS, "dout_cmu_bus0_bus", "gout_cmu_bus0_bus", |
@@ -1253,13 +1253,13 @@ static const struct samsung_div_clock cmu_top_div_clks[] __initconst = { |
1253 | 1253 | "mout_pll_shared3", CLK_CON_DIV_PLL_SHARED3_DIV2, 0, 1), |
1254 | 1254 | }; |
1255 | 1255 |
|
1256 | | -static const struct samsung_fixed_factor_clock cmu_top_ffactor[] __initconst = { |
| 1256 | +static const struct samsung_fixed_factor_clock top_ffactor_clks[] __initconst = { |
1257 | 1257 | FFACTOR(CLK_DOUT_CMU_HSI0_USBDPDBG, "dout_cmu_hsi0_usbdpdbg", |
1258 | 1258 | "gout_cmu_hsi0_usbdpdbg", 1, 4, 0), |
1259 | 1259 | FFACTOR(CLK_DOUT_CMU_OTP, "dout_cmu_otp", "oscclk", 1, 8, 0), |
1260 | 1260 | }; |
1261 | 1261 |
|
1262 | | -static const struct samsung_gate_clock cmu_top_gate_clks[] __initconst = { |
| 1262 | +static const struct samsung_gate_clock top_gate_clks[] __initconst = { |
1263 | 1263 | GATE(CLK_GOUT_CMU_BUS0_BOOST, "gout_cmu_bus0_boost", |
1264 | 1264 | "mout_cmu_boost_option1", CLK_CON_GAT_CLKCMU_BUS0_BOOST, 21, 0, 0), |
1265 | 1265 | GATE(CLK_GOUT_CMU_BUS1_BOOST, "gout_cmu_bus1_boost", |
@@ -1425,19 +1425,19 @@ static const struct samsung_gate_clock cmu_top_gate_clks[] __initconst = { |
1425 | 1425 | }; |
1426 | 1426 |
|
1427 | 1427 | static const struct samsung_cmu_info top_cmu_info __initconst = { |
1428 | | - .pll_clks = cmu_top_pll_clks, |
1429 | | - .nr_pll_clks = ARRAY_SIZE(cmu_top_pll_clks), |
1430 | | - .mux_clks = cmu_top_mux_clks, |
1431 | | - .nr_mux_clks = ARRAY_SIZE(cmu_top_mux_clks), |
1432 | | - .div_clks = cmu_top_div_clks, |
1433 | | - .nr_div_clks = ARRAY_SIZE(cmu_top_div_clks), |
1434 | | - .fixed_factor_clks = cmu_top_ffactor, |
1435 | | - .nr_fixed_factor_clks = ARRAY_SIZE(cmu_top_ffactor), |
1436 | | - .gate_clks = cmu_top_gate_clks, |
1437 | | - .nr_gate_clks = ARRAY_SIZE(cmu_top_gate_clks), |
| 1428 | + .pll_clks = top_pll_clks, |
| 1429 | + .nr_pll_clks = ARRAY_SIZE(top_pll_clks), |
| 1430 | + .mux_clks = top_mux_clks, |
| 1431 | + .nr_mux_clks = ARRAY_SIZE(top_mux_clks), |
| 1432 | + .div_clks = top_div_clks, |
| 1433 | + .nr_div_clks = ARRAY_SIZE(top_div_clks), |
| 1434 | + .fixed_factor_clks = top_ffactor_clks, |
| 1435 | + .nr_fixed_factor_clks = ARRAY_SIZE(top_ffactor_clks), |
| 1436 | + .gate_clks = top_gate_clks, |
| 1437 | + .nr_gate_clks = ARRAY_SIZE(top_gate_clks), |
1438 | 1438 | .nr_clk_ids = CLKS_NR_TOP, |
1439 | | - .clk_regs = cmu_top_clk_regs, |
1440 | | - .nr_clk_regs = ARRAY_SIZE(cmu_top_clk_regs), |
| 1439 | + .clk_regs = top_clk_regs, |
| 1440 | + .nr_clk_regs = ARRAY_SIZE(top_clk_regs), |
1441 | 1441 | .auto_clock_gate = true, |
1442 | 1442 | .gate_dbg_offset = GS101_GATE_DBG_OFFSET, |
1443 | 1443 | .option_offset = CMU_CMU_TOP_CONTROLLER_OPTION, |
@@ -2434,15 +2434,15 @@ PNAME(mout_hsi0_usb31drd_p) = { "fout_usb_pll", |
2434 | 2434 | "dout_hsi0_usb31drd", |
2435 | 2435 | "fout_usb_pll" }; |
2436 | 2436 |
|
2437 | | -static const struct samsung_pll_rate_table cmu_hsi0_usb_pll_rates[] __initconst = { |
| 2437 | +static const struct samsung_pll_rate_table hsi0_usb_pll_rates[] __initconst = { |
2438 | 2438 | PLL_35XX_RATE(24576000, 19200000, 150, 6, 5), |
2439 | 2439 | { /* sentinel */ } |
2440 | 2440 | }; |
2441 | 2441 |
|
2442 | | -static const struct samsung_pll_clock cmu_hsi0_pll_clks[] __initconst = { |
| 2442 | +static const struct samsung_pll_clock hsi0_pll_clks[] __initconst = { |
2443 | 2443 | PLL(pll_0518x, CLK_FOUT_USB_PLL, "fout_usb_pll", "oscclk", |
2444 | 2444 | PLL_LOCKTIME_PLL_USB, PLL_CON3_PLL_USB, |
2445 | | - cmu_hsi0_usb_pll_rates), |
| 2445 | + hsi0_usb_pll_rates), |
2446 | 2446 | }; |
2447 | 2447 |
|
2448 | 2448 | static const struct samsung_mux_clock hsi0_mux_clks[] __initconst = { |
@@ -2660,8 +2660,8 @@ static const struct samsung_fixed_rate_clock hsi0_fixed_clks[] __initconst = { |
2660 | 2660 | }; |
2661 | 2661 |
|
2662 | 2662 | static const struct samsung_cmu_info hsi0_cmu_info __initconst = { |
2663 | | - .pll_clks = cmu_hsi0_pll_clks, |
2664 | | - .nr_pll_clks = ARRAY_SIZE(cmu_hsi0_pll_clks), |
| 2663 | + .pll_clks = hsi0_pll_clks, |
| 2664 | + .nr_pll_clks = ARRAY_SIZE(hsi0_pll_clks), |
2665 | 2665 | .mux_clks = hsi0_mux_clks, |
2666 | 2666 | .nr_mux_clks = ARRAY_SIZE(hsi0_mux_clks), |
2667 | 2667 | .div_clks = hsi0_div_clks, |
@@ -2791,7 +2791,7 @@ static const struct samsung_cmu_info hsi0_cmu_info __initconst = { |
2791 | 2791 | #define QCH_CON_UFS_EMBD_QCH_FMP 0x3094 |
2792 | 2792 | #define QUEUE_CTRL_REG_BLK_HSI2_CMU_HSI2 0x3c00 |
2793 | 2793 |
|
2794 | | -static const unsigned long cmu_hsi2_clk_regs[] __initconst = { |
| 2794 | +static const unsigned long hsi2_clk_regs[] __initconst = { |
2795 | 2795 | PLL_CON0_MUX_CLKCMU_HSI2_BUS_USER, |
2796 | 2796 | PLL_CON1_MUX_CLKCMU_HSI2_BUS_USER, |
2797 | 2797 | PLL_CON0_MUX_CLKCMU_HSI2_MMC_CARD_USER, |
@@ -3166,8 +3166,8 @@ static const struct samsung_cmu_info hsi2_cmu_info __initconst = { |
3166 | 3166 | .gate_clks = hsi2_gate_clks, |
3167 | 3167 | .nr_gate_clks = ARRAY_SIZE(hsi2_gate_clks), |
3168 | 3168 | .nr_clk_ids = CLKS_NR_HSI2, |
3169 | | - .clk_regs = cmu_hsi2_clk_regs, |
3170 | | - .nr_clk_regs = ARRAY_SIZE(cmu_hsi2_clk_regs), |
| 3169 | + .clk_regs = hsi2_clk_regs, |
| 3170 | + .nr_clk_regs = ARRAY_SIZE(hsi2_clk_regs), |
3171 | 3171 | .sysreg_clk_regs = dcrg_memclk_sysreg, |
3172 | 3172 | .nr_sysreg_clk_regs = ARRAY_SIZE(dcrg_memclk_sysreg), |
3173 | 3173 | .clk_name = "bus", |
|
0 commit comments