SRICHARAN R | 01b753f | 2013-02-04 04:22:00 +0000 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * HW regs data for OMAP4 |
| 4 | * |
| 5 | * (C) Copyright 2013 |
| 6 | * Texas Instruments, <www.ti.com> |
| 7 | * |
| 8 | * Sricharan R <r.sricharan@ti.com> |
| 9 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
SRICHARAN R | 01b753f | 2013-02-04 04:22:00 +0000 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #include <asm/omap_common.h> |
| 14 | |
| 15 | struct prcm_regs const omap4_prcm = { |
| 16 | /* cm1.ckgen */ |
| 17 | .cm_clksel_core = 0x4a004100, |
| 18 | .cm_clksel_abe = 0x4a004108, |
| 19 | .cm_dll_ctrl = 0x4a004110, |
| 20 | .cm_clkmode_dpll_core = 0x4a004120, |
| 21 | .cm_idlest_dpll_core = 0x4a004124, |
| 22 | .cm_autoidle_dpll_core = 0x4a004128, |
| 23 | .cm_clksel_dpll_core = 0x4a00412c, |
| 24 | .cm_div_m2_dpll_core = 0x4a004130, |
| 25 | .cm_div_m3_dpll_core = 0x4a004134, |
| 26 | .cm_div_m4_dpll_core = 0x4a004138, |
| 27 | .cm_div_m5_dpll_core = 0x4a00413c, |
| 28 | .cm_div_m6_dpll_core = 0x4a004140, |
| 29 | .cm_div_m7_dpll_core = 0x4a004144, |
| 30 | .cm_ssc_deltamstep_dpll_core = 0x4a004148, |
| 31 | .cm_ssc_modfreqdiv_dpll_core = 0x4a00414c, |
| 32 | .cm_emu_override_dpll_core = 0x4a004150, |
| 33 | .cm_clkmode_dpll_mpu = 0x4a004160, |
| 34 | .cm_idlest_dpll_mpu = 0x4a004164, |
| 35 | .cm_autoidle_dpll_mpu = 0x4a004168, |
| 36 | .cm_clksel_dpll_mpu = 0x4a00416c, |
| 37 | .cm_div_m2_dpll_mpu = 0x4a004170, |
| 38 | .cm_ssc_deltamstep_dpll_mpu = 0x4a004188, |
| 39 | .cm_ssc_modfreqdiv_dpll_mpu = 0x4a00418c, |
| 40 | .cm_bypclk_dpll_mpu = 0x4a00419c, |
| 41 | .cm_clkmode_dpll_iva = 0x4a0041a0, |
| 42 | .cm_idlest_dpll_iva = 0x4a0041a4, |
| 43 | .cm_autoidle_dpll_iva = 0x4a0041a8, |
| 44 | .cm_clksel_dpll_iva = 0x4a0041ac, |
| 45 | .cm_div_m4_dpll_iva = 0x4a0041b8, |
| 46 | .cm_div_m5_dpll_iva = 0x4a0041bc, |
| 47 | .cm_ssc_deltamstep_dpll_iva = 0x4a0041c8, |
| 48 | .cm_ssc_modfreqdiv_dpll_iva = 0x4a0041cc, |
| 49 | .cm_bypclk_dpll_iva = 0x4a0041dc, |
| 50 | .cm_clkmode_dpll_abe = 0x4a0041e0, |
| 51 | .cm_idlest_dpll_abe = 0x4a0041e4, |
| 52 | .cm_autoidle_dpll_abe = 0x4a0041e8, |
| 53 | .cm_clksel_dpll_abe = 0x4a0041ec, |
| 54 | .cm_div_m2_dpll_abe = 0x4a0041f0, |
| 55 | .cm_div_m3_dpll_abe = 0x4a0041f4, |
| 56 | .cm_ssc_deltamstep_dpll_abe = 0x4a004208, |
| 57 | .cm_ssc_modfreqdiv_dpll_abe = 0x4a00420c, |
| 58 | .cm_clkmode_dpll_ddrphy = 0x4a004220, |
| 59 | .cm_idlest_dpll_ddrphy = 0x4a004224, |
| 60 | .cm_autoidle_dpll_ddrphy = 0x4a004228, |
| 61 | .cm_clksel_dpll_ddrphy = 0x4a00422c, |
| 62 | .cm_div_m2_dpll_ddrphy = 0x4a004230, |
| 63 | .cm_div_m4_dpll_ddrphy = 0x4a004238, |
| 64 | .cm_div_m5_dpll_ddrphy = 0x4a00423c, |
| 65 | .cm_div_m6_dpll_ddrphy = 0x4a004240, |
| 66 | .cm_ssc_deltamstep_dpll_ddrphy = 0x4a004248, |
| 67 | .cm_shadow_freq_config1 = 0x4a004260, |
| 68 | .cm_mpu_mpu_clkctrl = 0x4a004320, |
| 69 | |
| 70 | /* cm1.dsp */ |
| 71 | .cm_dsp_clkstctrl = 0x4a004400, |
| 72 | .cm_dsp_dsp_clkctrl = 0x4a004420, |
| 73 | |
| 74 | /* cm1.abe */ |
| 75 | .cm1_abe_clkstctrl = 0x4a004500, |
| 76 | .cm1_abe_l4abe_clkctrl = 0x4a004520, |
| 77 | .cm1_abe_aess_clkctrl = 0x4a004528, |
| 78 | .cm1_abe_pdm_clkctrl = 0x4a004530, |
| 79 | .cm1_abe_dmic_clkctrl = 0x4a004538, |
| 80 | .cm1_abe_mcasp_clkctrl = 0x4a004540, |
| 81 | .cm1_abe_mcbsp1_clkctrl = 0x4a004548, |
| 82 | .cm1_abe_mcbsp2_clkctrl = 0x4a004550, |
| 83 | .cm1_abe_mcbsp3_clkctrl = 0x4a004558, |
| 84 | .cm1_abe_slimbus_clkctrl = 0x4a004560, |
| 85 | .cm1_abe_timer5_clkctrl = 0x4a004568, |
| 86 | .cm1_abe_timer6_clkctrl = 0x4a004570, |
| 87 | .cm1_abe_timer7_clkctrl = 0x4a004578, |
| 88 | .cm1_abe_timer8_clkctrl = 0x4a004580, |
| 89 | .cm1_abe_wdt3_clkctrl = 0x4a004588, |
| 90 | |
| 91 | /* cm2.ckgen */ |
| 92 | .cm_clksel_mpu_m3_iss_root = 0x4a008100, |
| 93 | .cm_clksel_usb_60mhz = 0x4a008104, |
| 94 | .cm_scale_fclk = 0x4a008108, |
| 95 | .cm_core_dvfs_perf1 = 0x4a008110, |
| 96 | .cm_core_dvfs_perf2 = 0x4a008114, |
| 97 | .cm_core_dvfs_perf3 = 0x4a008118, |
| 98 | .cm_core_dvfs_perf4 = 0x4a00811c, |
| 99 | .cm_core_dvfs_current = 0x4a008124, |
| 100 | .cm_iva_dvfs_perf_tesla = 0x4a008128, |
| 101 | .cm_iva_dvfs_perf_ivahd = 0x4a00812c, |
| 102 | .cm_iva_dvfs_perf_abe = 0x4a008130, |
| 103 | .cm_iva_dvfs_current = 0x4a008138, |
| 104 | .cm_clkmode_dpll_per = 0x4a008140, |
| 105 | .cm_idlest_dpll_per = 0x4a008144, |
| 106 | .cm_autoidle_dpll_per = 0x4a008148, |
| 107 | .cm_clksel_dpll_per = 0x4a00814c, |
| 108 | .cm_div_m2_dpll_per = 0x4a008150, |
| 109 | .cm_div_m3_dpll_per = 0x4a008154, |
| 110 | .cm_div_m4_dpll_per = 0x4a008158, |
| 111 | .cm_div_m5_dpll_per = 0x4a00815c, |
| 112 | .cm_div_m6_dpll_per = 0x4a008160, |
| 113 | .cm_div_m7_dpll_per = 0x4a008164, |
| 114 | .cm_ssc_deltamstep_dpll_per = 0x4a008168, |
| 115 | .cm_ssc_modfreqdiv_dpll_per = 0x4a00816c, |
| 116 | .cm_emu_override_dpll_per = 0x4a008170, |
| 117 | .cm_clkmode_dpll_usb = 0x4a008180, |
| 118 | .cm_idlest_dpll_usb = 0x4a008184, |
| 119 | .cm_autoidle_dpll_usb = 0x4a008188, |
| 120 | .cm_clksel_dpll_usb = 0x4a00818c, |
| 121 | .cm_div_m2_dpll_usb = 0x4a008190, |
| 122 | .cm_ssc_deltamstep_dpll_usb = 0x4a0081a8, |
| 123 | .cm_ssc_modfreqdiv_dpll_usb = 0x4a0081ac, |
| 124 | .cm_clkdcoldo_dpll_usb = 0x4a0081b4, |
| 125 | .cm_clkmode_dpll_unipro = 0x4a0081c0, |
| 126 | .cm_idlest_dpll_unipro = 0x4a0081c4, |
| 127 | .cm_autoidle_dpll_unipro = 0x4a0081c8, |
| 128 | .cm_clksel_dpll_unipro = 0x4a0081cc, |
| 129 | .cm_div_m2_dpll_unipro = 0x4a0081d0, |
| 130 | .cm_ssc_deltamstep_dpll_unipro = 0x4a0081e8, |
| 131 | .cm_ssc_modfreqdiv_dpll_unipro = 0x4a0081ec, |
Paul Kocialkowski | 6e495a4 | 2016-02-27 19:19:02 +0100 | [diff] [blame] | 132 | .cm_coreaon_usb_phy1_core_clkctrl = 0x4a008640, |
SRICHARAN R | 01b753f | 2013-02-04 04:22:00 +0000 | [diff] [blame] | 133 | |
| 134 | /* cm2.core */ |
| 135 | .cm_l3_1_clkstctrl = 0x4a008700, |
| 136 | .cm_l3_1_dynamicdep = 0x4a008708, |
| 137 | .cm_l3_1_l3_1_clkctrl = 0x4a008720, |
| 138 | .cm_l3_2_clkstctrl = 0x4a008800, |
| 139 | .cm_l3_2_dynamicdep = 0x4a008808, |
| 140 | .cm_l3_2_l3_2_clkctrl = 0x4a008820, |
Lokesh Vutla | d4e4129 | 2013-02-17 23:33:37 +0000 | [diff] [blame] | 141 | .cm_l3_gpmc_clkctrl = 0x4a008828, |
SRICHARAN R | 01b753f | 2013-02-04 04:22:00 +0000 | [diff] [blame] | 142 | .cm_l3_2_ocmc_ram_clkctrl = 0x4a008830, |
| 143 | .cm_mpu_m3_clkstctrl = 0x4a008900, |
| 144 | .cm_mpu_m3_staticdep = 0x4a008904, |
| 145 | .cm_mpu_m3_dynamicdep = 0x4a008908, |
| 146 | .cm_mpu_m3_mpu_m3_clkctrl = 0x4a008920, |
| 147 | .cm_sdma_clkstctrl = 0x4a008a00, |
| 148 | .cm_sdma_staticdep = 0x4a008a04, |
| 149 | .cm_sdma_dynamicdep = 0x4a008a08, |
| 150 | .cm_sdma_sdma_clkctrl = 0x4a008a20, |
| 151 | .cm_memif_clkstctrl = 0x4a008b00, |
| 152 | .cm_memif_dmm_clkctrl = 0x4a008b20, |
| 153 | .cm_memif_emif_fw_clkctrl = 0x4a008b28, |
| 154 | .cm_memif_emif_1_clkctrl = 0x4a008b30, |
| 155 | .cm_memif_emif_2_clkctrl = 0x4a008b38, |
| 156 | .cm_memif_dll_clkctrl = 0x4a008b40, |
| 157 | .cm_memif_emif_h1_clkctrl = 0x4a008b50, |
| 158 | .cm_memif_emif_h2_clkctrl = 0x4a008b58, |
| 159 | .cm_memif_dll_h_clkctrl = 0x4a008b60, |
| 160 | .cm_c2c_clkstctrl = 0x4a008c00, |
| 161 | .cm_c2c_staticdep = 0x4a008c04, |
| 162 | .cm_c2c_dynamicdep = 0x4a008c08, |
| 163 | .cm_c2c_sad2d_clkctrl = 0x4a008c20, |
| 164 | .cm_c2c_modem_icr_clkctrl = 0x4a008c28, |
| 165 | .cm_c2c_sad2d_fw_clkctrl = 0x4a008c30, |
| 166 | .cm_l4cfg_clkstctrl = 0x4a008d00, |
| 167 | .cm_l4cfg_dynamicdep = 0x4a008d08, |
| 168 | .cm_l4cfg_l4_cfg_clkctrl = 0x4a008d20, |
| 169 | .cm_l4cfg_hw_sem_clkctrl = 0x4a008d28, |
| 170 | .cm_l4cfg_mailbox_clkctrl = 0x4a008d30, |
| 171 | .cm_l4cfg_sar_rom_clkctrl = 0x4a008d38, |
| 172 | .cm_l3instr_clkstctrl = 0x4a008e00, |
| 173 | .cm_l3instr_l3_3_clkctrl = 0x4a008e20, |
| 174 | .cm_l3instr_l3_instr_clkctrl = 0x4a008e28, |
| 175 | .cm_l3instr_intrconn_wp1_clkct = 0x4a008e40, |
| 176 | .cm_ivahd_clkstctrl = 0x4a008f00, |
| 177 | |
| 178 | /* cm2.ivahd */ |
| 179 | .cm_ivahd_ivahd_clkctrl = 0x4a008f20, |
| 180 | .cm_ivahd_sl2_clkctrl = 0x4a008f28, |
| 181 | |
| 182 | /* cm2.cam */ |
| 183 | .cm_cam_clkstctrl = 0x4a009000, |
| 184 | .cm_cam_iss_clkctrl = 0x4a009020, |
| 185 | .cm_cam_fdif_clkctrl = 0x4a009028, |
| 186 | |
| 187 | /* cm2.dss */ |
| 188 | .cm_dss_clkstctrl = 0x4a009100, |
| 189 | .cm_dss_dss_clkctrl = 0x4a009120, |
| 190 | |
| 191 | /* cm2.sgx */ |
| 192 | .cm_sgx_clkstctrl = 0x4a009200, |
| 193 | .cm_sgx_sgx_clkctrl = 0x4a009220, |
| 194 | |
| 195 | /* cm2.l3init */ |
| 196 | .cm_l3init_clkstctrl = 0x4a009300, |
| 197 | .cm_l3init_hsmmc1_clkctrl = 0x4a009328, |
| 198 | .cm_l3init_hsmmc2_clkctrl = 0x4a009330, |
| 199 | .cm_l3init_hsi_clkctrl = 0x4a009338, |
| 200 | .cm_l3init_hsusbhost_clkctrl = 0x4a009358, |
| 201 | .cm_l3init_hsusbotg_clkctrl = 0x4a009360, |
| 202 | .cm_l3init_hsusbtll_clkctrl = 0x4a009368, |
| 203 | .cm_l3init_p1500_clkctrl = 0x4a009378, |
| 204 | .cm_l3init_fsusb_clkctrl = 0x4a0093d0, |
| 205 | .cm_l3init_usbphy_clkctrl = 0x4a0093e0, |
| 206 | |
| 207 | /* cm2.l4per */ |
| 208 | .cm_l4per_clkstctrl = 0x4a009400, |
| 209 | .cm_l4per_dynamicdep = 0x4a009408, |
| 210 | .cm_l4per_adc_clkctrl = 0x4a009420, |
| 211 | .cm_l4per_gptimer10_clkctrl = 0x4a009428, |
| 212 | .cm_l4per_gptimer11_clkctrl = 0x4a009430, |
| 213 | .cm_l4per_gptimer2_clkctrl = 0x4a009438, |
| 214 | .cm_l4per_gptimer3_clkctrl = 0x4a009440, |
| 215 | .cm_l4per_gptimer4_clkctrl = 0x4a009448, |
| 216 | .cm_l4per_gptimer9_clkctrl = 0x4a009450, |
| 217 | .cm_l4per_elm_clkctrl = 0x4a009458, |
| 218 | .cm_l4per_gpio2_clkctrl = 0x4a009460, |
| 219 | .cm_l4per_gpio3_clkctrl = 0x4a009468, |
| 220 | .cm_l4per_gpio4_clkctrl = 0x4a009470, |
| 221 | .cm_l4per_gpio5_clkctrl = 0x4a009478, |
| 222 | .cm_l4per_gpio6_clkctrl = 0x4a009480, |
| 223 | .cm_l4per_hdq1w_clkctrl = 0x4a009488, |
| 224 | .cm_l4per_hecc1_clkctrl = 0x4a009490, |
| 225 | .cm_l4per_hecc2_clkctrl = 0x4a009498, |
| 226 | .cm_l4per_i2c1_clkctrl = 0x4a0094a0, |
| 227 | .cm_l4per_i2c2_clkctrl = 0x4a0094a8, |
| 228 | .cm_l4per_i2c3_clkctrl = 0x4a0094b0, |
| 229 | .cm_l4per_i2c4_clkctrl = 0x4a0094b8, |
| 230 | .cm_l4per_l4per_clkctrl = 0x4a0094c0, |
| 231 | .cm_l4per_mcasp2_clkctrl = 0x4a0094d0, |
| 232 | .cm_l4per_mcasp3_clkctrl = 0x4a0094d8, |
| 233 | .cm_l4per_mcbsp4_clkctrl = 0x4a0094e0, |
| 234 | .cm_l4per_mgate_clkctrl = 0x4a0094e8, |
| 235 | .cm_l4per_mcspi1_clkctrl = 0x4a0094f0, |
| 236 | .cm_l4per_mcspi2_clkctrl = 0x4a0094f8, |
| 237 | .cm_l4per_mcspi3_clkctrl = 0x4a009500, |
| 238 | .cm_l4per_mcspi4_clkctrl = 0x4a009508, |
| 239 | .cm_l4per_mmcsd3_clkctrl = 0x4a009520, |
| 240 | .cm_l4per_mmcsd4_clkctrl = 0x4a009528, |
| 241 | .cm_l4per_msprohg_clkctrl = 0x4a009530, |
| 242 | .cm_l4per_slimbus2_clkctrl = 0x4a009538, |
| 243 | .cm_l4per_uart1_clkctrl = 0x4a009540, |
| 244 | .cm_l4per_uart2_clkctrl = 0x4a009548, |
| 245 | .cm_l4per_uart3_clkctrl = 0x4a009550, |
| 246 | .cm_l4per_uart4_clkctrl = 0x4a009558, |
| 247 | .cm_l4per_mmcsd5_clkctrl = 0x4a009560, |
| 248 | .cm_l4per_i2c5_clkctrl = 0x4a009568, |
| 249 | .cm_l4sec_clkstctrl = 0x4a009580, |
| 250 | .cm_l4sec_staticdep = 0x4a009584, |
| 251 | .cm_l4sec_dynamicdep = 0x4a009588, |
| 252 | .cm_l4sec_aes1_clkctrl = 0x4a0095a0, |
| 253 | .cm_l4sec_aes2_clkctrl = 0x4a0095a8, |
| 254 | .cm_l4sec_des3des_clkctrl = 0x4a0095b0, |
| 255 | .cm_l4sec_pkaeip29_clkctrl = 0x4a0095b8, |
| 256 | .cm_l4sec_rng_clkctrl = 0x4a0095c0, |
| 257 | .cm_l4sec_sha2md51_clkctrl = 0x4a0095c8, |
| 258 | .cm_l4sec_cryptodma_clkctrl = 0x4a0095d8, |
| 259 | |
| 260 | /* l4 wkup regs */ |
| 261 | .cm_abe_pll_ref_clksel = 0x4a30610c, |
| 262 | .cm_sys_clksel = 0x4a306110, |
| 263 | .cm_wkup_clkstctrl = 0x4a307800, |
| 264 | .cm_wkup_l4wkup_clkctrl = 0x4a307820, |
| 265 | .cm_wkup_wdtimer1_clkctrl = 0x4a307828, |
| 266 | .cm_wkup_wdtimer2_clkctrl = 0x4a307830, |
| 267 | .cm_wkup_gpio1_clkctrl = 0x4a307838, |
| 268 | .cm_wkup_gptimer1_clkctrl = 0x4a307840, |
| 269 | .cm_wkup_gptimer12_clkctrl = 0x4a307848, |
| 270 | .cm_wkup_synctimer_clkctrl = 0x4a307850, |
| 271 | .cm_wkup_usim_clkctrl = 0x4a307858, |
| 272 | .cm_wkup_sarram_clkctrl = 0x4a307860, |
| 273 | .cm_wkup_keyboard_clkctrl = 0x4a307878, |
| 274 | .cm_wkup_rtc_clkctrl = 0x4a307880, |
| 275 | .cm_wkup_bandgap_clkctrl = 0x4a307888, |
| 276 | .prm_vc_val_bypass = 0x4a307ba0, |
| 277 | .prm_vc_cfg_channel = 0x4a307ba4, |
| 278 | .prm_vc_cfg_i2c_mode = 0x4a307ba8, |
| 279 | .prm_vc_cfg_i2c_clk = 0x4a307bac, |
| 280 | }; |
Lokesh Vutla | c43c833 | 2013-02-04 04:22:04 +0000 | [diff] [blame] | 281 | |
| 282 | struct omap_sys_ctrl_regs const omap4_ctrl = { |
Paul Kocialkowski | 94fc751 | 2015-07-15 16:02:25 +0200 | [diff] [blame] | 283 | .control_status = 0x4A0022C4, |
Paul Kocialkowski | 987a40d | 2015-08-27 19:37:10 +0200 | [diff] [blame] | 284 | .control_std_fuse_die_id_0 = 0x4A002200, |
| 285 | .control_std_fuse_die_id_1 = 0x4A002208, |
| 286 | .control_std_fuse_die_id_2 = 0x4A00220C, |
| 287 | .control_std_fuse_die_id_3 = 0x4A002210, |
Lokesh Vutla | c43c833 | 2013-02-04 04:22:04 +0000 | [diff] [blame] | 288 | .control_std_fuse_opp_bgap = 0x4a002260, |
| 289 | .control_status = 0x4a0022c4, |
| 290 | .control_ldosram_iva_voltage_ctrl = 0x4A002320, |
| 291 | .control_ldosram_mpu_voltage_ctrl = 0x4A002324, |
| 292 | .control_ldosram_core_voltage_ctrl = 0x4A002328, |
Lokesh Vutla | 9239f5b | 2013-05-30 02:54:30 +0000 | [diff] [blame] | 293 | .control_usbotghs_ctrl = 0x4A00233C, |
| 294 | .control_padconf_core_base = 0x4A100000, |
Lokesh Vutla | c43c833 | 2013-02-04 04:22:04 +0000 | [diff] [blame] | 295 | .control_pbiaslite = 0x4A100600, |
| 296 | .control_lpddr2io1_0 = 0x4A100638, |
| 297 | .control_lpddr2io1_1 = 0x4A10063C, |
| 298 | .control_lpddr2io1_2 = 0x4A100640, |
| 299 | .control_lpddr2io1_3 = 0x4A100644, |
| 300 | .control_lpddr2io2_0 = 0x4A100648, |
| 301 | .control_lpddr2io2_1 = 0x4A10064C, |
| 302 | .control_lpddr2io2_2 = 0x4A100650, |
| 303 | .control_lpddr2io2_3 = 0x4A100654, |
| 304 | .control_efuse_1 = 0x4A100700, |
| 305 | .control_efuse_2 = 0x4A100704, |
Lokesh Vutla | 9239f5b | 2013-05-30 02:54:30 +0000 | [diff] [blame] | 306 | .control_padconf_wkup_base = 0x4A31E000, |
Lokesh Vutla | c43c833 | 2013-02-04 04:22:04 +0000 | [diff] [blame] | 307 | }; |