18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * OMAP4 Clock init
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2013 Texas Instruments, Inc.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Tero Kristo (t-kristo@ti.com)
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <linux/kernel.h>
118c2ecf20Sopenharmony_ci#include <linux/list.h>
128c2ecf20Sopenharmony_ci#include <linux/clk.h>
138c2ecf20Sopenharmony_ci#include <linux/clkdev.h>
148c2ecf20Sopenharmony_ci#include <linux/clk/ti.h>
158c2ecf20Sopenharmony_ci#include <dt-bindings/clock/omap4.h>
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#include "clock.h"
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci/*
208c2ecf20Sopenharmony_ci * OMAP4 ABE DPLL default frequency. In OMAP4460 TRM version V, section
218c2ecf20Sopenharmony_ci * "3.6.3.2.3 CM1_ABE Clock Generator" states that the "DPLL_ABE_X2_CLK
228c2ecf20Sopenharmony_ci * must be set to 196.608 MHz" and hence, the DPLL locked frequency is
238c2ecf20Sopenharmony_ci * half of this value.
248c2ecf20Sopenharmony_ci */
258c2ecf20Sopenharmony_ci#define OMAP4_DPLL_ABE_DEFFREQ				98304000
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci/*
288c2ecf20Sopenharmony_ci * OMAP4 USB DPLL default frequency. In OMAP4430 TRM version V, section
298c2ecf20Sopenharmony_ci * "3.6.3.9.5 DPLL_USB Preferred Settings" shows that the preferred
308c2ecf20Sopenharmony_ci * locked frequency for the USB DPLL is 960MHz.
318c2ecf20Sopenharmony_ci */
328c2ecf20Sopenharmony_ci#define OMAP4_DPLL_USB_DEFFREQ				960000000
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_mpuss_clkctrl_regs[] __initconst = {
358c2ecf20Sopenharmony_ci	{ OMAP4_MPU_CLKCTRL, NULL, 0, "dpll_mpu_m2_ck" },
368c2ecf20Sopenharmony_ci	{ 0 },
378c2ecf20Sopenharmony_ci};
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_tesla_clkctrl_regs[] __initconst = {
408c2ecf20Sopenharmony_ci	{ OMAP4_DSP_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_NO_IDLEST, "dpll_iva_m4x2_ck" },
418c2ecf20Sopenharmony_ci	{ 0 },
428c2ecf20Sopenharmony_ci};
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_cistatic const char * const omap4_aess_fclk_parents[] __initconst = {
458c2ecf20Sopenharmony_ci	"abe_clk",
468c2ecf20Sopenharmony_ci	NULL,
478c2ecf20Sopenharmony_ci};
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data omap4_aess_fclk_data __initconst = {
508c2ecf20Sopenharmony_ci	.max_div = 2,
518c2ecf20Sopenharmony_ci};
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_aess_bit_data[] __initconst = {
548c2ecf20Sopenharmony_ci	{ 24, TI_CLK_DIVIDER, omap4_aess_fclk_parents, &omap4_aess_fclk_data },
558c2ecf20Sopenharmony_ci	{ 0 },
568c2ecf20Sopenharmony_ci};
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_cistatic const char * const omap4_func_dmic_abe_gfclk_parents[] __initconst = {
598c2ecf20Sopenharmony_ci	"abe_cm:clk:0018:26",
608c2ecf20Sopenharmony_ci	"pad_clks_ck",
618c2ecf20Sopenharmony_ci	"slimbus_clk",
628c2ecf20Sopenharmony_ci	NULL,
638c2ecf20Sopenharmony_ci};
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_cistatic const char * const omap4_dmic_sync_mux_ck_parents[] __initconst = {
668c2ecf20Sopenharmony_ci	"abe_24m_fclk",
678c2ecf20Sopenharmony_ci	"syc_clk_div_ck",
688c2ecf20Sopenharmony_ci	"func_24m_clk",
698c2ecf20Sopenharmony_ci	NULL,
708c2ecf20Sopenharmony_ci};
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_dmic_bit_data[] __initconst = {
738c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_func_dmic_abe_gfclk_parents, NULL },
748c2ecf20Sopenharmony_ci	{ 26, TI_CLK_MUX, omap4_dmic_sync_mux_ck_parents, NULL },
758c2ecf20Sopenharmony_ci	{ 0 },
768c2ecf20Sopenharmony_ci};
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_cistatic const char * const omap4_func_mcasp_abe_gfclk_parents[] __initconst = {
798c2ecf20Sopenharmony_ci	"abe_cm:clk:0020:26",
808c2ecf20Sopenharmony_ci	"pad_clks_ck",
818c2ecf20Sopenharmony_ci	"slimbus_clk",
828c2ecf20Sopenharmony_ci	NULL,
838c2ecf20Sopenharmony_ci};
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_mcasp_bit_data[] __initconst = {
868c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_func_mcasp_abe_gfclk_parents, NULL },
878c2ecf20Sopenharmony_ci	{ 26, TI_CLK_MUX, omap4_dmic_sync_mux_ck_parents, NULL },
888c2ecf20Sopenharmony_ci	{ 0 },
898c2ecf20Sopenharmony_ci};
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_cistatic const char * const omap4_func_mcbsp1_gfclk_parents[] __initconst = {
928c2ecf20Sopenharmony_ci	"abe_cm:clk:0028:26",
938c2ecf20Sopenharmony_ci	"pad_clks_ck",
948c2ecf20Sopenharmony_ci	"slimbus_clk",
958c2ecf20Sopenharmony_ci	NULL,
968c2ecf20Sopenharmony_ci};
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_mcbsp1_bit_data[] __initconst = {
998c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_func_mcbsp1_gfclk_parents, NULL },
1008c2ecf20Sopenharmony_ci	{ 26, TI_CLK_MUX, omap4_dmic_sync_mux_ck_parents, NULL },
1018c2ecf20Sopenharmony_ci	{ 0 },
1028c2ecf20Sopenharmony_ci};
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_cistatic const char * const omap4_func_mcbsp2_gfclk_parents[] __initconst = {
1058c2ecf20Sopenharmony_ci	"abe_cm:clk:0030:26",
1068c2ecf20Sopenharmony_ci	"pad_clks_ck",
1078c2ecf20Sopenharmony_ci	"slimbus_clk",
1088c2ecf20Sopenharmony_ci	NULL,
1098c2ecf20Sopenharmony_ci};
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_mcbsp2_bit_data[] __initconst = {
1128c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_func_mcbsp2_gfclk_parents, NULL },
1138c2ecf20Sopenharmony_ci	{ 26, TI_CLK_MUX, omap4_dmic_sync_mux_ck_parents, NULL },
1148c2ecf20Sopenharmony_ci	{ 0 },
1158c2ecf20Sopenharmony_ci};
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_cistatic const char * const omap4_func_mcbsp3_gfclk_parents[] __initconst = {
1188c2ecf20Sopenharmony_ci	"abe_cm:clk:0038:26",
1198c2ecf20Sopenharmony_ci	"pad_clks_ck",
1208c2ecf20Sopenharmony_ci	"slimbus_clk",
1218c2ecf20Sopenharmony_ci	NULL,
1228c2ecf20Sopenharmony_ci};
1238c2ecf20Sopenharmony_ci
1248c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_mcbsp3_bit_data[] __initconst = {
1258c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_func_mcbsp3_gfclk_parents, NULL },
1268c2ecf20Sopenharmony_ci	{ 26, TI_CLK_MUX, omap4_dmic_sync_mux_ck_parents, NULL },
1278c2ecf20Sopenharmony_ci	{ 0 },
1288c2ecf20Sopenharmony_ci};
1298c2ecf20Sopenharmony_ci
1308c2ecf20Sopenharmony_cistatic const char * const omap4_slimbus1_fclk_0_parents[] __initconst = {
1318c2ecf20Sopenharmony_ci	"abe_24m_fclk",
1328c2ecf20Sopenharmony_ci	NULL,
1338c2ecf20Sopenharmony_ci};
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_cistatic const char * const omap4_slimbus1_fclk_1_parents[] __initconst = {
1368c2ecf20Sopenharmony_ci	"func_24m_clk",
1378c2ecf20Sopenharmony_ci	NULL,
1388c2ecf20Sopenharmony_ci};
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_cistatic const char * const omap4_slimbus1_fclk_2_parents[] __initconst = {
1418c2ecf20Sopenharmony_ci	"pad_clks_ck",
1428c2ecf20Sopenharmony_ci	NULL,
1438c2ecf20Sopenharmony_ci};
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_cistatic const char * const omap4_slimbus1_slimbus_clk_parents[] __initconst = {
1468c2ecf20Sopenharmony_ci	"slimbus_clk",
1478c2ecf20Sopenharmony_ci	NULL,
1488c2ecf20Sopenharmony_ci};
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_slimbus1_bit_data[] __initconst = {
1518c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_slimbus1_fclk_0_parents, NULL },
1528c2ecf20Sopenharmony_ci	{ 9, TI_CLK_GATE, omap4_slimbus1_fclk_1_parents, NULL },
1538c2ecf20Sopenharmony_ci	{ 10, TI_CLK_GATE, omap4_slimbus1_fclk_2_parents, NULL },
1548c2ecf20Sopenharmony_ci	{ 11, TI_CLK_GATE, omap4_slimbus1_slimbus_clk_parents, NULL },
1558c2ecf20Sopenharmony_ci	{ 0 },
1568c2ecf20Sopenharmony_ci};
1578c2ecf20Sopenharmony_ci
1588c2ecf20Sopenharmony_cistatic const char * const omap4_timer5_sync_mux_parents[] __initconst = {
1598c2ecf20Sopenharmony_ci	"syc_clk_div_ck",
1608c2ecf20Sopenharmony_ci	"sys_32k_ck",
1618c2ecf20Sopenharmony_ci	NULL,
1628c2ecf20Sopenharmony_ci};
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer5_bit_data[] __initconst = {
1658c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_timer5_sync_mux_parents, NULL },
1668c2ecf20Sopenharmony_ci	{ 0 },
1678c2ecf20Sopenharmony_ci};
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer6_bit_data[] __initconst = {
1708c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_timer5_sync_mux_parents, NULL },
1718c2ecf20Sopenharmony_ci	{ 0 },
1728c2ecf20Sopenharmony_ci};
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer7_bit_data[] __initconst = {
1758c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_timer5_sync_mux_parents, NULL },
1768c2ecf20Sopenharmony_ci	{ 0 },
1778c2ecf20Sopenharmony_ci};
1788c2ecf20Sopenharmony_ci
1798c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer8_bit_data[] __initconst = {
1808c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_timer5_sync_mux_parents, NULL },
1818c2ecf20Sopenharmony_ci	{ 0 },
1828c2ecf20Sopenharmony_ci};
1838c2ecf20Sopenharmony_ci
1848c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_abe_clkctrl_regs[] __initconst = {
1858c2ecf20Sopenharmony_ci	{ OMAP4_L4_ABE_CLKCTRL, NULL, 0, "ocp_abe_iclk" },
1868c2ecf20Sopenharmony_ci	{ OMAP4_AESS_CLKCTRL, omap4_aess_bit_data, CLKF_SW_SUP, "abe_cm:clk:0008:24" },
1878c2ecf20Sopenharmony_ci	{ OMAP4_MCPDM_CLKCTRL, NULL, CLKF_SW_SUP, "pad_clks_ck" },
1888c2ecf20Sopenharmony_ci	{ OMAP4_DMIC_CLKCTRL, omap4_dmic_bit_data, CLKF_SW_SUP, "abe_cm:clk:0018:24" },
1898c2ecf20Sopenharmony_ci	{ OMAP4_MCASP_CLKCTRL, omap4_mcasp_bit_data, CLKF_SW_SUP, "abe_cm:clk:0020:24" },
1908c2ecf20Sopenharmony_ci	{ OMAP4_MCBSP1_CLKCTRL, omap4_mcbsp1_bit_data, CLKF_SW_SUP, "abe_cm:clk:0028:24" },
1918c2ecf20Sopenharmony_ci	{ OMAP4_MCBSP2_CLKCTRL, omap4_mcbsp2_bit_data, CLKF_SW_SUP, "abe_cm:clk:0030:24" },
1928c2ecf20Sopenharmony_ci	{ OMAP4_MCBSP3_CLKCTRL, omap4_mcbsp3_bit_data, CLKF_SW_SUP, "abe_cm:clk:0038:24" },
1938c2ecf20Sopenharmony_ci	{ OMAP4_SLIMBUS1_CLKCTRL, omap4_slimbus1_bit_data, CLKF_SW_SUP, "abe_cm:clk:0040:8" },
1948c2ecf20Sopenharmony_ci	{ OMAP4_TIMER5_CLKCTRL, omap4_timer5_bit_data, CLKF_SW_SUP, "abe_cm:clk:0048:24" },
1958c2ecf20Sopenharmony_ci	{ OMAP4_TIMER6_CLKCTRL, omap4_timer6_bit_data, CLKF_SW_SUP, "abe_cm:clk:0050:24" },
1968c2ecf20Sopenharmony_ci	{ OMAP4_TIMER7_CLKCTRL, omap4_timer7_bit_data, CLKF_SW_SUP, "abe_cm:clk:0058:24" },
1978c2ecf20Sopenharmony_ci	{ OMAP4_TIMER8_CLKCTRL, omap4_timer8_bit_data, CLKF_SW_SUP, "abe_cm:clk:0060:24" },
1988c2ecf20Sopenharmony_ci	{ OMAP4_WD_TIMER3_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
1998c2ecf20Sopenharmony_ci	{ 0 },
2008c2ecf20Sopenharmony_ci};
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l4_ao_clkctrl_regs[] __initconst = {
2038c2ecf20Sopenharmony_ci	{ OMAP4_SMARTREFLEX_MPU_CLKCTRL, NULL, CLKF_SW_SUP, "l4_wkup_clk_mux_ck" },
2048c2ecf20Sopenharmony_ci	{ OMAP4_SMARTREFLEX_IVA_CLKCTRL, NULL, CLKF_SW_SUP, "l4_wkup_clk_mux_ck" },
2058c2ecf20Sopenharmony_ci	{ OMAP4_SMARTREFLEX_CORE_CLKCTRL, NULL, CLKF_SW_SUP, "l4_wkup_clk_mux_ck" },
2068c2ecf20Sopenharmony_ci	{ 0 },
2078c2ecf20Sopenharmony_ci};
2088c2ecf20Sopenharmony_ci
2098c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l3_1_clkctrl_regs[] __initconst = {
2108c2ecf20Sopenharmony_ci	{ OMAP4_L3_MAIN_1_CLKCTRL, NULL, 0, "l3_div_ck" },
2118c2ecf20Sopenharmony_ci	{ 0 },
2128c2ecf20Sopenharmony_ci};
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l3_2_clkctrl_regs[] __initconst = {
2158c2ecf20Sopenharmony_ci	{ OMAP4_L3_MAIN_2_CLKCTRL, NULL, 0, "l3_div_ck" },
2168c2ecf20Sopenharmony_ci	{ OMAP4_GPMC_CLKCTRL, NULL, CLKF_HW_SUP, "l3_div_ck" },
2178c2ecf20Sopenharmony_ci	{ OMAP4_OCMC_RAM_CLKCTRL, NULL, 0, "l3_div_ck" },
2188c2ecf20Sopenharmony_ci	{ 0 },
2198c2ecf20Sopenharmony_ci};
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_ducati_clkctrl_regs[] __initconst = {
2228c2ecf20Sopenharmony_ci	{ OMAP4_IPU_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_NO_IDLEST, "ducati_clk_mux_ck" },
2238c2ecf20Sopenharmony_ci	{ 0 },
2248c2ecf20Sopenharmony_ci};
2258c2ecf20Sopenharmony_ci
2268c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l3_dma_clkctrl_regs[] __initconst = {
2278c2ecf20Sopenharmony_ci	{ OMAP4_DMA_SYSTEM_CLKCTRL, NULL, 0, "l3_div_ck" },
2288c2ecf20Sopenharmony_ci	{ 0 },
2298c2ecf20Sopenharmony_ci};
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l3_emif_clkctrl_regs[] __initconst = {
2328c2ecf20Sopenharmony_ci	{ OMAP4_DMM_CLKCTRL, NULL, 0, "l3_div_ck" },
2338c2ecf20Sopenharmony_ci	{ OMAP4_EMIF1_CLKCTRL, NULL, CLKF_HW_SUP, "ddrphy_ck" },
2348c2ecf20Sopenharmony_ci	{ OMAP4_EMIF2_CLKCTRL, NULL, CLKF_HW_SUP, "ddrphy_ck" },
2358c2ecf20Sopenharmony_ci	{ 0 },
2368c2ecf20Sopenharmony_ci};
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_d2d_clkctrl_regs[] __initconst = {
2398c2ecf20Sopenharmony_ci	{ OMAP4_C2C_CLKCTRL, NULL, 0, "div_core_ck" },
2408c2ecf20Sopenharmony_ci	{ 0 },
2418c2ecf20Sopenharmony_ci};
2428c2ecf20Sopenharmony_ci
2438c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l4_cfg_clkctrl_regs[] __initconst = {
2448c2ecf20Sopenharmony_ci	{ OMAP4_L4_CFG_CLKCTRL, NULL, 0, "l4_div_ck" },
2458c2ecf20Sopenharmony_ci	{ OMAP4_SPINLOCK_CLKCTRL, NULL, 0, "l4_div_ck" },
2468c2ecf20Sopenharmony_ci	{ OMAP4_MAILBOX_CLKCTRL, NULL, 0, "l4_div_ck" },
2478c2ecf20Sopenharmony_ci	{ 0 },
2488c2ecf20Sopenharmony_ci};
2498c2ecf20Sopenharmony_ci
2508c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l3_instr_clkctrl_regs[] __initconst = {
2518c2ecf20Sopenharmony_ci	{ OMAP4_L3_MAIN_3_CLKCTRL, NULL, CLKF_HW_SUP, "l3_div_ck" },
2528c2ecf20Sopenharmony_ci	{ OMAP4_L3_INSTR_CLKCTRL, NULL, CLKF_HW_SUP, "l3_div_ck" },
2538c2ecf20Sopenharmony_ci	{ OMAP4_OCP_WP_NOC_CLKCTRL, NULL, CLKF_HW_SUP, "l3_div_ck" },
2548c2ecf20Sopenharmony_ci	{ 0 },
2558c2ecf20Sopenharmony_ci};
2568c2ecf20Sopenharmony_ci
2578c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_ivahd_clkctrl_regs[] __initconst = {
2588c2ecf20Sopenharmony_ci	{ OMAP4_IVA_CLKCTRL, NULL, CLKF_HW_SUP, "dpll_iva_m5x2_ck" },
2598c2ecf20Sopenharmony_ci	{ OMAP4_SL2IF_CLKCTRL, NULL, CLKF_HW_SUP, "dpll_iva_m5x2_ck" },
2608c2ecf20Sopenharmony_ci	{ 0 },
2618c2ecf20Sopenharmony_ci};
2628c2ecf20Sopenharmony_ci
2638c2ecf20Sopenharmony_cistatic const char * const omap4_iss_ctrlclk_parents[] __initconst = {
2648c2ecf20Sopenharmony_ci	"func_96m_fclk",
2658c2ecf20Sopenharmony_ci	NULL,
2668c2ecf20Sopenharmony_ci};
2678c2ecf20Sopenharmony_ci
2688c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_iss_bit_data[] __initconst = {
2698c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_iss_ctrlclk_parents, NULL },
2708c2ecf20Sopenharmony_ci	{ 0 },
2718c2ecf20Sopenharmony_ci};
2728c2ecf20Sopenharmony_ci
2738c2ecf20Sopenharmony_cistatic const char * const omap4_fdif_fck_parents[] __initconst = {
2748c2ecf20Sopenharmony_ci	"dpll_per_m4x2_ck",
2758c2ecf20Sopenharmony_ci	NULL,
2768c2ecf20Sopenharmony_ci};
2778c2ecf20Sopenharmony_ci
2788c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data omap4_fdif_fck_data __initconst = {
2798c2ecf20Sopenharmony_ci	.max_div = 4,
2808c2ecf20Sopenharmony_ci	.flags = CLK_DIVIDER_POWER_OF_TWO,
2818c2ecf20Sopenharmony_ci};
2828c2ecf20Sopenharmony_ci
2838c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_fdif_bit_data[] __initconst = {
2848c2ecf20Sopenharmony_ci	{ 24, TI_CLK_DIVIDER, omap4_fdif_fck_parents, &omap4_fdif_fck_data },
2858c2ecf20Sopenharmony_ci	{ 0 },
2868c2ecf20Sopenharmony_ci};
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_iss_clkctrl_regs[] __initconst = {
2898c2ecf20Sopenharmony_ci	{ OMAP4_ISS_CLKCTRL, omap4_iss_bit_data, CLKF_SW_SUP, "ducati_clk_mux_ck" },
2908c2ecf20Sopenharmony_ci	{ OMAP4_FDIF_CLKCTRL, omap4_fdif_bit_data, CLKF_SW_SUP, "iss_cm:clk:0008:24" },
2918c2ecf20Sopenharmony_ci	{ 0 },
2928c2ecf20Sopenharmony_ci};
2938c2ecf20Sopenharmony_ci
2948c2ecf20Sopenharmony_cistatic const char * const omap4_dss_dss_clk_parents[] __initconst = {
2958c2ecf20Sopenharmony_ci	"dpll_per_m5x2_ck",
2968c2ecf20Sopenharmony_ci	NULL,
2978c2ecf20Sopenharmony_ci};
2988c2ecf20Sopenharmony_ci
2998c2ecf20Sopenharmony_cistatic const char * const omap4_dss_48mhz_clk_parents[] __initconst = {
3008c2ecf20Sopenharmony_ci	"func_48mc_fclk",
3018c2ecf20Sopenharmony_ci	NULL,
3028c2ecf20Sopenharmony_ci};
3038c2ecf20Sopenharmony_ci
3048c2ecf20Sopenharmony_cistatic const char * const omap4_dss_sys_clk_parents[] __initconst = {
3058c2ecf20Sopenharmony_ci	"syc_clk_div_ck",
3068c2ecf20Sopenharmony_ci	NULL,
3078c2ecf20Sopenharmony_ci};
3088c2ecf20Sopenharmony_ci
3098c2ecf20Sopenharmony_cistatic const char * const omap4_dss_tv_clk_parents[] __initconst = {
3108c2ecf20Sopenharmony_ci	"extalt_clkin_ck",
3118c2ecf20Sopenharmony_ci	NULL,
3128c2ecf20Sopenharmony_ci};
3138c2ecf20Sopenharmony_ci
3148c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_dss_core_bit_data[] __initconst = {
3158c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_dss_dss_clk_parents, NULL },
3168c2ecf20Sopenharmony_ci	{ 9, TI_CLK_GATE, omap4_dss_48mhz_clk_parents, NULL },
3178c2ecf20Sopenharmony_ci	{ 10, TI_CLK_GATE, omap4_dss_sys_clk_parents, NULL },
3188c2ecf20Sopenharmony_ci	{ 11, TI_CLK_GATE, omap4_dss_tv_clk_parents, NULL },
3198c2ecf20Sopenharmony_ci	{ 0 },
3208c2ecf20Sopenharmony_ci};
3218c2ecf20Sopenharmony_ci
3228c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l3_dss_clkctrl_regs[] __initconst = {
3238c2ecf20Sopenharmony_ci	{ OMAP4_DSS_CORE_CLKCTRL, omap4_dss_core_bit_data, CLKF_SW_SUP, "l3_dss_cm:clk:0000:8" },
3248c2ecf20Sopenharmony_ci	{ 0 },
3258c2ecf20Sopenharmony_ci};
3268c2ecf20Sopenharmony_ci
3278c2ecf20Sopenharmony_cistatic const char * const omap4_sgx_clk_mux_parents[] __initconst = {
3288c2ecf20Sopenharmony_ci	"dpll_core_m7x2_ck",
3298c2ecf20Sopenharmony_ci	"dpll_per_m7x2_ck",
3308c2ecf20Sopenharmony_ci	NULL,
3318c2ecf20Sopenharmony_ci};
3328c2ecf20Sopenharmony_ci
3338c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_gpu_bit_data[] __initconst = {
3348c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_sgx_clk_mux_parents, NULL },
3358c2ecf20Sopenharmony_ci	{ 0 },
3368c2ecf20Sopenharmony_ci};
3378c2ecf20Sopenharmony_ci
3388c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l3_gfx_clkctrl_regs[] __initconst = {
3398c2ecf20Sopenharmony_ci	{ OMAP4_GPU_CLKCTRL, omap4_gpu_bit_data, CLKF_SW_SUP, "l3_gfx_cm:clk:0000:24" },
3408c2ecf20Sopenharmony_ci	{ 0 },
3418c2ecf20Sopenharmony_ci};
3428c2ecf20Sopenharmony_ci
3438c2ecf20Sopenharmony_cistatic const char * const omap4_hsmmc1_fclk_parents[] __initconst = {
3448c2ecf20Sopenharmony_ci	"func_64m_fclk",
3458c2ecf20Sopenharmony_ci	"func_96m_fclk",
3468c2ecf20Sopenharmony_ci	NULL,
3478c2ecf20Sopenharmony_ci};
3488c2ecf20Sopenharmony_ci
3498c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_mmc1_bit_data[] __initconst = {
3508c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_hsmmc1_fclk_parents, NULL },
3518c2ecf20Sopenharmony_ci	{ 0 },
3528c2ecf20Sopenharmony_ci};
3538c2ecf20Sopenharmony_ci
3548c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_mmc2_bit_data[] __initconst = {
3558c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_hsmmc1_fclk_parents, NULL },
3568c2ecf20Sopenharmony_ci	{ 0 },
3578c2ecf20Sopenharmony_ci};
3588c2ecf20Sopenharmony_ci
3598c2ecf20Sopenharmony_cistatic const char * const omap4_hsi_fck_parents[] __initconst = {
3608c2ecf20Sopenharmony_ci	"dpll_per_m2x2_ck",
3618c2ecf20Sopenharmony_ci	NULL,
3628c2ecf20Sopenharmony_ci};
3638c2ecf20Sopenharmony_ci
3648c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data omap4_hsi_fck_data __initconst = {
3658c2ecf20Sopenharmony_ci	.max_div = 4,
3668c2ecf20Sopenharmony_ci	.flags = CLK_DIVIDER_POWER_OF_TWO,
3678c2ecf20Sopenharmony_ci};
3688c2ecf20Sopenharmony_ci
3698c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_hsi_bit_data[] __initconst = {
3708c2ecf20Sopenharmony_ci	{ 24, TI_CLK_DIVIDER, omap4_hsi_fck_parents, &omap4_hsi_fck_data },
3718c2ecf20Sopenharmony_ci	{ 0 },
3728c2ecf20Sopenharmony_ci};
3738c2ecf20Sopenharmony_ci
3748c2ecf20Sopenharmony_cistatic const char * const omap4_usb_host_hs_utmi_p1_clk_parents[] __initconst = {
3758c2ecf20Sopenharmony_ci	"l3_init_cm:clk:0038:24",
3768c2ecf20Sopenharmony_ci	NULL,
3778c2ecf20Sopenharmony_ci};
3788c2ecf20Sopenharmony_ci
3798c2ecf20Sopenharmony_cistatic const char * const omap4_usb_host_hs_utmi_p2_clk_parents[] __initconst = {
3808c2ecf20Sopenharmony_ci	"l3_init_cm:clk:0038:25",
3818c2ecf20Sopenharmony_ci	NULL,
3828c2ecf20Sopenharmony_ci};
3838c2ecf20Sopenharmony_ci
3848c2ecf20Sopenharmony_cistatic const char * const omap4_usb_host_hs_utmi_p3_clk_parents[] __initconst = {
3858c2ecf20Sopenharmony_ci	"init_60m_fclk",
3868c2ecf20Sopenharmony_ci	NULL,
3878c2ecf20Sopenharmony_ci};
3888c2ecf20Sopenharmony_ci
3898c2ecf20Sopenharmony_cistatic const char * const omap4_usb_host_hs_hsic480m_p1_clk_parents[] __initconst = {
3908c2ecf20Sopenharmony_ci	"dpll_usb_m2_ck",
3918c2ecf20Sopenharmony_ci	NULL,
3928c2ecf20Sopenharmony_ci};
3938c2ecf20Sopenharmony_ci
3948c2ecf20Sopenharmony_cistatic const char * const omap4_utmi_p1_gfclk_parents[] __initconst = {
3958c2ecf20Sopenharmony_ci	"init_60m_fclk",
3968c2ecf20Sopenharmony_ci	"xclk60mhsp1_ck",
3978c2ecf20Sopenharmony_ci	NULL,
3988c2ecf20Sopenharmony_ci};
3998c2ecf20Sopenharmony_ci
4008c2ecf20Sopenharmony_cistatic const char * const omap4_utmi_p2_gfclk_parents[] __initconst = {
4018c2ecf20Sopenharmony_ci	"init_60m_fclk",
4028c2ecf20Sopenharmony_ci	"xclk60mhsp2_ck",
4038c2ecf20Sopenharmony_ci	NULL,
4048c2ecf20Sopenharmony_ci};
4058c2ecf20Sopenharmony_ci
4068c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_usb_host_hs_bit_data[] __initconst = {
4078c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_usb_host_hs_utmi_p1_clk_parents, NULL },
4088c2ecf20Sopenharmony_ci	{ 9, TI_CLK_GATE, omap4_usb_host_hs_utmi_p2_clk_parents, NULL },
4098c2ecf20Sopenharmony_ci	{ 10, TI_CLK_GATE, omap4_usb_host_hs_utmi_p3_clk_parents, NULL },
4108c2ecf20Sopenharmony_ci	{ 11, TI_CLK_GATE, omap4_usb_host_hs_utmi_p3_clk_parents, NULL },
4118c2ecf20Sopenharmony_ci	{ 12, TI_CLK_GATE, omap4_usb_host_hs_utmi_p3_clk_parents, NULL },
4128c2ecf20Sopenharmony_ci	{ 13, TI_CLK_GATE, omap4_usb_host_hs_hsic480m_p1_clk_parents, NULL },
4138c2ecf20Sopenharmony_ci	{ 14, TI_CLK_GATE, omap4_usb_host_hs_hsic480m_p1_clk_parents, NULL },
4148c2ecf20Sopenharmony_ci	{ 15, TI_CLK_GATE, omap4_dss_48mhz_clk_parents, NULL },
4158c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_utmi_p1_gfclk_parents, NULL },
4168c2ecf20Sopenharmony_ci	{ 25, TI_CLK_MUX, omap4_utmi_p2_gfclk_parents, NULL },
4178c2ecf20Sopenharmony_ci	{ 0 },
4188c2ecf20Sopenharmony_ci};
4198c2ecf20Sopenharmony_ci
4208c2ecf20Sopenharmony_cistatic const char * const omap4_usb_otg_hs_xclk_parents[] __initconst = {
4218c2ecf20Sopenharmony_ci	"l3_init_cm:clk:0040:24",
4228c2ecf20Sopenharmony_ci	NULL,
4238c2ecf20Sopenharmony_ci};
4248c2ecf20Sopenharmony_ci
4258c2ecf20Sopenharmony_cistatic const char * const omap4_otg_60m_gfclk_parents[] __initconst = {
4268c2ecf20Sopenharmony_ci	"utmi_phy_clkout_ck",
4278c2ecf20Sopenharmony_ci	"xclk60motg_ck",
4288c2ecf20Sopenharmony_ci	NULL,
4298c2ecf20Sopenharmony_ci};
4308c2ecf20Sopenharmony_ci
4318c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_usb_otg_hs_bit_data[] __initconst = {
4328c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_usb_otg_hs_xclk_parents, NULL },
4338c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_otg_60m_gfclk_parents, NULL },
4348c2ecf20Sopenharmony_ci	{ 0 },
4358c2ecf20Sopenharmony_ci};
4368c2ecf20Sopenharmony_ci
4378c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_usb_tll_hs_bit_data[] __initconst = {
4388c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_usb_host_hs_utmi_p3_clk_parents, NULL },
4398c2ecf20Sopenharmony_ci	{ 9, TI_CLK_GATE, omap4_usb_host_hs_utmi_p3_clk_parents, NULL },
4408c2ecf20Sopenharmony_ci	{ 10, TI_CLK_GATE, omap4_usb_host_hs_utmi_p3_clk_parents, NULL },
4418c2ecf20Sopenharmony_ci	{ 0 },
4428c2ecf20Sopenharmony_ci};
4438c2ecf20Sopenharmony_ci
4448c2ecf20Sopenharmony_cistatic const char * const omap4_ocp2scp_usb_phy_phy_48m_parents[] __initconst = {
4458c2ecf20Sopenharmony_ci	"func_48m_fclk",
4468c2ecf20Sopenharmony_ci	NULL,
4478c2ecf20Sopenharmony_ci};
4488c2ecf20Sopenharmony_ci
4498c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_ocp2scp_usb_phy_bit_data[] __initconst = {
4508c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_ocp2scp_usb_phy_phy_48m_parents, NULL },
4518c2ecf20Sopenharmony_ci	{ 0 },
4528c2ecf20Sopenharmony_ci};
4538c2ecf20Sopenharmony_ci
4548c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l3_init_clkctrl_regs[] __initconst = {
4558c2ecf20Sopenharmony_ci	{ OMAP4_MMC1_CLKCTRL, omap4_mmc1_bit_data, CLKF_SW_SUP, "l3_init_cm:clk:0008:24" },
4568c2ecf20Sopenharmony_ci	{ OMAP4_MMC2_CLKCTRL, omap4_mmc2_bit_data, CLKF_SW_SUP, "l3_init_cm:clk:0010:24" },
4578c2ecf20Sopenharmony_ci	{ OMAP4_HSI_CLKCTRL, omap4_hsi_bit_data, CLKF_HW_SUP, "l3_init_cm:clk:0018:24" },
4588c2ecf20Sopenharmony_ci	{ OMAP4_USB_HOST_HS_CLKCTRL, omap4_usb_host_hs_bit_data, CLKF_SW_SUP, "init_60m_fclk" },
4598c2ecf20Sopenharmony_ci	{ OMAP4_USB_OTG_HS_CLKCTRL, omap4_usb_otg_hs_bit_data, CLKF_HW_SUP, "l3_div_ck" },
4608c2ecf20Sopenharmony_ci	{ OMAP4_USB_TLL_HS_CLKCTRL, omap4_usb_tll_hs_bit_data, CLKF_HW_SUP, "l4_div_ck" },
4618c2ecf20Sopenharmony_ci	{ OMAP4_USB_HOST_FS_CLKCTRL, NULL, CLKF_SW_SUP, "func_48mc_fclk" },
4628c2ecf20Sopenharmony_ci	{ OMAP4_OCP2SCP_USB_PHY_CLKCTRL, omap4_ocp2scp_usb_phy_bit_data, CLKF_HW_SUP, "l3_init_cm:clk:00c0:8" },
4638c2ecf20Sopenharmony_ci	{ 0 },
4648c2ecf20Sopenharmony_ci};
4658c2ecf20Sopenharmony_ci
4668c2ecf20Sopenharmony_cistatic const char * const omap4_cm2_dm10_mux_parents[] __initconst = {
4678c2ecf20Sopenharmony_ci	"sys_clkin_ck",
4688c2ecf20Sopenharmony_ci	"sys_32k_ck",
4698c2ecf20Sopenharmony_ci	NULL,
4708c2ecf20Sopenharmony_ci};
4718c2ecf20Sopenharmony_ci
4728c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer10_bit_data[] __initconst = {
4738c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_cm2_dm10_mux_parents, NULL },
4748c2ecf20Sopenharmony_ci	{ 0 },
4758c2ecf20Sopenharmony_ci};
4768c2ecf20Sopenharmony_ci
4778c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer11_bit_data[] __initconst = {
4788c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_cm2_dm10_mux_parents, NULL },
4798c2ecf20Sopenharmony_ci	{ 0 },
4808c2ecf20Sopenharmony_ci};
4818c2ecf20Sopenharmony_ci
4828c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer2_bit_data[] __initconst = {
4838c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_cm2_dm10_mux_parents, NULL },
4848c2ecf20Sopenharmony_ci	{ 0 },
4858c2ecf20Sopenharmony_ci};
4868c2ecf20Sopenharmony_ci
4878c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer3_bit_data[] __initconst = {
4888c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_cm2_dm10_mux_parents, NULL },
4898c2ecf20Sopenharmony_ci	{ 0 },
4908c2ecf20Sopenharmony_ci};
4918c2ecf20Sopenharmony_ci
4928c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer4_bit_data[] __initconst = {
4938c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_cm2_dm10_mux_parents, NULL },
4948c2ecf20Sopenharmony_ci	{ 0 },
4958c2ecf20Sopenharmony_ci};
4968c2ecf20Sopenharmony_ci
4978c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer9_bit_data[] __initconst = {
4988c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_cm2_dm10_mux_parents, NULL },
4998c2ecf20Sopenharmony_ci	{ 0 },
5008c2ecf20Sopenharmony_ci};
5018c2ecf20Sopenharmony_ci
5028c2ecf20Sopenharmony_cistatic const char * const omap4_gpio2_dbclk_parents[] __initconst = {
5038c2ecf20Sopenharmony_ci	"sys_32k_ck",
5048c2ecf20Sopenharmony_ci	NULL,
5058c2ecf20Sopenharmony_ci};
5068c2ecf20Sopenharmony_ci
5078c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_gpio2_bit_data[] __initconst = {
5088c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_gpio2_dbclk_parents, NULL },
5098c2ecf20Sopenharmony_ci	{ 0 },
5108c2ecf20Sopenharmony_ci};
5118c2ecf20Sopenharmony_ci
5128c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_gpio3_bit_data[] __initconst = {
5138c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_gpio2_dbclk_parents, NULL },
5148c2ecf20Sopenharmony_ci	{ 0 },
5158c2ecf20Sopenharmony_ci};
5168c2ecf20Sopenharmony_ci
5178c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_gpio4_bit_data[] __initconst = {
5188c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_gpio2_dbclk_parents, NULL },
5198c2ecf20Sopenharmony_ci	{ 0 },
5208c2ecf20Sopenharmony_ci};
5218c2ecf20Sopenharmony_ci
5228c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_gpio5_bit_data[] __initconst = {
5238c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_gpio2_dbclk_parents, NULL },
5248c2ecf20Sopenharmony_ci	{ 0 },
5258c2ecf20Sopenharmony_ci};
5268c2ecf20Sopenharmony_ci
5278c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_gpio6_bit_data[] __initconst = {
5288c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_gpio2_dbclk_parents, NULL },
5298c2ecf20Sopenharmony_ci	{ 0 },
5308c2ecf20Sopenharmony_ci};
5318c2ecf20Sopenharmony_ci
5328c2ecf20Sopenharmony_cistatic const char * const omap4_per_mcbsp4_gfclk_parents[] __initconst = {
5338c2ecf20Sopenharmony_ci	"l4_per_cm:clk:00c0:26",
5348c2ecf20Sopenharmony_ci	"pad_clks_ck",
5358c2ecf20Sopenharmony_ci	NULL,
5368c2ecf20Sopenharmony_ci};
5378c2ecf20Sopenharmony_ci
5388c2ecf20Sopenharmony_cistatic const char * const omap4_mcbsp4_sync_mux_ck_parents[] __initconst = {
5398c2ecf20Sopenharmony_ci	"func_96m_fclk",
5408c2ecf20Sopenharmony_ci	"per_abe_nc_fclk",
5418c2ecf20Sopenharmony_ci	NULL,
5428c2ecf20Sopenharmony_ci};
5438c2ecf20Sopenharmony_ci
5448c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_mcbsp4_bit_data[] __initconst = {
5458c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_per_mcbsp4_gfclk_parents, NULL },
5468c2ecf20Sopenharmony_ci	{ 26, TI_CLK_MUX, omap4_mcbsp4_sync_mux_ck_parents, NULL },
5478c2ecf20Sopenharmony_ci	{ 0 },
5488c2ecf20Sopenharmony_ci};
5498c2ecf20Sopenharmony_ci
5508c2ecf20Sopenharmony_cistatic const char * const omap4_slimbus2_fclk_0_parents[] __initconst = {
5518c2ecf20Sopenharmony_ci	"func_24mc_fclk",
5528c2ecf20Sopenharmony_ci	NULL,
5538c2ecf20Sopenharmony_ci};
5548c2ecf20Sopenharmony_ci
5558c2ecf20Sopenharmony_cistatic const char * const omap4_slimbus2_fclk_1_parents[] __initconst = {
5568c2ecf20Sopenharmony_ci	"per_abe_24m_fclk",
5578c2ecf20Sopenharmony_ci	NULL,
5588c2ecf20Sopenharmony_ci};
5598c2ecf20Sopenharmony_ci
5608c2ecf20Sopenharmony_cistatic const char * const omap4_slimbus2_slimbus_clk_parents[] __initconst = {
5618c2ecf20Sopenharmony_ci	"pad_slimbus_core_clks_ck",
5628c2ecf20Sopenharmony_ci	NULL,
5638c2ecf20Sopenharmony_ci};
5648c2ecf20Sopenharmony_ci
5658c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_slimbus2_bit_data[] __initconst = {
5668c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_slimbus2_fclk_0_parents, NULL },
5678c2ecf20Sopenharmony_ci	{ 9, TI_CLK_GATE, omap4_slimbus2_fclk_1_parents, NULL },
5688c2ecf20Sopenharmony_ci	{ 10, TI_CLK_GATE, omap4_slimbus2_slimbus_clk_parents, NULL },
5698c2ecf20Sopenharmony_ci	{ 0 },
5708c2ecf20Sopenharmony_ci};
5718c2ecf20Sopenharmony_ci
5728c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l4_per_clkctrl_regs[] __initconst = {
5738c2ecf20Sopenharmony_ci	{ OMAP4_TIMER10_CLKCTRL, omap4_timer10_bit_data, CLKF_SW_SUP, "l4_per_cm:clk:0008:24" },
5748c2ecf20Sopenharmony_ci	{ OMAP4_TIMER11_CLKCTRL, omap4_timer11_bit_data, CLKF_SW_SUP, "l4_per_cm:clk:0010:24" },
5758c2ecf20Sopenharmony_ci	{ OMAP4_TIMER2_CLKCTRL, omap4_timer2_bit_data, CLKF_SW_SUP, "l4_per_cm:clk:0018:24" },
5768c2ecf20Sopenharmony_ci	{ OMAP4_TIMER3_CLKCTRL, omap4_timer3_bit_data, CLKF_SW_SUP, "l4_per_cm:clk:0020:24" },
5778c2ecf20Sopenharmony_ci	{ OMAP4_TIMER4_CLKCTRL, omap4_timer4_bit_data, CLKF_SW_SUP, "l4_per_cm:clk:0028:24" },
5788c2ecf20Sopenharmony_ci	{ OMAP4_TIMER9_CLKCTRL, omap4_timer9_bit_data, CLKF_SW_SUP, "l4_per_cm:clk:0030:24" },
5798c2ecf20Sopenharmony_ci	{ OMAP4_ELM_CLKCTRL, NULL, 0, "l4_div_ck" },
5808c2ecf20Sopenharmony_ci	{ OMAP4_GPIO2_CLKCTRL, omap4_gpio2_bit_data, CLKF_HW_SUP, "l4_div_ck" },
5818c2ecf20Sopenharmony_ci	{ OMAP4_GPIO3_CLKCTRL, omap4_gpio3_bit_data, CLKF_HW_SUP, "l4_div_ck" },
5828c2ecf20Sopenharmony_ci	{ OMAP4_GPIO4_CLKCTRL, omap4_gpio4_bit_data, CLKF_HW_SUP, "l4_div_ck" },
5838c2ecf20Sopenharmony_ci	{ OMAP4_GPIO5_CLKCTRL, omap4_gpio5_bit_data, CLKF_HW_SUP, "l4_div_ck" },
5848c2ecf20Sopenharmony_ci	{ OMAP4_GPIO6_CLKCTRL, omap4_gpio6_bit_data, CLKF_HW_SUP, "l4_div_ck" },
5858c2ecf20Sopenharmony_ci	{ OMAP4_HDQ1W_CLKCTRL, NULL, CLKF_SW_SUP, "func_12m_fclk" },
5868c2ecf20Sopenharmony_ci	{ OMAP4_I2C1_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
5878c2ecf20Sopenharmony_ci	{ OMAP4_I2C2_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
5888c2ecf20Sopenharmony_ci	{ OMAP4_I2C3_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
5898c2ecf20Sopenharmony_ci	{ OMAP4_I2C4_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
5908c2ecf20Sopenharmony_ci	{ OMAP4_L4_PER_CLKCTRL, NULL, 0, "l4_div_ck" },
5918c2ecf20Sopenharmony_ci	{ OMAP4_MCBSP4_CLKCTRL, omap4_mcbsp4_bit_data, CLKF_SW_SUP, "l4_per_cm:clk:00c0:24" },
5928c2ecf20Sopenharmony_ci	{ OMAP4_MCSPI1_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
5938c2ecf20Sopenharmony_ci	{ OMAP4_MCSPI2_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
5948c2ecf20Sopenharmony_ci	{ OMAP4_MCSPI3_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
5958c2ecf20Sopenharmony_ci	{ OMAP4_MCSPI4_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
5968c2ecf20Sopenharmony_ci	{ OMAP4_MMC3_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
5978c2ecf20Sopenharmony_ci	{ OMAP4_MMC4_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
5988c2ecf20Sopenharmony_ci	{ OMAP4_SLIMBUS2_CLKCTRL, omap4_slimbus2_bit_data, CLKF_SW_SUP, "l4_per_cm:clk:0118:8" },
5998c2ecf20Sopenharmony_ci	{ OMAP4_UART1_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
6008c2ecf20Sopenharmony_ci	{ OMAP4_UART2_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
6018c2ecf20Sopenharmony_ci	{ OMAP4_UART3_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
6028c2ecf20Sopenharmony_ci	{ OMAP4_UART4_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
6038c2ecf20Sopenharmony_ci	{ OMAP4_MMC5_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
6048c2ecf20Sopenharmony_ci	{ 0 },
6058c2ecf20Sopenharmony_ci};
6068c2ecf20Sopenharmony_ci
6078c2ecf20Sopenharmony_cistatic const struct
6088c2ecf20Sopenharmony_ciomap_clkctrl_reg_data omap4_l4_secure_clkctrl_regs[] __initconst = {
6098c2ecf20Sopenharmony_ci	{ OMAP4_AES1_CLKCTRL, NULL, CLKF_SW_SUP, "l3_div_ck" },
6108c2ecf20Sopenharmony_ci	{ OMAP4_AES2_CLKCTRL, NULL, CLKF_SW_SUP, "l3_div_ck" },
6118c2ecf20Sopenharmony_ci	{ OMAP4_DES3DES_CLKCTRL, NULL, CLKF_SW_SUP, "l4_div_ck" },
6128c2ecf20Sopenharmony_ci	{ OMAP4_PKA_CLKCTRL, NULL, CLKF_SW_SUP, "l4_div_ck" },
6138c2ecf20Sopenharmony_ci	{ OMAP4_RNG_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_SOC_NONSEC, "l4_div_ck" },
6148c2ecf20Sopenharmony_ci	{ OMAP4_SHA2MD5_CLKCTRL, NULL, CLKF_SW_SUP, "l3_div_ck" },
6158c2ecf20Sopenharmony_ci	{ OMAP4_CRYPTODMA_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_SOC_NONSEC, "l3_div_ck" },
6168c2ecf20Sopenharmony_ci	{ 0 },
6178c2ecf20Sopenharmony_ci};
6188c2ecf20Sopenharmony_ci
6198c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_gpio1_bit_data[] __initconst = {
6208c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, omap4_gpio2_dbclk_parents, NULL },
6218c2ecf20Sopenharmony_ci	{ 0 },
6228c2ecf20Sopenharmony_ci};
6238c2ecf20Sopenharmony_ci
6248c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_timer1_bit_data[] __initconst = {
6258c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, omap4_cm2_dm10_mux_parents, NULL },
6268c2ecf20Sopenharmony_ci	{ 0 },
6278c2ecf20Sopenharmony_ci};
6288c2ecf20Sopenharmony_ci
6298c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_l4_wkup_clkctrl_regs[] __initconst = {
6308c2ecf20Sopenharmony_ci	{ OMAP4_L4_WKUP_CLKCTRL, NULL, 0, "l4_wkup_clk_mux_ck" },
6318c2ecf20Sopenharmony_ci	{ OMAP4_WD_TIMER2_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
6328c2ecf20Sopenharmony_ci	{ OMAP4_GPIO1_CLKCTRL, omap4_gpio1_bit_data, CLKF_HW_SUP, "l4_wkup_clk_mux_ck" },
6338c2ecf20Sopenharmony_ci	{ OMAP4_TIMER1_CLKCTRL, omap4_timer1_bit_data, CLKF_SW_SUP, "l4_wkup_cm:clk:0020:24" },
6348c2ecf20Sopenharmony_ci	{ OMAP4_COUNTER_32K_CLKCTRL, NULL, 0, "sys_32k_ck" },
6358c2ecf20Sopenharmony_ci	{ OMAP4_KBD_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
6368c2ecf20Sopenharmony_ci	{ 0 },
6378c2ecf20Sopenharmony_ci};
6388c2ecf20Sopenharmony_ci
6398c2ecf20Sopenharmony_cistatic const char * const omap4_pmd_stm_clock_mux_ck_parents[] __initconst = {
6408c2ecf20Sopenharmony_ci	"sys_clkin_ck",
6418c2ecf20Sopenharmony_ci	"dpll_core_m6x2_ck",
6428c2ecf20Sopenharmony_ci	"tie_low_clock_ck",
6438c2ecf20Sopenharmony_ci	NULL,
6448c2ecf20Sopenharmony_ci};
6458c2ecf20Sopenharmony_ci
6468c2ecf20Sopenharmony_cistatic const char * const omap4_trace_clk_div_div_ck_parents[] __initconst = {
6478c2ecf20Sopenharmony_ci	"emu_sys_cm:clk:0000:22",
6488c2ecf20Sopenharmony_ci	NULL,
6498c2ecf20Sopenharmony_ci};
6508c2ecf20Sopenharmony_ci
6518c2ecf20Sopenharmony_cistatic const int omap4_trace_clk_div_div_ck_divs[] __initconst = {
6528c2ecf20Sopenharmony_ci	0,
6538c2ecf20Sopenharmony_ci	1,
6548c2ecf20Sopenharmony_ci	2,
6558c2ecf20Sopenharmony_ci	0,
6568c2ecf20Sopenharmony_ci	4,
6578c2ecf20Sopenharmony_ci	-1,
6588c2ecf20Sopenharmony_ci};
6598c2ecf20Sopenharmony_ci
6608c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data omap4_trace_clk_div_div_ck_data __initconst = {
6618c2ecf20Sopenharmony_ci	.dividers = omap4_trace_clk_div_div_ck_divs,
6628c2ecf20Sopenharmony_ci};
6638c2ecf20Sopenharmony_ci
6648c2ecf20Sopenharmony_cistatic const char * const omap4_stm_clk_div_ck_parents[] __initconst = {
6658c2ecf20Sopenharmony_ci	"emu_sys_cm:clk:0000:20",
6668c2ecf20Sopenharmony_ci	NULL,
6678c2ecf20Sopenharmony_ci};
6688c2ecf20Sopenharmony_ci
6698c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data omap4_stm_clk_div_ck_data __initconst = {
6708c2ecf20Sopenharmony_ci	.max_div = 64,
6718c2ecf20Sopenharmony_ci	.flags = CLK_DIVIDER_POWER_OF_TWO,
6728c2ecf20Sopenharmony_ci};
6738c2ecf20Sopenharmony_ci
6748c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data omap4_debugss_bit_data[] __initconst = {
6758c2ecf20Sopenharmony_ci	{ 20, TI_CLK_MUX, omap4_pmd_stm_clock_mux_ck_parents, NULL },
6768c2ecf20Sopenharmony_ci	{ 22, TI_CLK_MUX, omap4_pmd_stm_clock_mux_ck_parents, NULL },
6778c2ecf20Sopenharmony_ci	{ 24, TI_CLK_DIVIDER, omap4_trace_clk_div_div_ck_parents, &omap4_trace_clk_div_div_ck_data },
6788c2ecf20Sopenharmony_ci	{ 27, TI_CLK_DIVIDER, omap4_stm_clk_div_ck_parents, &omap4_stm_clk_div_ck_data },
6798c2ecf20Sopenharmony_ci	{ 0 },
6808c2ecf20Sopenharmony_ci};
6818c2ecf20Sopenharmony_ci
6828c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data omap4_emu_sys_clkctrl_regs[] __initconst = {
6838c2ecf20Sopenharmony_ci	{ OMAP4_DEBUGSS_CLKCTRL, omap4_debugss_bit_data, 0, "trace_clk_div_ck" },
6848c2ecf20Sopenharmony_ci	{ 0 },
6858c2ecf20Sopenharmony_ci};
6868c2ecf20Sopenharmony_ci
6878c2ecf20Sopenharmony_ciconst struct omap_clkctrl_data omap4_clkctrl_data[] __initconst = {
6888c2ecf20Sopenharmony_ci	{ 0x4a004320, omap4_mpuss_clkctrl_regs },
6898c2ecf20Sopenharmony_ci	{ 0x4a004420, omap4_tesla_clkctrl_regs },
6908c2ecf20Sopenharmony_ci	{ 0x4a004520, omap4_abe_clkctrl_regs },
6918c2ecf20Sopenharmony_ci	{ 0x4a008620, omap4_l4_ao_clkctrl_regs },
6928c2ecf20Sopenharmony_ci	{ 0x4a008720, omap4_l3_1_clkctrl_regs },
6938c2ecf20Sopenharmony_ci	{ 0x4a008820, omap4_l3_2_clkctrl_regs },
6948c2ecf20Sopenharmony_ci	{ 0x4a008920, omap4_ducati_clkctrl_regs },
6958c2ecf20Sopenharmony_ci	{ 0x4a008a20, omap4_l3_dma_clkctrl_regs },
6968c2ecf20Sopenharmony_ci	{ 0x4a008b20, omap4_l3_emif_clkctrl_regs },
6978c2ecf20Sopenharmony_ci	{ 0x4a008c20, omap4_d2d_clkctrl_regs },
6988c2ecf20Sopenharmony_ci	{ 0x4a008d20, omap4_l4_cfg_clkctrl_regs },
6998c2ecf20Sopenharmony_ci	{ 0x4a008e20, omap4_l3_instr_clkctrl_regs },
7008c2ecf20Sopenharmony_ci	{ 0x4a008f20, omap4_ivahd_clkctrl_regs },
7018c2ecf20Sopenharmony_ci	{ 0x4a009020, omap4_iss_clkctrl_regs },
7028c2ecf20Sopenharmony_ci	{ 0x4a009120, omap4_l3_dss_clkctrl_regs },
7038c2ecf20Sopenharmony_ci	{ 0x4a009220, omap4_l3_gfx_clkctrl_regs },
7048c2ecf20Sopenharmony_ci	{ 0x4a009320, omap4_l3_init_clkctrl_regs },
7058c2ecf20Sopenharmony_ci	{ 0x4a009420, omap4_l4_per_clkctrl_regs },
7068c2ecf20Sopenharmony_ci	{ 0x4a0095a0, omap4_l4_secure_clkctrl_regs },
7078c2ecf20Sopenharmony_ci	{ 0x4a307820, omap4_l4_wkup_clkctrl_regs },
7088c2ecf20Sopenharmony_ci	{ 0x4a307a20, omap4_emu_sys_clkctrl_regs },
7098c2ecf20Sopenharmony_ci	{ 0 },
7108c2ecf20Sopenharmony_ci};
7118c2ecf20Sopenharmony_ci
7128c2ecf20Sopenharmony_cistatic struct ti_dt_clk omap44xx_clks[] = {
7138c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer_32k_ck", "sys_32k_ck"),
7148c2ecf20Sopenharmony_ci	/*
7158c2ecf20Sopenharmony_ci	 * XXX: All the clock aliases below are only needed for legacy
7168c2ecf20Sopenharmony_ci	 * hwmod support. Once hwmod is removed, these can be removed
7178c2ecf20Sopenharmony_ci	 * also.
7188c2ecf20Sopenharmony_ci	 */
7198c2ecf20Sopenharmony_ci	DT_CLK(NULL, "aess_fclk", "abe_cm:0008:24"),
7208c2ecf20Sopenharmony_ci	DT_CLK(NULL, "cm2_dm10_mux", "l4_per_cm:0008:24"),
7218c2ecf20Sopenharmony_ci	DT_CLK(NULL, "cm2_dm11_mux", "l4_per_cm:0010:24"),
7228c2ecf20Sopenharmony_ci	DT_CLK(NULL, "cm2_dm2_mux", "l4_per_cm:0018:24"),
7238c2ecf20Sopenharmony_ci	DT_CLK(NULL, "cm2_dm3_mux", "l4_per_cm:0020:24"),
7248c2ecf20Sopenharmony_ci	DT_CLK(NULL, "cm2_dm4_mux", "l4_per_cm:0028:24"),
7258c2ecf20Sopenharmony_ci	DT_CLK(NULL, "cm2_dm9_mux", "l4_per_cm:0030:24"),
7268c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dmic_sync_mux_ck", "abe_cm:0018:26"),
7278c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dmt1_clk_mux", "l4_wkup_cm:0020:24"),
7288c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_48mhz_clk", "l3_dss_cm:0000:9"),
7298c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_dss_clk", "l3_dss_cm:0000:8"),
7308c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_sys_clk", "l3_dss_cm:0000:10"),
7318c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_tv_clk", "l3_dss_cm:0000:11"),
7328c2ecf20Sopenharmony_ci	DT_CLK(NULL, "fdif_fck", "iss_cm:0008:24"),
7338c2ecf20Sopenharmony_ci	DT_CLK(NULL, "func_dmic_abe_gfclk", "abe_cm:0018:24"),
7348c2ecf20Sopenharmony_ci	DT_CLK(NULL, "func_mcasp_abe_gfclk", "abe_cm:0020:24"),
7358c2ecf20Sopenharmony_ci	DT_CLK(NULL, "func_mcbsp1_gfclk", "abe_cm:0028:24"),
7368c2ecf20Sopenharmony_ci	DT_CLK(NULL, "func_mcbsp2_gfclk", "abe_cm:0030:24"),
7378c2ecf20Sopenharmony_ci	DT_CLK(NULL, "func_mcbsp3_gfclk", "abe_cm:0038:24"),
7388c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio1_dbclk", "l4_wkup_cm:0018:8"),
7398c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio2_dbclk", "l4_per_cm:0040:8"),
7408c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio3_dbclk", "l4_per_cm:0048:8"),
7418c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio4_dbclk", "l4_per_cm:0050:8"),
7428c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio5_dbclk", "l4_per_cm:0058:8"),
7438c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio6_dbclk", "l4_per_cm:0060:8"),
7448c2ecf20Sopenharmony_ci	DT_CLK(NULL, "hsi_fck", "l3_init_cm:0018:24"),
7458c2ecf20Sopenharmony_ci	DT_CLK(NULL, "hsmmc1_fclk", "l3_init_cm:0008:24"),
7468c2ecf20Sopenharmony_ci	DT_CLK(NULL, "hsmmc2_fclk", "l3_init_cm:0010:24"),
7478c2ecf20Sopenharmony_ci	DT_CLK(NULL, "iss_ctrlclk", "iss_cm:0000:8"),
7488c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp_sync_mux_ck", "abe_cm:0020:26"),
7498c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcbsp1_sync_mux_ck", "abe_cm:0028:26"),
7508c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcbsp2_sync_mux_ck", "abe_cm:0030:26"),
7518c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcbsp3_sync_mux_ck", "abe_cm:0038:26"),
7528c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcbsp4_sync_mux_ck", "l4_per_cm:00c0:26"),
7538c2ecf20Sopenharmony_ci	DT_CLK(NULL, "ocp2scp_usb_phy_phy_48m", "l3_init_cm:00c0:8"),
7548c2ecf20Sopenharmony_ci	DT_CLK(NULL, "otg_60m_gfclk", "l3_init_cm:0040:24"),
7558c2ecf20Sopenharmony_ci	DT_CLK(NULL, "per_mcbsp4_gfclk", "l4_per_cm:00c0:24"),
7568c2ecf20Sopenharmony_ci	DT_CLK(NULL, "pmd_stm_clock_mux_ck", "emu_sys_cm:0000:20"),
7578c2ecf20Sopenharmony_ci	DT_CLK(NULL, "pmd_trace_clk_mux_ck", "emu_sys_cm:0000:22"),
7588c2ecf20Sopenharmony_ci	DT_CLK(NULL, "sgx_clk_mux", "l3_gfx_cm:0000:24"),
7598c2ecf20Sopenharmony_ci	DT_CLK(NULL, "slimbus1_fclk_0", "abe_cm:0040:8"),
7608c2ecf20Sopenharmony_ci	DT_CLK(NULL, "slimbus1_fclk_1", "abe_cm:0040:9"),
7618c2ecf20Sopenharmony_ci	DT_CLK(NULL, "slimbus1_fclk_2", "abe_cm:0040:10"),
7628c2ecf20Sopenharmony_ci	DT_CLK(NULL, "slimbus1_slimbus_clk", "abe_cm:0040:11"),
7638c2ecf20Sopenharmony_ci	DT_CLK(NULL, "slimbus2_fclk_0", "l4_per_cm:0118:8"),
7648c2ecf20Sopenharmony_ci	DT_CLK(NULL, "slimbus2_fclk_1", "l4_per_cm:0118:9"),
7658c2ecf20Sopenharmony_ci	DT_CLK(NULL, "slimbus2_slimbus_clk", "l4_per_cm:0118:10"),
7668c2ecf20Sopenharmony_ci	DT_CLK(NULL, "stm_clk_div_ck", "emu_sys_cm:0000:27"),
7678c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer5_sync_mux", "abe_cm:0048:24"),
7688c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer6_sync_mux", "abe_cm:0050:24"),
7698c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer7_sync_mux", "abe_cm:0058:24"),
7708c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer8_sync_mux", "abe_cm:0060:24"),
7718c2ecf20Sopenharmony_ci	DT_CLK(NULL, "trace_clk_div_div_ck", "emu_sys_cm:0000:24"),
7728c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_host_hs_func48mclk", "l3_init_cm:0038:15"),
7738c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_host_hs_hsic480m_p1_clk", "l3_init_cm:0038:13"),
7748c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_host_hs_hsic480m_p2_clk", "l3_init_cm:0038:14"),
7758c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_host_hs_hsic60m_p1_clk", "l3_init_cm:0038:11"),
7768c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_host_hs_hsic60m_p2_clk", "l3_init_cm:0038:12"),
7778c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_host_hs_utmi_p1_clk", "l3_init_cm:0038:8"),
7788c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_host_hs_utmi_p2_clk", "l3_init_cm:0038:9"),
7798c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_host_hs_utmi_p3_clk", "l3_init_cm:0038:10"),
7808c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_otg_hs_xclk", "l3_init_cm:0040:8"),
7818c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_tll_hs_usb_ch0_clk", "l3_init_cm:0048:8"),
7828c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_tll_hs_usb_ch1_clk", "l3_init_cm:0048:9"),
7838c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_tll_hs_usb_ch2_clk", "l3_init_cm:0048:10"),
7848c2ecf20Sopenharmony_ci	DT_CLK(NULL, "utmi_p1_gfclk", "l3_init_cm:0038:24"),
7858c2ecf20Sopenharmony_ci	DT_CLK(NULL, "utmi_p2_gfclk", "l3_init_cm:0038:25"),
7868c2ecf20Sopenharmony_ci	{ .node_name = NULL },
7878c2ecf20Sopenharmony_ci};
7888c2ecf20Sopenharmony_ci
7898c2ecf20Sopenharmony_ciint __init omap4xxx_dt_clk_init(void)
7908c2ecf20Sopenharmony_ci{
7918c2ecf20Sopenharmony_ci	int rc;
7928c2ecf20Sopenharmony_ci	struct clk *abe_dpll_ref, *abe_dpll, *sys_32k_ck, *usb_dpll;
7938c2ecf20Sopenharmony_ci
7948c2ecf20Sopenharmony_ci	ti_dt_clocks_register(omap44xx_clks);
7958c2ecf20Sopenharmony_ci
7968c2ecf20Sopenharmony_ci	omap2_clk_disable_autoidle_all();
7978c2ecf20Sopenharmony_ci
7988c2ecf20Sopenharmony_ci	ti_clk_add_aliases();
7998c2ecf20Sopenharmony_ci
8008c2ecf20Sopenharmony_ci	/*
8018c2ecf20Sopenharmony_ci	 * Lock USB DPLL on OMAP4 devices so that the L3INIT power
8028c2ecf20Sopenharmony_ci	 * domain can transition to retention state when not in use.
8038c2ecf20Sopenharmony_ci	 */
8048c2ecf20Sopenharmony_ci	usb_dpll = clk_get_sys(NULL, "dpll_usb_ck");
8058c2ecf20Sopenharmony_ci	rc = clk_set_rate(usb_dpll, OMAP4_DPLL_USB_DEFFREQ);
8068c2ecf20Sopenharmony_ci	if (rc)
8078c2ecf20Sopenharmony_ci		pr_err("%s: failed to configure USB DPLL!\n", __func__);
8088c2ecf20Sopenharmony_ci
8098c2ecf20Sopenharmony_ci	/*
8108c2ecf20Sopenharmony_ci	 * On OMAP4460 the ABE DPLL fails to turn on if in idle low-power
8118c2ecf20Sopenharmony_ci	 * state when turning the ABE clock domain. Workaround this by
8128c2ecf20Sopenharmony_ci	 * locking the ABE DPLL on boot.
8138c2ecf20Sopenharmony_ci	 * Lock the ABE DPLL in any case to avoid issues with audio.
8148c2ecf20Sopenharmony_ci	 */
8158c2ecf20Sopenharmony_ci	abe_dpll_ref = clk_get_sys(NULL, "abe_dpll_refclk_mux_ck");
8168c2ecf20Sopenharmony_ci	sys_32k_ck = clk_get_sys(NULL, "sys_32k_ck");
8178c2ecf20Sopenharmony_ci	rc = clk_set_parent(abe_dpll_ref, sys_32k_ck);
8188c2ecf20Sopenharmony_ci	abe_dpll = clk_get_sys(NULL, "dpll_abe_ck");
8198c2ecf20Sopenharmony_ci	if (!rc)
8208c2ecf20Sopenharmony_ci		rc = clk_set_rate(abe_dpll, OMAP4_DPLL_ABE_DEFFREQ);
8218c2ecf20Sopenharmony_ci	if (rc)
8228c2ecf20Sopenharmony_ci		pr_err("%s: failed to configure ABE DPLL!\n", __func__);
8238c2ecf20Sopenharmony_ci
8248c2ecf20Sopenharmony_ci	return 0;
8258c2ecf20Sopenharmony_ci}
826