aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2016-01-12 12:29:18 -0500
committerShawn Guo <shawnguo@kernel.org>2016-02-27 21:45:13 -0500
commit9797d81936d0dc2074f3de1a0458113e1e5ac99f (patch)
tree2598b7f56dac0a092e41b87fecd5d05f82c87a8e
parent81a467efe32a95825062b799521f98bb8273ec84 (diff)
clk: imx: whitespace cleanup; no functional change
remove whitespace before TAB. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Acked-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r--drivers/clk/imx/clk-imx6ul.c62
-rw-r--r--include/dt-bindings/clock/imx6ul-clock.h146
2 files changed, 104 insertions, 104 deletions
diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c
index 79f6f20f8bce..af28b2b1c5f1 100644
--- a/drivers/clk/imx/clk-imx6ul.c
+++ b/drivers/clk/imx/clk-imx6ul.c
@@ -157,9 +157,9 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
157 clk_set_parent(clks[IMX6UL_PLL7_BYPASS], clks[IMX6UL_CLK_PLL7]); 157 clk_set_parent(clks[IMX6UL_PLL7_BYPASS], clks[IMX6UL_CLK_PLL7]);
158 158
159 clks[IMX6UL_CLK_PLL1_SYS] = imx_clk_fixed_factor("pll1_sys", "pll1_bypass", 1, 1); 159 clks[IMX6UL_CLK_PLL1_SYS] = imx_clk_fixed_factor("pll1_sys", "pll1_bypass", 1, 1);
160 clks[IMX6UL_CLK_PLL2_BUS] = imx_clk_gate("pll2_bus", "pll2_bypass", base + 0x30, 13); 160 clks[IMX6UL_CLK_PLL2_BUS] = imx_clk_gate("pll2_bus", "pll2_bypass", base + 0x30, 13);
161 clks[IMX6UL_CLK_PLL3_USB_OTG] = imx_clk_gate("pll3_usb_otg", "pll3_bypass", base + 0x10, 13); 161 clks[IMX6UL_CLK_PLL3_USB_OTG] = imx_clk_gate("pll3_usb_otg", "pll3_bypass", base + 0x10, 13);
162 clks[IMX6UL_CLK_PLL4_AUDIO] = imx_clk_gate("pll4_audio", "pll4_bypass", base + 0x70, 13); 162 clks[IMX6UL_CLK_PLL4_AUDIO] = imx_clk_gate("pll4_audio", "pll4_bypass", base + 0x70, 13);
163 clks[IMX6UL_CLK_PLL5_VIDEO] = imx_clk_gate("pll5_video", "pll5_bypass", base + 0xa0, 13); 163 clks[IMX6UL_CLK_PLL5_VIDEO] = imx_clk_gate("pll5_video", "pll5_bypass", base + 0xa0, 13);
164 clks[IMX6UL_CLK_PLL6_ENET] = imx_clk_gate("pll6_enet", "pll6_bypass", base + 0xe0, 13); 164 clks[IMX6UL_CLK_PLL6_ENET] = imx_clk_gate("pll6_enet", "pll6_bypass", base + 0xe0, 13);
165 clks[IMX6UL_CLK_PLL7_USB_HOST] = imx_clk_gate("pll7_usb_host", "pll7_bypass", base + 0x20, 13); 165 clks[IMX6UL_CLK_PLL7_USB_HOST] = imx_clk_gate("pll7_usb_host", "pll7_bypass", base + 0x20, 13);
@@ -196,8 +196,8 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
196 base + 0xe0, 2, 2, 0, clk_enet_ref_table, &imx_ccm_lock); 196 base + 0xe0, 2, 2, 0, clk_enet_ref_table, &imx_ccm_lock);
197 197
198 clks[IMX6UL_CLK_ENET2_REF_125M] = imx_clk_gate("enet_ref_125m", "enet2_ref", base + 0xe0, 20); 198 clks[IMX6UL_CLK_ENET2_REF_125M] = imx_clk_gate("enet_ref_125m", "enet2_ref", base + 0xe0, 20);
199 clks[IMX6UL_CLK_ENET_PTP_REF] = imx_clk_fixed_factor("enet_ptp_ref", "pll6_enet", 1, 20); 199 clks[IMX6UL_CLK_ENET_PTP_REF] = imx_clk_fixed_factor("enet_ptp_ref", "pll6_enet", 1, 20);
200 clks[IMX6UL_CLK_ENET_PTP] = imx_clk_gate("enet_ptp", "enet_ptp_ref", base + 0xe0, 21); 200 clks[IMX6UL_CLK_ENET_PTP] = imx_clk_gate("enet_ptp", "enet_ptp_ref", base + 0xe0, 21);
201 201
202 clks[IMX6UL_CLK_PLL4_POST_DIV] = clk_register_divider_table(NULL, "pll4_post_div", "pll4_audio", 202 clks[IMX6UL_CLK_PLL4_POST_DIV] = clk_register_divider_table(NULL, "pll4_post_div", "pll4_audio",
203 CLK_SET_RATE_PARENT | CLK_SET_RATE_GATE, base + 0x70, 19, 2, 0, post_div_table, &imx_ccm_lock); 203 CLK_SET_RATE_PARENT | CLK_SET_RATE_GATE, base + 0x70, 19, 2, 0, post_div_table, &imx_ccm_lock);
@@ -210,8 +210,8 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
210 210
211 /* name parent_name mult div */ 211 /* name parent_name mult div */
212 clks[IMX6UL_CLK_PLL2_198M] = imx_clk_fixed_factor("pll2_198m", "pll2_pfd2_396m", 1, 2); 212 clks[IMX6UL_CLK_PLL2_198M] = imx_clk_fixed_factor("pll2_198m", "pll2_pfd2_396m", 1, 2);
213 clks[IMX6UL_CLK_PLL3_80M] = imx_clk_fixed_factor("pll3_80m", "pll3_usb_otg", 1, 6); 213 clks[IMX6UL_CLK_PLL3_80M] = imx_clk_fixed_factor("pll3_80m", "pll3_usb_otg", 1, 6);
214 clks[IMX6UL_CLK_PLL3_60M] = imx_clk_fixed_factor("pll3_60m", "pll3_usb_otg", 1, 8); 214 clks[IMX6UL_CLK_PLL3_60M] = imx_clk_fixed_factor("pll3_60m", "pll3_usb_otg", 1, 8);
215 clks[IMX6UL_CLK_GPT_3M] = imx_clk_fixed_factor("gpt_3m", "osc", 1, 8); 215 clks[IMX6UL_CLK_GPT_3M] = imx_clk_fixed_factor("gpt_3m", "osc", 1, 8);
216 216
217 np = ccm_node; 217 np = ccm_node;
@@ -219,34 +219,34 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
219 WARN_ON(!base); 219 WARN_ON(!base);
220 220
221 clks[IMX6UL_CA7_SECONDARY_SEL] = imx_clk_mux("ca7_secondary_sel", base + 0xc, 3, 1, ca7_secondary_sels, ARRAY_SIZE(ca7_secondary_sels)); 221 clks[IMX6UL_CA7_SECONDARY_SEL] = imx_clk_mux("ca7_secondary_sel", base + 0xc, 3, 1, ca7_secondary_sels, ARRAY_SIZE(ca7_secondary_sels));
222 clks[IMX6UL_CLK_STEP] = imx_clk_mux("step", base + 0x0c, 8, 1, step_sels, ARRAY_SIZE(step_sels)); 222 clks[IMX6UL_CLK_STEP] = imx_clk_mux("step", base + 0x0c, 8, 1, step_sels, ARRAY_SIZE(step_sels));
223 clks[IMX6UL_CLK_PLL1_SW] = imx_clk_mux_flags("pll1_sw", base + 0x0c, 2, 1, pll1_sw_sels, ARRAY_SIZE(pll1_sw_sels), 0); 223 clks[IMX6UL_CLK_PLL1_SW] = imx_clk_mux_flags("pll1_sw", base + 0x0c, 2, 1, pll1_sw_sels, ARRAY_SIZE(pll1_sw_sels), 0);
224 clks[IMX6UL_CLK_AXI_ALT_SEL] = imx_clk_mux("axi_alt_sel", base + 0x14, 7, 1, axi_alt_sels, ARRAY_SIZE(axi_alt_sels)); 224 clks[IMX6UL_CLK_AXI_ALT_SEL] = imx_clk_mux("axi_alt_sel", base + 0x14, 7, 1, axi_alt_sels, ARRAY_SIZE(axi_alt_sels));
225 clks[IMX6UL_CLK_AXI_SEL] = imx_clk_mux_flags("axi_sel", base + 0x14, 6, 1, axi_sels, ARRAY_SIZE(axi_sels), 0); 225 clks[IMX6UL_CLK_AXI_SEL] = imx_clk_mux_flags("axi_sel", base + 0x14, 6, 1, axi_sels, ARRAY_SIZE(axi_sels), 0);
226 clks[IMX6UL_CLK_PERIPH_PRE] = imx_clk_mux("periph_pre", base + 0x18, 18, 2, periph_pre_sels, ARRAY_SIZE(periph_pre_sels)); 226 clks[IMX6UL_CLK_PERIPH_PRE] = imx_clk_mux("periph_pre", base + 0x18, 18, 2, periph_pre_sels, ARRAY_SIZE(periph_pre_sels));
227 clks[IMX6UL_CLK_PERIPH2_PRE] = imx_clk_mux("periph2_pre", base + 0x18, 21, 2, periph2_pre_sels, ARRAY_SIZE(periph2_pre_sels)); 227 clks[IMX6UL_CLK_PERIPH2_PRE] = imx_clk_mux("periph2_pre", base + 0x18, 21, 2, periph2_pre_sels, ARRAY_SIZE(periph2_pre_sels));
228 clks[IMX6UL_CLK_PERIPH_CLK2_SEL] = imx_clk_mux("periph_clk2_sel", base + 0x18, 12, 2, periph_clk2_sels, ARRAY_SIZE(periph_clk2_sels)); 228 clks[IMX6UL_CLK_PERIPH_CLK2_SEL] = imx_clk_mux("periph_clk2_sel", base + 0x18, 12, 2, periph_clk2_sels, ARRAY_SIZE(periph_clk2_sels));
229 clks[IMX6UL_CLK_PERIPH2_CLK2_SEL] = imx_clk_mux("periph2_clk2_sel", base + 0x18, 20, 1, periph2_clk2_sels, ARRAY_SIZE(periph2_clk2_sels)); 229 clks[IMX6UL_CLK_PERIPH2_CLK2_SEL] = imx_clk_mux("periph2_clk2_sel", base + 0x18, 20, 1, periph2_clk2_sels, ARRAY_SIZE(periph2_clk2_sels));
230 clks[IMX6UL_CLK_EIM_SLOW_SEL] = imx_clk_mux("eim_slow_sel", base + 0x1c, 29, 2, eim_slow_sels, ARRAY_SIZE(eim_slow_sels)); 230 clks[IMX6UL_CLK_EIM_SLOW_SEL] = imx_clk_mux("eim_slow_sel", base + 0x1c, 29, 2, eim_slow_sels, ARRAY_SIZE(eim_slow_sels));
231 clks[IMX6UL_CLK_GPMI_SEL] = imx_clk_mux("gpmi_sel", base + 0x1c, 19, 1, gpmi_sels, ARRAY_SIZE(gpmi_sels)); 231 clks[IMX6UL_CLK_GPMI_SEL] = imx_clk_mux("gpmi_sel", base + 0x1c, 19, 1, gpmi_sels, ARRAY_SIZE(gpmi_sels));
232 clks[IMX6UL_CLK_BCH_SEL] = imx_clk_mux("bch_sel", base + 0x1c, 18, 1, bch_sels, ARRAY_SIZE(bch_sels)); 232 clks[IMX6UL_CLK_BCH_SEL] = imx_clk_mux("bch_sel", base + 0x1c, 18, 1, bch_sels, ARRAY_SIZE(bch_sels));
233 clks[IMX6UL_CLK_USDHC2_SEL] = imx_clk_mux("usdhc2_sel", base + 0x1c, 17, 1, usdhc_sels, ARRAY_SIZE(usdhc_sels)); 233 clks[IMX6UL_CLK_USDHC2_SEL] = imx_clk_mux("usdhc2_sel", base + 0x1c, 17, 1, usdhc_sels, ARRAY_SIZE(usdhc_sels));
234 clks[IMX6UL_CLK_USDHC1_SEL] = imx_clk_mux("usdhc1_sel", base + 0x1c, 16, 1, usdhc_sels, ARRAY_SIZE(usdhc_sels)); 234 clks[IMX6UL_CLK_USDHC1_SEL] = imx_clk_mux("usdhc1_sel", base + 0x1c, 16, 1, usdhc_sels, ARRAY_SIZE(usdhc_sels));
235 clks[IMX6UL_CLK_SAI3_SEL] = imx_clk_mux("sai3_sel", base + 0x1c, 14, 2, sai_sels, ARRAY_SIZE(sai_sels)); 235 clks[IMX6UL_CLK_SAI3_SEL] = imx_clk_mux("sai3_sel", base + 0x1c, 14, 2, sai_sels, ARRAY_SIZE(sai_sels));
236 clks[IMX6UL_CLK_SAI2_SEL] = imx_clk_mux("sai2_sel", base + 0x1c, 12, 2, sai_sels, ARRAY_SIZE(sai_sels)); 236 clks[IMX6UL_CLK_SAI2_SEL] = imx_clk_mux("sai2_sel", base + 0x1c, 12, 2, sai_sels, ARRAY_SIZE(sai_sels));
237 clks[IMX6UL_CLK_SAI1_SEL] = imx_clk_mux("sai1_sel", base + 0x1c, 10, 2, sai_sels, ARRAY_SIZE(sai_sels)); 237 clks[IMX6UL_CLK_SAI1_SEL] = imx_clk_mux("sai1_sel", base + 0x1c, 10, 2, sai_sels, ARRAY_SIZE(sai_sels));
238 clks[IMX6UL_CLK_QSPI1_SEL] = imx_clk_mux("qspi1_sel", base + 0x1c, 7, 3, qspi1_sels, ARRAY_SIZE(qspi1_sels)); 238 clks[IMX6UL_CLK_QSPI1_SEL] = imx_clk_mux("qspi1_sel", base + 0x1c, 7, 3, qspi1_sels, ARRAY_SIZE(qspi1_sels));
239 clks[IMX6UL_CLK_PERCLK_SEL] = imx_clk_mux("perclk_sel", base + 0x1c, 6, 1, perclk_sels, ARRAY_SIZE(perclk_sels)); 239 clks[IMX6UL_CLK_PERCLK_SEL] = imx_clk_mux("perclk_sel", base + 0x1c, 6, 1, perclk_sels, ARRAY_SIZE(perclk_sels));
240 clks[IMX6UL_CLK_CAN_SEL] = imx_clk_mux("can_sel", base + 0x20, 8, 2, can_sels, ARRAY_SIZE(can_sels)); 240 clks[IMX6UL_CLK_CAN_SEL] = imx_clk_mux("can_sel", base + 0x20, 8, 2, can_sels, ARRAY_SIZE(can_sels));
241 clks[IMX6UL_CLK_UART_SEL] = imx_clk_mux("uart_sel", base + 0x24, 6, 1, uart_sels, ARRAY_SIZE(uart_sels)); 241 clks[IMX6UL_CLK_UART_SEL] = imx_clk_mux("uart_sel", base + 0x24, 6, 1, uart_sels, ARRAY_SIZE(uart_sels));
242 clks[IMX6UL_CLK_ENFC_SEL] = imx_clk_mux("enfc_sel", base + 0x2c, 15, 3, enfc_sels, ARRAY_SIZE(enfc_sels)); 242 clks[IMX6UL_CLK_ENFC_SEL] = imx_clk_mux("enfc_sel", base + 0x2c, 15, 3, enfc_sels, ARRAY_SIZE(enfc_sels));
243 clks[IMX6UL_CLK_LDB_DI0_SEL] = imx_clk_mux("ldb_di0_sel", base + 0x2c, 9, 3, ldb_di0_sels, ARRAY_SIZE(ldb_di0_sels)); 243 clks[IMX6UL_CLK_LDB_DI0_SEL] = imx_clk_mux("ldb_di0_sel", base + 0x2c, 9, 3, ldb_di0_sels, ARRAY_SIZE(ldb_di0_sels));
244 clks[IMX6UL_CLK_SPDIF_SEL] = imx_clk_mux("spdif_sel", base + 0x30, 20, 2, spdif_sels, ARRAY_SIZE(spdif_sels)); 244 clks[IMX6UL_CLK_SPDIF_SEL] = imx_clk_mux("spdif_sel", base + 0x30, 20, 2, spdif_sels, ARRAY_SIZE(spdif_sels));
245 clks[IMX6UL_CLK_SIM_PRE_SEL] = imx_clk_mux("sim_pre_sel", base + 0x34, 15, 3, sim_pre_sels, ARRAY_SIZE(sim_pre_sels)); 245 clks[IMX6UL_CLK_SIM_PRE_SEL] = imx_clk_mux("sim_pre_sel", base + 0x34, 15, 3, sim_pre_sels, ARRAY_SIZE(sim_pre_sels));
246 clks[IMX6UL_CLK_SIM_SEL] = imx_clk_mux("sim_sel", base + 0x34, 9, 3, sim_sels, ARRAY_SIZE(sim_sels)); 246 clks[IMX6UL_CLK_SIM_SEL] = imx_clk_mux("sim_sel", base + 0x34, 9, 3, sim_sels, ARRAY_SIZE(sim_sels));
247 clks[IMX6UL_CLK_ECSPI_SEL] = imx_clk_mux("ecspi_sel", base + 0x38, 18, 1, ecspi_sels, ARRAY_SIZE(ecspi_sels)); 247 clks[IMX6UL_CLK_ECSPI_SEL] = imx_clk_mux("ecspi_sel", base + 0x38, 18, 1, ecspi_sels, ARRAY_SIZE(ecspi_sels));
248 clks[IMX6UL_CLK_LCDIF_PRE_SEL] = imx_clk_mux("lcdif_pre_sel", base + 0x38, 15, 3, lcdif_pre_sels, ARRAY_SIZE(lcdif_pre_sels)); 248 clks[IMX6UL_CLK_LCDIF_PRE_SEL] = imx_clk_mux("lcdif_pre_sel", base + 0x38, 15, 3, lcdif_pre_sels, ARRAY_SIZE(lcdif_pre_sels));
249 clks[IMX6UL_CLK_LCDIF_SEL] = imx_clk_mux("lcdif_sel", base + 0x38, 9, 3, lcdif_sels, ARRAY_SIZE(lcdif_sels)); 249 clks[IMX6UL_CLK_LCDIF_SEL] = imx_clk_mux("lcdif_sel", base + 0x38, 9, 3, lcdif_sels, ARRAY_SIZE(lcdif_sels));
250 250
251 clks[IMX6UL_CLK_LDB_DI0_DIV_SEL] = imx_clk_mux("ldb_di0", base + 0x20, 10, 1, ldb_di0_div_sels, ARRAY_SIZE(ldb_di0_div_sels)); 251 clks[IMX6UL_CLK_LDB_DI0_DIV_SEL] = imx_clk_mux("ldb_di0", base + 0x20, 10, 1, ldb_di0_div_sels, ARRAY_SIZE(ldb_di0_div_sels));
252 clks[IMX6UL_CLK_LDB_DI1_DIV_SEL] = imx_clk_mux("ldb_di1", base + 0x20, 11, 1, ldb_di1_div_sels, ARRAY_SIZE(ldb_di1_div_sels)); 252 clks[IMX6UL_CLK_LDB_DI1_DIV_SEL] = imx_clk_mux("ldb_di1", base + 0x20, 11, 1, ldb_di1_div_sels, ARRAY_SIZE(ldb_di1_div_sels));
@@ -259,11 +259,11 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
259 clks[IMX6UL_CLK_PERIPH] = imx_clk_busy_mux("periph", base + 0x14, 25, 1, base + 0x48, 5, periph_sels, ARRAY_SIZE(periph_sels)); 259 clks[IMX6UL_CLK_PERIPH] = imx_clk_busy_mux("periph", base + 0x14, 25, 1, base + 0x48, 5, periph_sels, ARRAY_SIZE(periph_sels));
260 clks[IMX6UL_CLK_PERIPH2] = imx_clk_busy_mux("periph2", base + 0x14, 26, 1, base + 0x48, 3, periph2_sels, ARRAY_SIZE(periph2_sels)); 260 clks[IMX6UL_CLK_PERIPH2] = imx_clk_busy_mux("periph2", base + 0x14, 26, 1, base + 0x48, 3, periph2_sels, ARRAY_SIZE(periph2_sels));
261 261
262 clks[IMX6UL_CLK_PERIPH_CLK2] = imx_clk_divider("periph_clk2", "periph_clk2_sel", base + 0x14, 27, 3); 262 clks[IMX6UL_CLK_PERIPH_CLK2] = imx_clk_divider("periph_clk2", "periph_clk2_sel", base + 0x14, 27, 3);
263 clks[IMX6UL_CLK_PERIPH2_CLK2] = imx_clk_divider("periph2_clk2", "periph2_clk2_sel", base + 0x14, 0, 3); 263 clks[IMX6UL_CLK_PERIPH2_CLK2] = imx_clk_divider("periph2_clk2", "periph2_clk2_sel", base + 0x14, 0, 3);
264 clks[IMX6UL_CLK_IPG] = imx_clk_divider("ipg", "ahb", base + 0x14, 8, 2); 264 clks[IMX6UL_CLK_IPG] = imx_clk_divider("ipg", "ahb", base + 0x14, 8, 2);
265 clks[IMX6UL_CLK_LCDIF_PODF] = imx_clk_divider("lcdif_podf", "lcdif_pred", base + 0x18, 23, 3); 265 clks[IMX6UL_CLK_LCDIF_PODF] = imx_clk_divider("lcdif_podf", "lcdif_pred", base + 0x18, 23, 3);
266 clks[IMX6UL_CLK_QSPI1_PDOF] = imx_clk_divider("qspi1_podf", "qspi1_sel", base + 0x1c, 26, 3); 266 clks[IMX6UL_CLK_QSPI1_PDOF] = imx_clk_divider("qspi1_podf", "qspi1_sel", base + 0x1c, 26, 3);
267 clks[IMX6UL_CLK_EIM_SLOW_PODF] = imx_clk_divider("eim_slow_podf", "eim_slow_sel", base + 0x1c, 23, 3); 267 clks[IMX6UL_CLK_EIM_SLOW_PODF] = imx_clk_divider("eim_slow_podf", "eim_slow_sel", base + 0x1c, 23, 3);
268 clks[IMX6UL_CLK_PERCLK] = imx_clk_divider("perclk", "perclk_sel", base + 0x1c, 0, 6); 268 clks[IMX6UL_CLK_PERCLK] = imx_clk_divider("perclk", "perclk_sel", base + 0x1c, 0, 6);
269 clks[IMX6UL_CLK_CAN_PODF] = imx_clk_divider("can_podf", "can_sel", base + 0x20, 2, 6); 269 clks[IMX6UL_CLK_CAN_PODF] = imx_clk_divider("can_podf", "can_sel", base + 0x20, 2, 6);
@@ -287,14 +287,14 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
287 clks[IMX6UL_CLK_LCDIF_PRED] = imx_clk_divider("lcdif_pred", "lcdif_pre_sel", base + 0x38, 12, 3); 287 clks[IMX6UL_CLK_LCDIF_PRED] = imx_clk_divider("lcdif_pred", "lcdif_pre_sel", base + 0x38, 12, 3);
288 clks[IMX6UL_CLK_CSI_PODF] = imx_clk_divider("csi_podf", "csi_sel", base + 0x3c, 11, 3); 288 clks[IMX6UL_CLK_CSI_PODF] = imx_clk_divider("csi_podf", "csi_sel", base + 0x3c, 11, 3);
289 289
290 clks[IMX6UL_CLK_ARM] = imx_clk_busy_divider("arm", "pll1_sw", base + 0x10, 0, 3, base + 0x48, 16); 290 clks[IMX6UL_CLK_ARM] = imx_clk_busy_divider("arm", "pll1_sw", base + 0x10, 0, 3, base + 0x48, 16);
291 clks[IMX6UL_CLK_MMDC_PODF] = imx_clk_busy_divider("mmdc_podf", "periph2", base + 0x14, 3, 3, base + 0x48, 2); 291 clks[IMX6UL_CLK_MMDC_PODF] = imx_clk_busy_divider("mmdc_podf", "periph2", base + 0x14, 3, 3, base + 0x48, 2);
292 clks[IMX6UL_CLK_AXI_PODF] = imx_clk_busy_divider("axi_podf", "axi_sel", base + 0x14, 16, 3, base + 0x48, 0); 292 clks[IMX6UL_CLK_AXI_PODF] = imx_clk_busy_divider("axi_podf", "axi_sel", base + 0x14, 16, 3, base + 0x48, 0);
293 clks[IMX6UL_CLK_AHB] = imx_clk_busy_divider("ahb", "periph", base + 0x14, 10, 3, base + 0x48, 1); 293 clks[IMX6UL_CLK_AHB] = imx_clk_busy_divider("ahb", "periph", base + 0x14, 10, 3, base + 0x48, 1);
294 294
295 /* CCGR0 */ 295 /* CCGR0 */
296 clks[IMX6UL_CLK_AIPSTZ1] = imx_clk_gate2("aips_tz1", "ahb", base + 0x68, 0); 296 clks[IMX6UL_CLK_AIPSTZ1] = imx_clk_gate2("aips_tz1", "ahb", base + 0x68, 0);
297 clks[IMX6UL_CLK_AIPSTZ2] = imx_clk_gate2("aips_tz2", "ahb", base + 0x68, 2); 297 clks[IMX6UL_CLK_AIPSTZ2] = imx_clk_gate2("aips_tz2", "ahb", base + 0x68, 2);
298 clks[IMX6UL_CLK_APBHDMA] = imx_clk_gate2("apbh_dma", "bch_podf", base + 0x68, 4); 298 clks[IMX6UL_CLK_APBHDMA] = imx_clk_gate2("apbh_dma", "bch_podf", base + 0x68, 4);
299 clks[IMX6UL_CLK_ASRC_IPG] = imx_clk_gate2_shared("asrc_ipg", "ahb", base + 0x68, 6, &share_count_asrc); 299 clks[IMX6UL_CLK_ASRC_IPG] = imx_clk_gate2_shared("asrc_ipg", "ahb", base + 0x68, 6, &share_count_asrc);
300 clks[IMX6UL_CLK_ASRC_MEM] = imx_clk_gate2_shared("asrc_mem", "ahb", base + 0x68, 6, &share_count_asrc); 300 clks[IMX6UL_CLK_ASRC_MEM] = imx_clk_gate2_shared("asrc_mem", "ahb", base + 0x68, 6, &share_count_asrc);
@@ -302,7 +302,7 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
302 clks[IMX6UL_CLK_CAAM_ACLK] = imx_clk_gate2("caam_aclk", "ahb", base + 0x68, 10); 302 clks[IMX6UL_CLK_CAAM_ACLK] = imx_clk_gate2("caam_aclk", "ahb", base + 0x68, 10);
303 clks[IMX6UL_CLK_CAAM_IPG] = imx_clk_gate2("caam_ipg", "ipg", base + 0x68, 12); 303 clks[IMX6UL_CLK_CAAM_IPG] = imx_clk_gate2("caam_ipg", "ipg", base + 0x68, 12);
304 clks[IMX6UL_CLK_CAN1_IPG] = imx_clk_gate2("can1_ipg", "ipg", base + 0x68, 14); 304 clks[IMX6UL_CLK_CAN1_IPG] = imx_clk_gate2("can1_ipg", "ipg", base + 0x68, 14);
305 clks[IMX6UL_CLK_CAN1_SERIAL] = imx_clk_gate2("can1_serial", "can_podf", base + 0x68, 16); 305 clks[IMX6UL_CLK_CAN1_SERIAL] = imx_clk_gate2("can1_serial", "can_podf", base + 0x68, 16);
306 clks[IMX6UL_CLK_CAN2_IPG] = imx_clk_gate2("can2_ipg", "ipg", base + 0x68, 18); 306 clks[IMX6UL_CLK_CAN2_IPG] = imx_clk_gate2("can2_ipg", "ipg", base + 0x68, 18);
307 clks[IMX6UL_CLK_CAN2_SERIAL] = imx_clk_gate2("can2_serial", "can_podf", base + 0x68, 20); 307 clks[IMX6UL_CLK_CAN2_SERIAL] = imx_clk_gate2("can2_serial", "can_podf", base + 0x68, 20);
308 clks[IMX6UL_CLK_GPT2_BUS] = imx_clk_gate2("gpt_bus", "perclk", base + 0x68, 24); 308 clks[IMX6UL_CLK_GPT2_BUS] = imx_clk_gate2("gpt_bus", "perclk", base + 0x68, 24);
@@ -331,7 +331,7 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
331 clks[IMX6UL_CLK_CSI] = imx_clk_gate2("csi", "csi_podf", base + 0x70, 2); 331 clks[IMX6UL_CLK_CSI] = imx_clk_gate2("csi", "csi_podf", base + 0x70, 2);
332 clks[IMX6UL_CLK_I2C1] = imx_clk_gate2("i2c1", "perclk", base + 0x70, 6); 332 clks[IMX6UL_CLK_I2C1] = imx_clk_gate2("i2c1", "perclk", base + 0x70, 6);
333 clks[IMX6UL_CLK_I2C2] = imx_clk_gate2("i2c2", "perclk", base + 0x70, 8); 333 clks[IMX6UL_CLK_I2C2] = imx_clk_gate2("i2c2", "perclk", base + 0x70, 8);
334 clks[IMX6UL_CLK_I2C3] = imx_clk_gate2("i2c3", "perclk", base + 0x70, 10); 334 clks[IMX6UL_CLK_I2C3] = imx_clk_gate2("i2c3", "perclk", base + 0x70, 10);
335 clks[IMX6UL_CLK_OCOTP] = imx_clk_gate2("ocotp", "ipg", base + 0x70, 12); 335 clks[IMX6UL_CLK_OCOTP] = imx_clk_gate2("ocotp", "ipg", base + 0x70, 12);
336 clks[IMX6UL_CLK_IOMUXC] = imx_clk_gate2("iomuxc", "lcdif_podf", base + 0x70, 14); 336 clks[IMX6UL_CLK_IOMUXC] = imx_clk_gate2("iomuxc", "lcdif_podf", base + 0x70, 14);
337 clks[IMX6UL_CLK_LCDIF_APB] = imx_clk_gate2("lcdif_apb", "axi", base + 0x70, 28); 337 clks[IMX6UL_CLK_LCDIF_APB] = imx_clk_gate2("lcdif_apb", "axi", base + 0x70, 28);
@@ -391,7 +391,7 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
391 clks[IMX6UL_CLK_UART8_IPG] = imx_clk_gate2("uart8_ipg", "ipg", base + 0x80, 14); 391 clks[IMX6UL_CLK_UART8_IPG] = imx_clk_gate2("uart8_ipg", "ipg", base + 0x80, 14);
392 clks[IMX6UL_CLK_UART8_SERIAL] = imx_clk_gate2("uart8_serial", "uart_podf", base + 0x80, 14); 392 clks[IMX6UL_CLK_UART8_SERIAL] = imx_clk_gate2("uart8_serial", "uart_podf", base + 0x80, 14);
393 clks[IMX6UL_CLK_WDOG3] = imx_clk_gate2("wdog3", "ipg", base + 0x80, 20); 393 clks[IMX6UL_CLK_WDOG3] = imx_clk_gate2("wdog3", "ipg", base + 0x80, 20);
394 clks[IMX6UL_CLK_I2C4] = imx_clk_gate2("i2c4", "perclk", base + 0x80, 24); 394 clks[IMX6UL_CLK_I2C4] = imx_clk_gate2("i2c4", "perclk", base + 0x80, 24);
395 clks[IMX6UL_CLK_PWM5] = imx_clk_gate2("pwm5", "perclk", base + 0x80, 26); 395 clks[IMX6UL_CLK_PWM5] = imx_clk_gate2("pwm5", "perclk", base + 0x80, 26);
396 clks[IMX6UL_CLK_PWM6] = imx_clk_gate2("pwm6", "perclk", base + 0x80, 28); 396 clks[IMX6UL_CLK_PWM6] = imx_clk_gate2("pwm6", "perclk", base + 0x80, 28);
397 clks[IMX6UL_CLK_PWM7] = imx_clk_gate2("pwm7", "perclk", base + 0x80, 30); 397 clks[IMX6UL_CLK_PWM7] = imx_clk_gate2("pwm7", "perclk", base + 0x80, 30);
diff --git a/include/dt-bindings/clock/imx6ul-clock.h b/include/dt-bindings/clock/imx6ul-clock.h
index c343894ce603..08ce4a7f5432 100644
--- a/include/dt-bindings/clock/imx6ul-clock.h
+++ b/include/dt-bindings/clock/imx6ul-clock.h
@@ -21,13 +21,13 @@
21#define IMX6UL_PLL5_BYPASS_SRC 8 21#define IMX6UL_PLL5_BYPASS_SRC 8
22#define IMX6UL_PLL6_BYPASS_SRC 9 22#define IMX6UL_PLL6_BYPASS_SRC 9
23#define IMX6UL_PLL7_BYPASS_SRC 10 23#define IMX6UL_PLL7_BYPASS_SRC 10
24#define IMX6UL_CLK_PLL1 11 24#define IMX6UL_CLK_PLL1 11
25#define IMX6UL_CLK_PLL2 12 25#define IMX6UL_CLK_PLL2 12
26#define IMX6UL_CLK_PLL3 13 26#define IMX6UL_CLK_PLL3 13
27#define IMX6UL_CLK_PLL4 14 27#define IMX6UL_CLK_PLL4 14
28#define IMX6UL_CLK_PLL5 15 28#define IMX6UL_CLK_PLL5 15
29#define IMX6UL_CLK_PLL6 16 29#define IMX6UL_CLK_PLL6 16
30#define IMX6UL_CLK_PLL7 17 30#define IMX6UL_CLK_PLL7 17
31#define IMX6UL_PLL1_BYPASS 18 31#define IMX6UL_PLL1_BYPASS 18
32#define IMX6UL_PLL2_BYPASS 19 32#define IMX6UL_PLL2_BYPASS 19
33#define IMX6UL_PLL3_BYPASS 20 33#define IMX6UL_PLL3_BYPASS 20
@@ -37,7 +37,7 @@
37#define IMX6UL_PLL7_BYPASS 24 37#define IMX6UL_PLL7_BYPASS 24
38#define IMX6UL_CLK_PLL1_SYS 25 38#define IMX6UL_CLK_PLL1_SYS 25
39#define IMX6UL_CLK_PLL2_BUS 26 39#define IMX6UL_CLK_PLL2_BUS 26
40#define IMX6UL_CLK_PLL3_USB_OTG 27 40#define IMX6UL_CLK_PLL3_USB_OTG 27
41#define IMX6UL_CLK_PLL4_AUDIO 28 41#define IMX6UL_CLK_PLL4_AUDIO 28
42#define IMX6UL_CLK_PLL5_VIDEO 29 42#define IMX6UL_CLK_PLL5_VIDEO 29
43#define IMX6UL_CLK_PLL6_ENET 30 43#define IMX6UL_CLK_PLL6_ENET 30
@@ -66,7 +66,7 @@
66#define IMX6UL_CLK_PLL2_198M 53 66#define IMX6UL_CLK_PLL2_198M 53
67#define IMX6UL_CLK_PLL3_80M 54 67#define IMX6UL_CLK_PLL3_80M 54
68#define IMX6UL_CLK_PLL3_60M 55 68#define IMX6UL_CLK_PLL3_60M 55
69#define IMX6UL_CLK_STEP 56 69#define IMX6UL_CLK_STEP 56
70#define IMX6UL_CLK_PLL1_SW 57 70#define IMX6UL_CLK_PLL1_SW 57
71#define IMX6UL_CLK_AXI_ALT_SEL 58 71#define IMX6UL_CLK_AXI_ALT_SEL 58
72#define IMX6UL_CLK_AXI_SEL 59 72#define IMX6UL_CLK_AXI_SEL 59
@@ -78,7 +78,7 @@
78#define IMX6UL_CLK_USDHC2_SEL 65 78#define IMX6UL_CLK_USDHC2_SEL 65
79#define IMX6UL_CLK_BCH_SEL 66 79#define IMX6UL_CLK_BCH_SEL 66
80#define IMX6UL_CLK_GPMI_SEL 67 80#define IMX6UL_CLK_GPMI_SEL 67
81#define IMX6UL_CLK_EIM_SLOW_SEL 68 81#define IMX6UL_CLK_EIM_SLOW_SEL 68
82#define IMX6UL_CLK_SPDIF_SEL 69 82#define IMX6UL_CLK_SPDIF_SEL 69
83#define IMX6UL_CLK_SAI1_SEL 70 83#define IMX6UL_CLK_SAI1_SEL 70
84#define IMX6UL_CLK_SAI2_SEL 71 84#define IMX6UL_CLK_SAI2_SEL 71
@@ -105,9 +105,9 @@
105#define IMX6UL_CLK_LDB_DI1_DIV_SEL 92 105#define IMX6UL_CLK_LDB_DI1_DIV_SEL 92
106#define IMX6UL_CLK_ARM 93 106#define IMX6UL_CLK_ARM 93
107#define IMX6UL_CLK_PERIPH_CLK2 94 107#define IMX6UL_CLK_PERIPH_CLK2 94
108#define IMX6UL_CLK_PERIPH2_CLK2 95 108#define IMX6UL_CLK_PERIPH2_CLK2 95
109#define IMX6UL_CLK_AHB 96 109#define IMX6UL_CLK_AHB 96
110#define IMX6UL_CLK_MMDC_PODF 97 110#define IMX6UL_CLK_MMDC_PODF 97
111#define IMX6UL_CLK_AXI_PODF 98 111#define IMX6UL_CLK_AXI_PODF 98
112#define IMX6UL_CLK_PERCLK 99 112#define IMX6UL_CLK_PERCLK 99
113#define IMX6UL_CLK_IPG 100 113#define IMX6UL_CLK_IPG 100
@@ -133,16 +133,16 @@
133#define IMX6UL_CLK_CAN_PODF 120 133#define IMX6UL_CLK_CAN_PODF 120
134#define IMX6UL_CLK_ECSPI_PODF 121 134#define IMX6UL_CLK_ECSPI_PODF 121
135#define IMX6UL_CLK_UART_PODF 122 135#define IMX6UL_CLK_UART_PODF 122
136#define IMX6UL_CLK_ADC1 123 136#define IMX6UL_CLK_ADC1 123
137#define IMX6UL_CLK_ADC2 124 137#define IMX6UL_CLK_ADC2 124
138#define IMX6UL_CLK_AIPSTZ1 125 138#define IMX6UL_CLK_AIPSTZ1 125
139#define IMX6UL_CLK_AIPSTZ2 126 139#define IMX6UL_CLK_AIPSTZ2 126
140#define IMX6UL_CLK_AIPSTZ3 127 140#define IMX6UL_CLK_AIPSTZ3 127
141#define IMX6UL_CLK_APBHDMA 128 141#define IMX6UL_CLK_APBHDMA 128
142#define IMX6UL_CLK_ASRC_IPG 129 142#define IMX6UL_CLK_ASRC_IPG 129
143#define IMX6UL_CLK_ASRC_MEM 130 143#define IMX6UL_CLK_ASRC_MEM 130
144#define IMX6UL_CLK_GPMI_BCH_APB 131 144#define IMX6UL_CLK_GPMI_BCH_APB 131
145#define IMX6UL_CLK_GPMI_BCH 132 145#define IMX6UL_CLK_GPMI_BCH 132
146#define IMX6UL_CLK_GPMI_IO 133 146#define IMX6UL_CLK_GPMI_IO 133
147#define IMX6UL_CLK_GPMI_APB 134 147#define IMX6UL_CLK_GPMI_APB 134
148#define IMX6UL_CLK_CAAM_MEM 135 148#define IMX6UL_CLK_CAAM_MEM 135
@@ -154,7 +154,7 @@
154#define IMX6UL_CLK_ECSPI3 141 154#define IMX6UL_CLK_ECSPI3 141
155#define IMX6UL_CLK_ECSPI4 142 155#define IMX6UL_CLK_ECSPI4 142
156#define IMX6UL_CLK_EIM 143 156#define IMX6UL_CLK_EIM 143
157#define IMX6UL_CLK_ENET 144 157#define IMX6UL_CLK_ENET 144
158#define IMX6UL_CLK_ENET_AHB 145 158#define IMX6UL_CLK_ENET_AHB 145
159#define IMX6UL_CLK_EPIT1 146 159#define IMX6UL_CLK_EPIT1 146
160#define IMX6UL_CLK_EPIT2 147 160#define IMX6UL_CLK_EPIT2 147
@@ -166,63 +166,63 @@
166#define IMX6UL_CLK_GPT1_SERIAL 153 166#define IMX6UL_CLK_GPT1_SERIAL 153
167#define IMX6UL_CLK_GPT2_BUS 154 167#define IMX6UL_CLK_GPT2_BUS 154
168#define IMX6UL_CLK_GPT2_SERIAL 155 168#define IMX6UL_CLK_GPT2_SERIAL 155
169#define IMX6UL_CLK_I2C1 156 169#define IMX6UL_CLK_I2C1 156
170#define IMX6UL_CLK_I2C2 157 170#define IMX6UL_CLK_I2C2 157
171#define IMX6UL_CLK_I2C3 158 171#define IMX6UL_CLK_I2C3 158
172#define IMX6UL_CLK_I2C4 159 172#define IMX6UL_CLK_I2C4 159
173#define IMX6UL_CLK_IOMUXC 160 173#define IMX6UL_CLK_IOMUXC 160
174#define IMX6UL_CLK_LCDIF_APB 161 174#define IMX6UL_CLK_LCDIF_APB 161
175#define IMX6UL_CLK_LCDIF_PIX 162 175#define IMX6UL_CLK_LCDIF_PIX 162
176#define IMX6UL_CLK_MMDC_P0_FAST 163 176#define IMX6UL_CLK_MMDC_P0_FAST 163
177#define IMX6UL_CLK_MMDC_P0_IPG 164 177#define IMX6UL_CLK_MMDC_P0_IPG 164
178#define IMX6UL_CLK_OCOTP 165 178#define IMX6UL_CLK_OCOTP 165
179#define IMX6UL_CLK_OCRAM 166 179#define IMX6UL_CLK_OCRAM 166
180#define IMX6UL_CLK_PWM1 167 180#define IMX6UL_CLK_PWM1 167
181#define IMX6UL_CLK_PWM2 168 181#define IMX6UL_CLK_PWM2 168
182#define IMX6UL_CLK_PWM3 169 182#define IMX6UL_CLK_PWM3 169
183#define IMX6UL_CLK_PWM4 170 183#define IMX6UL_CLK_PWM4 170
184#define IMX6UL_CLK_PWM5 171 184#define IMX6UL_CLK_PWM5 171
185#define IMX6UL_CLK_PWM6 172 185#define IMX6UL_CLK_PWM6 172
186#define IMX6UL_CLK_PWM7 173 186#define IMX6UL_CLK_PWM7 173
187#define IMX6UL_CLK_PWM8 174 187#define IMX6UL_CLK_PWM8 174
188#define IMX6UL_CLK_PXP 175 188#define IMX6UL_CLK_PXP 175
189#define IMX6UL_CLK_QSPI 176 189#define IMX6UL_CLK_QSPI 176
190#define IMX6UL_CLK_ROM 177 190#define IMX6UL_CLK_ROM 177
191#define IMX6UL_CLK_SAI1 178 191#define IMX6UL_CLK_SAI1 178
192#define IMX6UL_CLK_SAI1_IPG 179 192#define IMX6UL_CLK_SAI1_IPG 179
193#define IMX6UL_CLK_SAI2 180 193#define IMX6UL_CLK_SAI2 180
194#define IMX6UL_CLK_SAI2_IPG 181 194#define IMX6UL_CLK_SAI2_IPG 181
195#define IMX6UL_CLK_SAI3 182 195#define IMX6UL_CLK_SAI3 182
196#define IMX6UL_CLK_SAI3_IPG 183 196#define IMX6UL_CLK_SAI3_IPG 183
197#define IMX6UL_CLK_SDMA 184 197#define IMX6UL_CLK_SDMA 184
198#define IMX6UL_CLK_SIM 185 198#define IMX6UL_CLK_SIM 185
199#define IMX6UL_CLK_SIM_S 186 199#define IMX6UL_CLK_SIM_S 186
200#define IMX6UL_CLK_SPBA 187 200#define IMX6UL_CLK_SPBA 187
201#define IMX6UL_CLK_SPDIF 188 201#define IMX6UL_CLK_SPDIF 188
202#define IMX6UL_CLK_UART1_IPG 189 202#define IMX6UL_CLK_UART1_IPG 189
203#define IMX6UL_CLK_UART1_SERIAL 190 203#define IMX6UL_CLK_UART1_SERIAL 190
204#define IMX6UL_CLK_UART2_IPG 191 204#define IMX6UL_CLK_UART2_IPG 191
205#define IMX6UL_CLK_UART2_SERIAL 192 205#define IMX6UL_CLK_UART2_SERIAL 192
206#define IMX6UL_CLK_UART3_IPG 193 206#define IMX6UL_CLK_UART3_IPG 193
207#define IMX6UL_CLK_UART3_SERIAL 194 207#define IMX6UL_CLK_UART3_SERIAL 194
208#define IMX6UL_CLK_UART4_IPG 195 208#define IMX6UL_CLK_UART4_IPG 195
209#define IMX6UL_CLK_UART4_SERIAL 196 209#define IMX6UL_CLK_UART4_SERIAL 196
210#define IMX6UL_CLK_UART5_IPG 197 210#define IMX6UL_CLK_UART5_IPG 197
211#define IMX6UL_CLK_UART5_SERIAL 198 211#define IMX6UL_CLK_UART5_SERIAL 198
212#define IMX6UL_CLK_UART6_IPG 199 212#define IMX6UL_CLK_UART6_IPG 199
213#define IMX6UL_CLK_UART6_SERIAL 200 213#define IMX6UL_CLK_UART6_SERIAL 200
214#define IMX6UL_CLK_UART7_IPG 201 214#define IMX6UL_CLK_UART7_IPG 201
215#define IMX6UL_CLK_UART7_SERIAL 202 215#define IMX6UL_CLK_UART7_SERIAL 202
216#define IMX6UL_CLK_UART8_IPG 203 216#define IMX6UL_CLK_UART8_IPG 203
217#define IMX6UL_CLK_UART8_SERIAL 204 217#define IMX6UL_CLK_UART8_SERIAL 204
218#define IMX6UL_CLK_USBOH3 205 218#define IMX6UL_CLK_USBOH3 205
219#define IMX6UL_CLK_USDHC1 206 219#define IMX6UL_CLK_USDHC1 206
220#define IMX6UL_CLK_USDHC2 207 220#define IMX6UL_CLK_USDHC2 207
221#define IMX6UL_CLK_WDOG1 208 221#define IMX6UL_CLK_WDOG1 208
222#define IMX6UL_CLK_WDOG2 209 222#define IMX6UL_CLK_WDOG2 209
223#define IMX6UL_CLK_WDOG3 210 223#define IMX6UL_CLK_WDOG3 210
224#define IMX6UL_CLK_LDB_DI0 211 224#define IMX6UL_CLK_LDB_DI0 211
225#define IMX6UL_CLK_AXI 212 225#define IMX6UL_CLK_AXI 212
226#define IMX6UL_CLK_SPDIF_GCLK 213 226#define IMX6UL_CLK_SPDIF_GCLK 213
227#define IMX6UL_CLK_GPT_3M 214 227#define IMX6UL_CLK_GPT_3M 214
228#define IMX6UL_CLK_SIM2 215 228#define IMX6UL_CLK_SIM2 215