Signed-off-by: Sasha Levin <sashal@kernel.org>
---
- drivers/clk/ti/clk-44xx.c | 210 +++++++++++++++++++-------------------
- drivers/clk/ti/clk-54xx.c | 160 ++++++++++++++---------------
- drivers/clk/ti/clkctrl.c | 4 +
+ drivers/clk/ti/clk-44xx.c | 210 +++++++++++++++++++++++-----------------------
+ drivers/clk/ti/clk-54xx.c | 160 +++++++++++++++++------------------
+ drivers/clk/ti/clkctrl.c | 4
3 files changed, 189 insertions(+), 185 deletions(-)
-diff --git a/drivers/clk/ti/clk-44xx.c b/drivers/clk/ti/clk-44xx.c
-index cbf9922d93d4..a38c92153979 100644
--- a/drivers/clk/ti/clk-44xx.c
+++ b/drivers/clk/ti/clk-44xx.c
-@@ -56,7 +56,7 @@ static const struct omap_clkctrl_bit_data omap4_aess_bit_data[] __initconst = {
+@@ -56,7 +56,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap4_func_dmic_abe_gfclk_parents[] __initconst = {
"pad_clks_ck",
"slimbus_clk",
NULL,
-@@ -76,7 +76,7 @@ static const struct omap_clkctrl_bit_data omap4_dmic_bit_data[] __initconst = {
+@@ -76,7 +76,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap4_func_mcasp_abe_gfclk_parents[] __initconst = {
"pad_clks_ck",
"slimbus_clk",
NULL,
-@@ -89,7 +89,7 @@ static const struct omap_clkctrl_bit_data omap4_mcasp_bit_data[] __initconst = {
+@@ -89,7 +89,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap4_func_mcbsp1_gfclk_parents[] __initconst = {
"pad_clks_ck",
"slimbus_clk",
NULL,
-@@ -102,7 +102,7 @@ static const struct omap_clkctrl_bit_data omap4_mcbsp1_bit_data[] __initconst =
+@@ -102,7 +102,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap4_func_mcbsp2_gfclk_parents[] __initconst = {
"pad_clks_ck",
"slimbus_clk",
NULL,
-@@ -115,7 +115,7 @@ static const struct omap_clkctrl_bit_data omap4_mcbsp2_bit_data[] __initconst =
+@@ -115,7 +115,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap4_func_mcbsp3_gfclk_parents[] __initconst = {
"pad_clks_ck",
"slimbus_clk",
NULL,
-@@ -183,18 +183,18 @@ static const struct omap_clkctrl_bit_data omap4_timer8_bit_data[] __initconst =
+@@ -183,18 +183,18 @@ static const struct omap_clkctrl_bit_dat
static const struct omap_clkctrl_reg_data omap4_abe_clkctrl_regs[] __initconst = {
{ OMAP4_L4_ABE_CLKCTRL, NULL, 0, "ocp_abe_iclk" },
{ OMAP4_WD_TIMER3_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
{ 0 },
};
-@@ -287,7 +287,7 @@ static const struct omap_clkctrl_bit_data omap4_fdif_bit_data[] __initconst = {
+@@ -287,7 +287,7 @@ static const struct omap_clkctrl_bit_dat
static const struct omap_clkctrl_reg_data omap4_iss_clkctrl_regs[] __initconst = {
{ OMAP4_ISS_CLKCTRL, omap4_iss_bit_data, CLKF_SW_SUP, "ducati_clk_mux_ck" },
{ 0 },
};
-@@ -320,7 +320,7 @@ static const struct omap_clkctrl_bit_data omap4_dss_core_bit_data[] __initconst
+@@ -320,7 +320,7 @@ static const struct omap_clkctrl_bit_dat
};
static const struct omap_clkctrl_reg_data omap4_l3_dss_clkctrl_regs[] __initconst = {
{ 0 },
};
-@@ -336,7 +336,7 @@ static const struct omap_clkctrl_bit_data omap4_gpu_bit_data[] __initconst = {
+@@ -336,7 +336,7 @@ static const struct omap_clkctrl_bit_dat
};
static const struct omap_clkctrl_reg_data omap4_l3_gfx_clkctrl_regs[] __initconst = {
{ 0 },
};
-@@ -372,12 +372,12 @@ static const struct omap_clkctrl_bit_data omap4_hsi_bit_data[] __initconst = {
+@@ -372,12 +372,12 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap4_usb_host_hs_utmi_p1_clk_parents[] __initconst = {
NULL,
};
-@@ -418,7 +418,7 @@ static const struct omap_clkctrl_bit_data omap4_usb_host_hs_bit_data[] __initcon
+@@ -418,7 +418,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap4_usb_otg_hs_xclk_parents[] __initconst = {
NULL,
};
-@@ -452,14 +452,14 @@ static const struct omap_clkctrl_bit_data omap4_ocp2scp_usb_phy_bit_data[] __ini
+@@ -452,14 +452,14 @@ static const struct omap_clkctrl_bit_dat
};
static const struct omap_clkctrl_reg_data omap4_l3_init_clkctrl_regs[] __initconst = {
{ 0 },
};
-@@ -530,7 +530,7 @@ static const struct omap_clkctrl_bit_data omap4_gpio6_bit_data[] __initconst = {
+@@ -530,7 +530,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap4_per_mcbsp4_gfclk_parents[] __initconst = {
"pad_clks_ck",
NULL,
};
-@@ -570,12 +570,12 @@ static const struct omap_clkctrl_bit_data omap4_slimbus2_bit_data[] __initconst
+@@ -570,12 +570,12 @@ static const struct omap_clkctrl_bit_dat
};
static const struct omap_clkctrl_reg_data omap4_l4_per_clkctrl_regs[] __initconst = {
{ OMAP4_ELM_CLKCTRL, NULL, 0, "l4_div_ck" },
{ OMAP4_GPIO2_CLKCTRL, omap4_gpio2_bit_data, CLKF_HW_SUP, "l4_div_ck" },
{ OMAP4_GPIO3_CLKCTRL, omap4_gpio3_bit_data, CLKF_HW_SUP, "l4_div_ck" },
-@@ -588,14 +588,14 @@ static const struct omap_clkctrl_reg_data omap4_l4_per_clkctrl_regs[] __initcons
+@@ -588,14 +588,14 @@ static const struct omap_clkctrl_reg_dat
{ OMAP4_I2C3_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
{ OMAP4_I2C4_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
{ OMAP4_L4_PER_CLKCTRL, NULL, 0, "l4_div_ck" },
{ OMAP4_UART1_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
{ OMAP4_UART2_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
{ OMAP4_UART3_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
-@@ -630,7 +630,7 @@ static const struct omap_clkctrl_reg_data omap4_l4_wkup_clkctrl_regs[] __initcon
+@@ -630,7 +630,7 @@ static const struct omap_clkctrl_reg_dat
{ OMAP4_L4_WKUP_CLKCTRL, NULL, 0, "l4_wkup_clk_mux_ck" },
{ OMAP4_WD_TIMER2_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
{ OMAP4_GPIO1_CLKCTRL, omap4_gpio1_bit_data, CLKF_HW_SUP, "l4_wkup_clk_mux_ck" },
{ OMAP4_COUNTER_32K_CLKCTRL, NULL, 0, "sys_32k_ck" },
{ OMAP4_KBD_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
{ 0 },
-@@ -644,7 +644,7 @@ static const char * const omap4_pmd_stm_clock_mux_ck_parents[] __initconst = {
+@@ -644,7 +644,7 @@ static const char * const omap4_pmd_stm_
};
static const char * const omap4_trace_clk_div_div_ck_parents[] __initconst = {
NULL,
};
-@@ -662,7 +662,7 @@ static const struct omap_clkctrl_div_data omap4_trace_clk_div_div_ck_data __init
+@@ -662,7 +662,7 @@ static const struct omap_clkctrl_div_dat
};
static const char * const omap4_stm_clk_div_ck_parents[] __initconst = {
NULL,
};
-@@ -716,73 +716,73 @@ static struct ti_dt_clk omap44xx_clks[] = {
+@@ -716,73 +716,73 @@ static struct ti_dt_clk omap44xx_clks[]
* hwmod support. Once hwmod is removed, these can be removed
* also.
*/
{ .node_name = NULL },
};
-diff --git a/drivers/clk/ti/clk-54xx.c b/drivers/clk/ti/clk-54xx.c
-index 04a5408085ac..8694bc9f5fc7 100644
--- a/drivers/clk/ti/clk-54xx.c
+++ b/drivers/clk/ti/clk-54xx.c
-@@ -50,7 +50,7 @@ static const struct omap_clkctrl_bit_data omap5_aess_bit_data[] __initconst = {
+@@ -50,7 +50,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap5_dmic_gfclk_parents[] __initconst = {
"pad_clks_ck",
"slimbus_clk",
NULL,
-@@ -70,7 +70,7 @@ static const struct omap_clkctrl_bit_data omap5_dmic_bit_data[] __initconst = {
+@@ -70,7 +70,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap5_mcbsp1_gfclk_parents[] __initconst = {
"pad_clks_ck",
"slimbus_clk",
NULL,
-@@ -83,7 +83,7 @@ static const struct omap_clkctrl_bit_data omap5_mcbsp1_bit_data[] __initconst =
+@@ -83,7 +83,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap5_mcbsp2_gfclk_parents[] __initconst = {
"pad_clks_ck",
"slimbus_clk",
NULL,
-@@ -96,7 +96,7 @@ static const struct omap_clkctrl_bit_data omap5_mcbsp2_bit_data[] __initconst =
+@@ -96,7 +96,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap5_mcbsp3_gfclk_parents[] __initconst = {
"pad_clks_ck",
"slimbus_clk",
NULL,
-@@ -136,16 +136,16 @@ static const struct omap_clkctrl_bit_data omap5_timer8_bit_data[] __initconst =
+@@ -136,16 +136,16 @@ static const struct omap_clkctrl_bit_dat
static const struct omap_clkctrl_reg_data omap5_abe_clkctrl_regs[] __initconst = {
{ OMAP5_L4_ABE_CLKCTRL, NULL, 0, "abe_iclk" },
{ 0 },
};
-@@ -266,12 +266,12 @@ static const struct omap_clkctrl_bit_data omap5_gpio8_bit_data[] __initconst = {
+@@ -266,12 +266,12 @@ static const struct omap_clkctrl_bit_dat
};
static const struct omap_clkctrl_reg_data omap5_l4per_clkctrl_regs[] __initconst = {
{ OMAP5_GPIO2_CLKCTRL, omap5_gpio2_bit_data, CLKF_HW_SUP, "l4_root_clk_div" },
{ OMAP5_GPIO3_CLKCTRL, omap5_gpio3_bit_data, CLKF_HW_SUP, "l4_root_clk_div" },
{ OMAP5_GPIO4_CLKCTRL, omap5_gpio4_bit_data, CLKF_HW_SUP, "l4_root_clk_div" },
-@@ -343,7 +343,7 @@ static const struct omap_clkctrl_bit_data omap5_dss_core_bit_data[] __initconst
+@@ -343,7 +343,7 @@ static const struct omap_clkctrl_bit_dat
};
static const struct omap_clkctrl_reg_data omap5_dss_clkctrl_regs[] __initconst = {
{ 0 },
};
-@@ -376,7 +376,7 @@ static const struct omap_clkctrl_bit_data omap5_gpu_core_bit_data[] __initconst
+@@ -376,7 +376,7 @@ static const struct omap_clkctrl_bit_dat
};
static const struct omap_clkctrl_reg_data omap5_gpu_clkctrl_regs[] __initconst = {
{ 0 },
};
-@@ -387,7 +387,7 @@ static const char * const omap5_mmc1_fclk_mux_parents[] __initconst = {
+@@ -387,7 +387,7 @@ static const char * const omap5_mmc1_fcl
};
static const char * const omap5_mmc1_fclk_parents[] __initconst = {
NULL,
};
-@@ -403,7 +403,7 @@ static const struct omap_clkctrl_bit_data omap5_mmc1_bit_data[] __initconst = {
+@@ -403,7 +403,7 @@ static const struct omap_clkctrl_bit_dat
};
static const char * const omap5_mmc2_fclk_parents[] __initconst = {
NULL,
};
-@@ -428,12 +428,12 @@ static const char * const omap5_usb_host_hs_hsic480m_p3_clk_parents[] __initcons
+@@ -428,12 +428,12 @@ static const char * const omap5_usb_host
};
static const char * const omap5_usb_host_hs_utmi_p1_clk_parents[] __initconst = {
NULL,
};
-@@ -492,8 +492,8 @@ static const struct omap_clkctrl_bit_data omap5_usb_otg_ss_bit_data[] __initcons
+@@ -492,8 +492,8 @@ static const struct omap_clkctrl_bit_dat
};
static const struct omap_clkctrl_reg_data omap5_l3init_clkctrl_regs[] __initconst = {
{ OMAP5_USB_HOST_HS_CLKCTRL, omap5_usb_host_hs_bit_data, CLKF_SW_SUP, "l3init_60m_fclk" },
{ OMAP5_USB_TLL_HS_CLKCTRL, omap5_usb_tll_hs_bit_data, CLKF_HW_SUP, "l4_root_clk_div" },
{ OMAP5_SATA_CLKCTRL, omap5_sata_bit_data, CLKF_SW_SUP, "func_48m_fclk" },
-@@ -517,7 +517,7 @@ static const struct omap_clkctrl_reg_data omap5_wkupaon_clkctrl_regs[] __initcon
+@@ -517,7 +517,7 @@ static const struct omap_clkctrl_reg_dat
{ OMAP5_L4_WKUP_CLKCTRL, NULL, 0, "wkupaon_iclk_mux" },
{ OMAP5_WD_TIMER2_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
{ OMAP5_GPIO1_CLKCTRL, omap5_gpio1_bit_data, CLKF_HW_SUP, "wkupaon_iclk_mux" },
{ OMAP5_COUNTER_32K_CLKCTRL, NULL, 0, "wkupaon_iclk_mux" },
{ OMAP5_KBD_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
{ 0 },
-@@ -547,58 +547,58 @@ const struct omap_clkctrl_data omap5_clkctrl_data[] __initconst = {
+@@ -547,58 +547,58 @@ const struct omap_clkctrl_data omap5_clk
static struct ti_dt_clk omap54xx_clks[] = {
DT_CLK(NULL, "timer_32k_ck", "sys_32k_ck"),
DT_CLK(NULL, "sys_clkin_ck", "sys_clkin"),
{ .node_name = NULL },
};
-diff --git a/drivers/clk/ti/clkctrl.c b/drivers/clk/ti/clkctrl.c
-index 08a85c559f79..864c484bde1b 100644
--- a/drivers/clk/ti/clkctrl.c
+++ b/drivers/clk/ti/clkctrl.c
-@@ -511,6 +511,10 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
+@@ -511,6 +511,10 @@ static void __init _ti_omap4_clkctrl_set
char *c;
u16 soc_mask = 0;
addrp = of_get_address(node, 0, NULL, NULL);
addr = (u32)of_translate_address(node, addrp);
---
-2.35.1
-