1*52b14728STero Kristo /* 2*52b14728STero Kristo * OMAP5 Clock init 3*52b14728STero Kristo * 4*52b14728STero Kristo * Copyright (C) 2013 Texas Instruments, Inc. 5*52b14728STero Kristo * 6*52b14728STero Kristo * Tero Kristo (t-kristo@ti.com) 7*52b14728STero Kristo * 8*52b14728STero Kristo * This program is free software; you can redistribute it and/or modify 9*52b14728STero Kristo * it under the terms of the GNU General Public License version 2 as 10*52b14728STero Kristo * published by the Free Software Foundation. 11*52b14728STero Kristo */ 12*52b14728STero Kristo 13*52b14728STero Kristo #include <linux/kernel.h> 14*52b14728STero Kristo #include <linux/list.h> 15*52b14728STero Kristo #include <linux/clk-private.h> 16*52b14728STero Kristo #include <linux/clkdev.h> 17*52b14728STero Kristo #include <linux/io.h> 18*52b14728STero Kristo #include <linux/clk/ti.h> 19*52b14728STero Kristo 20*52b14728STero Kristo #define OMAP5_DPLL_ABE_DEFFREQ 98304000 21*52b14728STero Kristo 22*52b14728STero Kristo static struct ti_dt_clk omap54xx_clks[] = { 23*52b14728STero Kristo DT_CLK(NULL, "pad_clks_src_ck", "pad_clks_src_ck"), 24*52b14728STero Kristo DT_CLK(NULL, "pad_clks_ck", "pad_clks_ck"), 25*52b14728STero Kristo DT_CLK(NULL, "secure_32k_clk_src_ck", "secure_32k_clk_src_ck"), 26*52b14728STero Kristo DT_CLK(NULL, "slimbus_src_clk", "slimbus_src_clk"), 27*52b14728STero Kristo DT_CLK(NULL, "slimbus_clk", "slimbus_clk"), 28*52b14728STero Kristo DT_CLK(NULL, "sys_32k_ck", "sys_32k_ck"), 29*52b14728STero Kristo DT_CLK(NULL, "virt_12000000_ck", "virt_12000000_ck"), 30*52b14728STero Kristo DT_CLK(NULL, "virt_13000000_ck", "virt_13000000_ck"), 31*52b14728STero Kristo DT_CLK(NULL, "virt_16800000_ck", "virt_16800000_ck"), 32*52b14728STero Kristo DT_CLK(NULL, "virt_19200000_ck", "virt_19200000_ck"), 33*52b14728STero Kristo DT_CLK(NULL, "virt_26000000_ck", "virt_26000000_ck"), 34*52b14728STero Kristo DT_CLK(NULL, "virt_27000000_ck", "virt_27000000_ck"), 35*52b14728STero Kristo DT_CLK(NULL, "virt_38400000_ck", "virt_38400000_ck"), 36*52b14728STero Kristo DT_CLK(NULL, "sys_clkin", "sys_clkin"), 37*52b14728STero Kristo DT_CLK(NULL, "xclk60mhsp1_ck", "xclk60mhsp1_ck"), 38*52b14728STero Kristo DT_CLK(NULL, "xclk60mhsp2_ck", "xclk60mhsp2_ck"), 39*52b14728STero Kristo DT_CLK(NULL, "abe_dpll_bypass_clk_mux", "abe_dpll_bypass_clk_mux"), 40*52b14728STero Kristo DT_CLK(NULL, "abe_dpll_clk_mux", "abe_dpll_clk_mux"), 41*52b14728STero Kristo DT_CLK(NULL, "dpll_abe_ck", "dpll_abe_ck"), 42*52b14728STero Kristo DT_CLK(NULL, "dpll_abe_x2_ck", "dpll_abe_x2_ck"), 43*52b14728STero Kristo DT_CLK(NULL, "dpll_abe_m2x2_ck", "dpll_abe_m2x2_ck"), 44*52b14728STero Kristo DT_CLK(NULL, "abe_24m_fclk", "abe_24m_fclk"), 45*52b14728STero Kristo DT_CLK(NULL, "abe_clk", "abe_clk"), 46*52b14728STero Kristo DT_CLK(NULL, "abe_iclk", "abe_iclk"), 47*52b14728STero Kristo DT_CLK(NULL, "abe_lp_clk_div", "abe_lp_clk_div"), 48*52b14728STero Kristo DT_CLK(NULL, "dpll_abe_m3x2_ck", "dpll_abe_m3x2_ck"), 49*52b14728STero Kristo DT_CLK(NULL, "dpll_core_ck", "dpll_core_ck"), 50*52b14728STero Kristo DT_CLK(NULL, "dpll_core_x2_ck", "dpll_core_x2_ck"), 51*52b14728STero Kristo DT_CLK(NULL, "dpll_core_h21x2_ck", "dpll_core_h21x2_ck"), 52*52b14728STero Kristo DT_CLK(NULL, "c2c_fclk", "c2c_fclk"), 53*52b14728STero Kristo DT_CLK(NULL, "c2c_iclk", "c2c_iclk"), 54*52b14728STero Kristo DT_CLK(NULL, "custefuse_sys_gfclk_div", "custefuse_sys_gfclk_div"), 55*52b14728STero Kristo DT_CLK(NULL, "dpll_core_h11x2_ck", "dpll_core_h11x2_ck"), 56*52b14728STero Kristo DT_CLK(NULL, "dpll_core_h12x2_ck", "dpll_core_h12x2_ck"), 57*52b14728STero Kristo DT_CLK(NULL, "dpll_core_h13x2_ck", "dpll_core_h13x2_ck"), 58*52b14728STero Kristo DT_CLK(NULL, "dpll_core_h14x2_ck", "dpll_core_h14x2_ck"), 59*52b14728STero Kristo DT_CLK(NULL, "dpll_core_h22x2_ck", "dpll_core_h22x2_ck"), 60*52b14728STero Kristo DT_CLK(NULL, "dpll_core_h23x2_ck", "dpll_core_h23x2_ck"), 61*52b14728STero Kristo DT_CLK(NULL, "dpll_core_h24x2_ck", "dpll_core_h24x2_ck"), 62*52b14728STero Kristo DT_CLK(NULL, "dpll_core_m2_ck", "dpll_core_m2_ck"), 63*52b14728STero Kristo DT_CLK(NULL, "dpll_core_m3x2_ck", "dpll_core_m3x2_ck"), 64*52b14728STero Kristo DT_CLK(NULL, "iva_dpll_hs_clk_div", "iva_dpll_hs_clk_div"), 65*52b14728STero Kristo DT_CLK(NULL, "dpll_iva_ck", "dpll_iva_ck"), 66*52b14728STero Kristo DT_CLK(NULL, "dpll_iva_x2_ck", "dpll_iva_x2_ck"), 67*52b14728STero Kristo DT_CLK(NULL, "dpll_iva_h11x2_ck", "dpll_iva_h11x2_ck"), 68*52b14728STero Kristo DT_CLK(NULL, "dpll_iva_h12x2_ck", "dpll_iva_h12x2_ck"), 69*52b14728STero Kristo DT_CLK(NULL, "mpu_dpll_hs_clk_div", "mpu_dpll_hs_clk_div"), 70*52b14728STero Kristo DT_CLK(NULL, "dpll_mpu_ck", "dpll_mpu_ck"), 71*52b14728STero Kristo DT_CLK(NULL, "dpll_mpu_m2_ck", "dpll_mpu_m2_ck"), 72*52b14728STero Kristo DT_CLK(NULL, "per_dpll_hs_clk_div", "per_dpll_hs_clk_div"), 73*52b14728STero Kristo DT_CLK(NULL, "dpll_per_ck", "dpll_per_ck"), 74*52b14728STero Kristo DT_CLK(NULL, "dpll_per_x2_ck", "dpll_per_x2_ck"), 75*52b14728STero Kristo DT_CLK(NULL, "dpll_per_h11x2_ck", "dpll_per_h11x2_ck"), 76*52b14728STero Kristo DT_CLK(NULL, "dpll_per_h12x2_ck", "dpll_per_h12x2_ck"), 77*52b14728STero Kristo DT_CLK(NULL, "dpll_per_h14x2_ck", "dpll_per_h14x2_ck"), 78*52b14728STero Kristo DT_CLK(NULL, "dpll_per_m2_ck", "dpll_per_m2_ck"), 79*52b14728STero Kristo DT_CLK(NULL, "dpll_per_m2x2_ck", "dpll_per_m2x2_ck"), 80*52b14728STero Kristo DT_CLK(NULL, "dpll_per_m3x2_ck", "dpll_per_m3x2_ck"), 81*52b14728STero Kristo DT_CLK(NULL, "dpll_unipro1_ck", "dpll_unipro1_ck"), 82*52b14728STero Kristo DT_CLK(NULL, "dpll_unipro1_clkdcoldo", "dpll_unipro1_clkdcoldo"), 83*52b14728STero Kristo DT_CLK(NULL, "dpll_unipro1_m2_ck", "dpll_unipro1_m2_ck"), 84*52b14728STero Kristo DT_CLK(NULL, "dpll_unipro2_ck", "dpll_unipro2_ck"), 85*52b14728STero Kristo DT_CLK(NULL, "dpll_unipro2_clkdcoldo", "dpll_unipro2_clkdcoldo"), 86*52b14728STero Kristo DT_CLK(NULL, "dpll_unipro2_m2_ck", "dpll_unipro2_m2_ck"), 87*52b14728STero Kristo DT_CLK(NULL, "usb_dpll_hs_clk_div", "usb_dpll_hs_clk_div"), 88*52b14728STero Kristo DT_CLK(NULL, "dpll_usb_ck", "dpll_usb_ck"), 89*52b14728STero Kristo DT_CLK(NULL, "dpll_usb_clkdcoldo", "dpll_usb_clkdcoldo"), 90*52b14728STero Kristo DT_CLK(NULL, "dpll_usb_m2_ck", "dpll_usb_m2_ck"), 91*52b14728STero Kristo DT_CLK(NULL, "dss_syc_gfclk_div", "dss_syc_gfclk_div"), 92*52b14728STero Kristo DT_CLK(NULL, "func_128m_clk", "func_128m_clk"), 93*52b14728STero Kristo DT_CLK(NULL, "func_12m_fclk", "func_12m_fclk"), 94*52b14728STero Kristo DT_CLK(NULL, "func_24m_clk", "func_24m_clk"), 95*52b14728STero Kristo DT_CLK(NULL, "func_48m_fclk", "func_48m_fclk"), 96*52b14728STero Kristo DT_CLK(NULL, "func_96m_fclk", "func_96m_fclk"), 97*52b14728STero Kristo DT_CLK(NULL, "l3_iclk_div", "l3_iclk_div"), 98*52b14728STero Kristo DT_CLK(NULL, "gpu_l3_iclk", "gpu_l3_iclk"), 99*52b14728STero Kristo DT_CLK(NULL, "l3init_60m_fclk", "l3init_60m_fclk"), 100*52b14728STero Kristo DT_CLK(NULL, "wkupaon_iclk_mux", "wkupaon_iclk_mux"), 101*52b14728STero Kristo DT_CLK(NULL, "l3instr_ts_gclk_div", "l3instr_ts_gclk_div"), 102*52b14728STero Kristo DT_CLK(NULL, "l4_root_clk_div", "l4_root_clk_div"), 103*52b14728STero Kristo DT_CLK(NULL, "dss_32khz_clk", "dss_32khz_clk"), 104*52b14728STero Kristo DT_CLK(NULL, "dss_48mhz_clk", "dss_48mhz_clk"), 105*52b14728STero Kristo DT_CLK(NULL, "dss_dss_clk", "dss_dss_clk"), 106*52b14728STero Kristo DT_CLK(NULL, "dss_sys_clk", "dss_sys_clk"), 107*52b14728STero Kristo DT_CLK(NULL, "gpio1_dbclk", "gpio1_dbclk"), 108*52b14728STero Kristo DT_CLK(NULL, "gpio2_dbclk", "gpio2_dbclk"), 109*52b14728STero Kristo DT_CLK(NULL, "gpio3_dbclk", "gpio3_dbclk"), 110*52b14728STero Kristo DT_CLK(NULL, "gpio4_dbclk", "gpio4_dbclk"), 111*52b14728STero Kristo DT_CLK(NULL, "gpio5_dbclk", "gpio5_dbclk"), 112*52b14728STero Kristo DT_CLK(NULL, "gpio6_dbclk", "gpio6_dbclk"), 113*52b14728STero Kristo DT_CLK(NULL, "gpio7_dbclk", "gpio7_dbclk"), 114*52b14728STero Kristo DT_CLK(NULL, "gpio8_dbclk", "gpio8_dbclk"), 115*52b14728STero Kristo DT_CLK(NULL, "iss_ctrlclk", "iss_ctrlclk"), 116*52b14728STero Kristo DT_CLK(NULL, "lli_txphy_clk", "lli_txphy_clk"), 117*52b14728STero Kristo DT_CLK(NULL, "lli_txphy_ls_clk", "lli_txphy_ls_clk"), 118*52b14728STero Kristo DT_CLK(NULL, "mmc1_32khz_clk", "mmc1_32khz_clk"), 119*52b14728STero Kristo DT_CLK(NULL, "sata_ref_clk", "sata_ref_clk"), 120*52b14728STero Kristo DT_CLK(NULL, "slimbus1_slimbus_clk", "slimbus1_slimbus_clk"), 121*52b14728STero Kristo DT_CLK(NULL, "usb_host_hs_hsic480m_p1_clk", "usb_host_hs_hsic480m_p1_clk"), 122*52b14728STero Kristo DT_CLK(NULL, "usb_host_hs_hsic480m_p2_clk", "usb_host_hs_hsic480m_p2_clk"), 123*52b14728STero Kristo DT_CLK(NULL, "usb_host_hs_hsic480m_p3_clk", "usb_host_hs_hsic480m_p3_clk"), 124*52b14728STero Kristo DT_CLK(NULL, "usb_host_hs_hsic60m_p1_clk", "usb_host_hs_hsic60m_p1_clk"), 125*52b14728STero Kristo DT_CLK(NULL, "usb_host_hs_hsic60m_p2_clk", "usb_host_hs_hsic60m_p2_clk"), 126*52b14728STero Kristo DT_CLK(NULL, "usb_host_hs_hsic60m_p3_clk", "usb_host_hs_hsic60m_p3_clk"), 127*52b14728STero Kristo DT_CLK(NULL, "usb_host_hs_utmi_p1_clk", "usb_host_hs_utmi_p1_clk"), 128*52b14728STero Kristo DT_CLK(NULL, "usb_host_hs_utmi_p2_clk", "usb_host_hs_utmi_p2_clk"), 129*52b14728STero Kristo DT_CLK(NULL, "usb_host_hs_utmi_p3_clk", "usb_host_hs_utmi_p3_clk"), 130*52b14728STero Kristo DT_CLK(NULL, "usb_otg_ss_refclk960m", "usb_otg_ss_refclk960m"), 131*52b14728STero Kristo DT_CLK(NULL, "usb_phy_cm_clk32k", "usb_phy_cm_clk32k"), 132*52b14728STero Kristo DT_CLK(NULL, "usb_tll_hs_usb_ch0_clk", "usb_tll_hs_usb_ch0_clk"), 133*52b14728STero Kristo DT_CLK(NULL, "usb_tll_hs_usb_ch1_clk", "usb_tll_hs_usb_ch1_clk"), 134*52b14728STero Kristo DT_CLK(NULL, "usb_tll_hs_usb_ch2_clk", "usb_tll_hs_usb_ch2_clk"), 135*52b14728STero Kristo DT_CLK(NULL, "aess_fclk", "aess_fclk"), 136*52b14728STero Kristo DT_CLK(NULL, "dmic_sync_mux_ck", "dmic_sync_mux_ck"), 137*52b14728STero Kristo DT_CLK(NULL, "dmic_gfclk", "dmic_gfclk"), 138*52b14728STero Kristo DT_CLK(NULL, "fdif_fclk", "fdif_fclk"), 139*52b14728STero Kristo DT_CLK(NULL, "gpu_core_gclk_mux", "gpu_core_gclk_mux"), 140*52b14728STero Kristo DT_CLK(NULL, "gpu_hyd_gclk_mux", "gpu_hyd_gclk_mux"), 141*52b14728STero Kristo DT_CLK(NULL, "hsi_fclk", "hsi_fclk"), 142*52b14728STero Kristo DT_CLK(NULL, "mcasp_sync_mux_ck", "mcasp_sync_mux_ck"), 143*52b14728STero Kristo DT_CLK(NULL, "mcasp_gfclk", "mcasp_gfclk"), 144*52b14728STero Kristo DT_CLK(NULL, "mcbsp1_sync_mux_ck", "mcbsp1_sync_mux_ck"), 145*52b14728STero Kristo DT_CLK(NULL, "mcbsp1_gfclk", "mcbsp1_gfclk"), 146*52b14728STero Kristo DT_CLK(NULL, "mcbsp2_sync_mux_ck", "mcbsp2_sync_mux_ck"), 147*52b14728STero Kristo DT_CLK(NULL, "mcbsp2_gfclk", "mcbsp2_gfclk"), 148*52b14728STero Kristo DT_CLK(NULL, "mcbsp3_sync_mux_ck", "mcbsp3_sync_mux_ck"), 149*52b14728STero Kristo DT_CLK(NULL, "mcbsp3_gfclk", "mcbsp3_gfclk"), 150*52b14728STero Kristo DT_CLK(NULL, "mmc1_fclk_mux", "mmc1_fclk_mux"), 151*52b14728STero Kristo DT_CLK(NULL, "mmc1_fclk", "mmc1_fclk"), 152*52b14728STero Kristo DT_CLK(NULL, "mmc2_fclk_mux", "mmc2_fclk_mux"), 153*52b14728STero Kristo DT_CLK(NULL, "mmc2_fclk", "mmc2_fclk"), 154*52b14728STero Kristo DT_CLK(NULL, "timer10_gfclk_mux", "timer10_gfclk_mux"), 155*52b14728STero Kristo DT_CLK(NULL, "timer11_gfclk_mux", "timer11_gfclk_mux"), 156*52b14728STero Kristo DT_CLK(NULL, "timer1_gfclk_mux", "timer1_gfclk_mux"), 157*52b14728STero Kristo DT_CLK(NULL, "timer2_gfclk_mux", "timer2_gfclk_mux"), 158*52b14728STero Kristo DT_CLK(NULL, "timer3_gfclk_mux", "timer3_gfclk_mux"), 159*52b14728STero Kristo DT_CLK(NULL, "timer4_gfclk_mux", "timer4_gfclk_mux"), 160*52b14728STero Kristo DT_CLK(NULL, "timer5_gfclk_mux", "timer5_gfclk_mux"), 161*52b14728STero Kristo DT_CLK(NULL, "timer6_gfclk_mux", "timer6_gfclk_mux"), 162*52b14728STero Kristo DT_CLK(NULL, "timer7_gfclk_mux", "timer7_gfclk_mux"), 163*52b14728STero Kristo DT_CLK(NULL, "timer8_gfclk_mux", "timer8_gfclk_mux"), 164*52b14728STero Kristo DT_CLK(NULL, "timer9_gfclk_mux", "timer9_gfclk_mux"), 165*52b14728STero Kristo DT_CLK(NULL, "utmi_p1_gfclk", "utmi_p1_gfclk"), 166*52b14728STero Kristo DT_CLK(NULL, "utmi_p2_gfclk", "utmi_p2_gfclk"), 167*52b14728STero Kristo DT_CLK(NULL, "auxclk0_src_ck", "auxclk0_src_ck"), 168*52b14728STero Kristo DT_CLK(NULL, "auxclk0_ck", "auxclk0_ck"), 169*52b14728STero Kristo DT_CLK(NULL, "auxclkreq0_ck", "auxclkreq0_ck"), 170*52b14728STero Kristo DT_CLK(NULL, "auxclk1_src_ck", "auxclk1_src_ck"), 171*52b14728STero Kristo DT_CLK(NULL, "auxclk1_ck", "auxclk1_ck"), 172*52b14728STero Kristo DT_CLK(NULL, "auxclkreq1_ck", "auxclkreq1_ck"), 173*52b14728STero Kristo DT_CLK(NULL, "auxclk2_src_ck", "auxclk2_src_ck"), 174*52b14728STero Kristo DT_CLK(NULL, "auxclk2_ck", "auxclk2_ck"), 175*52b14728STero Kristo DT_CLK(NULL, "auxclkreq2_ck", "auxclkreq2_ck"), 176*52b14728STero Kristo DT_CLK(NULL, "auxclk3_src_ck", "auxclk3_src_ck"), 177*52b14728STero Kristo DT_CLK(NULL, "auxclk3_ck", "auxclk3_ck"), 178*52b14728STero Kristo DT_CLK(NULL, "auxclkreq3_ck", "auxclkreq3_ck"), 179*52b14728STero Kristo DT_CLK(NULL, "gpmc_ck", "dummy_ck"), 180*52b14728STero Kristo DT_CLK("omap_i2c.1", "ick", "dummy_ck"), 181*52b14728STero Kristo DT_CLK("omap_i2c.2", "ick", "dummy_ck"), 182*52b14728STero Kristo DT_CLK("omap_i2c.3", "ick", "dummy_ck"), 183*52b14728STero Kristo DT_CLK("omap_i2c.4", "ick", "dummy_ck"), 184*52b14728STero Kristo DT_CLK(NULL, "mailboxes_ick", "dummy_ck"), 185*52b14728STero Kristo DT_CLK("omap_hsmmc.0", "ick", "dummy_ck"), 186*52b14728STero Kristo DT_CLK("omap_hsmmc.1", "ick", "dummy_ck"), 187*52b14728STero Kristo DT_CLK("omap_hsmmc.2", "ick", "dummy_ck"), 188*52b14728STero Kristo DT_CLK("omap_hsmmc.3", "ick", "dummy_ck"), 189*52b14728STero Kristo DT_CLK("omap_hsmmc.4", "ick", "dummy_ck"), 190*52b14728STero Kristo DT_CLK("omap-mcbsp.1", "ick", "dummy_ck"), 191*52b14728STero Kristo DT_CLK("omap-mcbsp.2", "ick", "dummy_ck"), 192*52b14728STero Kristo DT_CLK("omap-mcbsp.3", "ick", "dummy_ck"), 193*52b14728STero Kristo DT_CLK("omap-mcbsp.4", "ick", "dummy_ck"), 194*52b14728STero Kristo DT_CLK("omap2_mcspi.1", "ick", "dummy_ck"), 195*52b14728STero Kristo DT_CLK("omap2_mcspi.2", "ick", "dummy_ck"), 196*52b14728STero Kristo DT_CLK("omap2_mcspi.3", "ick", "dummy_ck"), 197*52b14728STero Kristo DT_CLK("omap2_mcspi.4", "ick", "dummy_ck"), 198*52b14728STero Kristo DT_CLK(NULL, "uart1_ick", "dummy_ck"), 199*52b14728STero Kristo DT_CLK(NULL, "uart2_ick", "dummy_ck"), 200*52b14728STero Kristo DT_CLK(NULL, "uart3_ick", "dummy_ck"), 201*52b14728STero Kristo DT_CLK(NULL, "uart4_ick", "dummy_ck"), 202*52b14728STero Kristo DT_CLK("usbhs_omap", "usbhost_ick", "dummy_ck"), 203*52b14728STero Kristo DT_CLK("usbhs_omap", "usbtll_fck", "dummy_ck"), 204*52b14728STero Kristo DT_CLK("omap_wdt", "ick", "dummy_ck"), 205*52b14728STero Kristo DT_CLK(NULL, "timer_32k_ck", "sys_32k_ck"), 206*52b14728STero Kristo DT_CLK("omap_timer.1", "sys_ck", "sys_clkin"), 207*52b14728STero Kristo DT_CLK("omap_timer.2", "sys_ck", "sys_clkin"), 208*52b14728STero Kristo DT_CLK("omap_timer.3", "sys_ck", "sys_clkin"), 209*52b14728STero Kristo DT_CLK("omap_timer.4", "sys_ck", "sys_clkin"), 210*52b14728STero Kristo DT_CLK("omap_timer.9", "sys_ck", "sys_clkin"), 211*52b14728STero Kristo DT_CLK("omap_timer.10", "sys_ck", "sys_clkin"), 212*52b14728STero Kristo DT_CLK("omap_timer.11", "sys_ck", "sys_clkin"), 213*52b14728STero Kristo DT_CLK("omap_timer.5", "sys_ck", "dss_syc_gfclk_div"), 214*52b14728STero Kristo DT_CLK("omap_timer.6", "sys_ck", "dss_syc_gfclk_div"), 215*52b14728STero Kristo DT_CLK("omap_timer.7", "sys_ck", "dss_syc_gfclk_div"), 216*52b14728STero Kristo DT_CLK("omap_timer.8", "sys_ck", "dss_syc_gfclk_div"), 217*52b14728STero Kristo { .node_name = NULL }, 218*52b14728STero Kristo }; 219*52b14728STero Kristo 220*52b14728STero Kristo int __init omap5xxx_dt_clk_init(void) 221*52b14728STero Kristo { 222*52b14728STero Kristo int rc; 223*52b14728STero Kristo struct clk *abe_dpll_ref, *abe_dpll, *sys_32k_ck; 224*52b14728STero Kristo 225*52b14728STero Kristo ti_dt_clocks_register(omap54xx_clks); 226*52b14728STero Kristo 227*52b14728STero Kristo omap2_clk_disable_autoidle_all(); 228*52b14728STero Kristo 229*52b14728STero Kristo abe_dpll_ref = clk_get_sys(NULL, "abe_dpll_clk_mux"); 230*52b14728STero Kristo sys_32k_ck = clk_get_sys(NULL, "sys_32k_ck"); 231*52b14728STero Kristo rc = clk_set_parent(abe_dpll_ref, sys_32k_ck); 232*52b14728STero Kristo abe_dpll = clk_get_sys(NULL, "dpll_abe_ck"); 233*52b14728STero Kristo if (!rc) 234*52b14728STero Kristo rc = clk_set_rate(abe_dpll, OMAP5_DPLL_ABE_DEFFREQ); 235*52b14728STero Kristo if (rc) 236*52b14728STero Kristo pr_err("%s: failed to configure ABE DPLL!\n", __func__); 237*52b14728STero Kristo 238*52b14728STero Kristo return 0; 239*52b14728STero Kristo } 240