blob: cd289ddd2be338267167e074c19dd28bdbd0b6ef [file] [log] [blame]
SRICHARAN Rfb6aa1f2013-02-04 04:22:00 +00001/*
2 *
3 * HW regs data for OMAP5 Soc
4 *
5 * (C) Copyright 2013
6 * Texas Instruments, <www.ti.com>
7 *
8 * Sricharan R <r.sricharan@ti.com>
9 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
SRICHARAN Rfb6aa1f2013-02-04 04:22:00 +000011 */
12
13#include <asm/omap_common.h>
Nishanth Menonbe3a5532015-08-13 09:51:00 -050014#include <asm/io.h>
SRICHARAN Rfb6aa1f2013-02-04 04:22:00 +000015
16struct prcm_regs const omap5_es1_prcm = {
17 /* cm1.ckgen */
18 .cm_clksel_core = 0x4a004100,
19 .cm_clksel_abe = 0x4a004108,
20 .cm_dll_ctrl = 0x4a004110,
21 .cm_clkmode_dpll_core = 0x4a004120,
22 .cm_idlest_dpll_core = 0x4a004124,
23 .cm_autoidle_dpll_core = 0x4a004128,
24 .cm_clksel_dpll_core = 0x4a00412c,
25 .cm_div_m2_dpll_core = 0x4a004130,
26 .cm_div_m3_dpll_core = 0x4a004134,
27 .cm_div_h11_dpll_core = 0x4a004138,
28 .cm_div_h12_dpll_core = 0x4a00413c,
29 .cm_div_h13_dpll_core = 0x4a004140,
30 .cm_div_h14_dpll_core = 0x4a004144,
31 .cm_ssc_deltamstep_dpll_core = 0x4a004148,
32 .cm_ssc_modfreqdiv_dpll_core = 0x4a00414c,
33 .cm_emu_override_dpll_core = 0x4a004150,
34 .cm_div_h22_dpllcore = 0x4a004154,
35 .cm_div_h23_dpll_core = 0x4a004158,
36 .cm_clkmode_dpll_mpu = 0x4a004160,
37 .cm_idlest_dpll_mpu = 0x4a004164,
38 .cm_autoidle_dpll_mpu = 0x4a004168,
39 .cm_clksel_dpll_mpu = 0x4a00416c,
40 .cm_div_m2_dpll_mpu = 0x4a004170,
41 .cm_ssc_deltamstep_dpll_mpu = 0x4a004188,
42 .cm_ssc_modfreqdiv_dpll_mpu = 0x4a00418c,
43 .cm_bypclk_dpll_mpu = 0x4a00419c,
44 .cm_clkmode_dpll_iva = 0x4a0041a0,
45 .cm_idlest_dpll_iva = 0x4a0041a4,
46 .cm_autoidle_dpll_iva = 0x4a0041a8,
47 .cm_clksel_dpll_iva = 0x4a0041ac,
48 .cm_div_h11_dpll_iva = 0x4a0041b8,
49 .cm_div_h12_dpll_iva = 0x4a0041bc,
50 .cm_ssc_deltamstep_dpll_iva = 0x4a0041c8,
51 .cm_ssc_modfreqdiv_dpll_iva = 0x4a0041cc,
52 .cm_bypclk_dpll_iva = 0x4a0041dc,
53 .cm_clkmode_dpll_abe = 0x4a0041e0,
54 .cm_idlest_dpll_abe = 0x4a0041e4,
55 .cm_autoidle_dpll_abe = 0x4a0041e8,
56 .cm_clksel_dpll_abe = 0x4a0041ec,
57 .cm_div_m2_dpll_abe = 0x4a0041f0,
58 .cm_div_m3_dpll_abe = 0x4a0041f4,
59 .cm_ssc_deltamstep_dpll_abe = 0x4a004208,
60 .cm_ssc_modfreqdiv_dpll_abe = 0x4a00420c,
61 .cm_clkmode_dpll_ddrphy = 0x4a004220,
62 .cm_idlest_dpll_ddrphy = 0x4a004224,
63 .cm_autoidle_dpll_ddrphy = 0x4a004228,
64 .cm_clksel_dpll_ddrphy = 0x4a00422c,
65 .cm_div_m2_dpll_ddrphy = 0x4a004230,
66 .cm_div_h11_dpll_ddrphy = 0x4a004238,
67 .cm_div_h12_dpll_ddrphy = 0x4a00423c,
68 .cm_div_h13_dpll_ddrphy = 0x4a004240,
69 .cm_ssc_deltamstep_dpll_ddrphy = 0x4a004248,
70 .cm_shadow_freq_config1 = 0x4a004260,
71 .cm_mpu_mpu_clkctrl = 0x4a004320,
72
73 /* cm1.dsp */
74 .cm_dsp_clkstctrl = 0x4a004400,
75 .cm_dsp_dsp_clkctrl = 0x4a004420,
76
77 /* cm1.abe */
78 .cm1_abe_clkstctrl = 0x4a004500,
79 .cm1_abe_l4abe_clkctrl = 0x4a004520,
80 .cm1_abe_aess_clkctrl = 0x4a004528,
81 .cm1_abe_pdm_clkctrl = 0x4a004530,
82 .cm1_abe_dmic_clkctrl = 0x4a004538,
83 .cm1_abe_mcasp_clkctrl = 0x4a004540,
84 .cm1_abe_mcbsp1_clkctrl = 0x4a004548,
85 .cm1_abe_mcbsp2_clkctrl = 0x4a004550,
86 .cm1_abe_mcbsp3_clkctrl = 0x4a004558,
87 .cm1_abe_slimbus_clkctrl = 0x4a004560,
88 .cm1_abe_timer5_clkctrl = 0x4a004568,
89 .cm1_abe_timer6_clkctrl = 0x4a004570,
90 .cm1_abe_timer7_clkctrl = 0x4a004578,
91 .cm1_abe_timer8_clkctrl = 0x4a004580,
92 .cm1_abe_wdt3_clkctrl = 0x4a004588,
93
94 /* cm2.ckgen */
95 .cm_clksel_mpu_m3_iss_root = 0x4a008100,
96 .cm_clksel_usb_60mhz = 0x4a008104,
97 .cm_scale_fclk = 0x4a008108,
98 .cm_core_dvfs_perf1 = 0x4a008110,
99 .cm_core_dvfs_perf2 = 0x4a008114,
100 .cm_core_dvfs_perf3 = 0x4a008118,
101 .cm_core_dvfs_perf4 = 0x4a00811c,
102 .cm_core_dvfs_current = 0x4a008124,
103 .cm_iva_dvfs_perf_tesla = 0x4a008128,
104 .cm_iva_dvfs_perf_ivahd = 0x4a00812c,
105 .cm_iva_dvfs_perf_abe = 0x4a008130,
106 .cm_iva_dvfs_current = 0x4a008138,
107 .cm_clkmode_dpll_per = 0x4a008140,
108 .cm_idlest_dpll_per = 0x4a008144,
109 .cm_autoidle_dpll_per = 0x4a008148,
110 .cm_clksel_dpll_per = 0x4a00814c,
111 .cm_div_m2_dpll_per = 0x4a008150,
112 .cm_div_m3_dpll_per = 0x4a008154,
113 .cm_div_h11_dpll_per = 0x4a008158,
114 .cm_div_h12_dpll_per = 0x4a00815c,
115 .cm_div_h14_dpll_per = 0x4a008164,
116 .cm_ssc_deltamstep_dpll_per = 0x4a008168,
117 .cm_ssc_modfreqdiv_dpll_per = 0x4a00816c,
118 .cm_emu_override_dpll_per = 0x4a008170,
119 .cm_clkmode_dpll_usb = 0x4a008180,
120 .cm_idlest_dpll_usb = 0x4a008184,
121 .cm_autoidle_dpll_usb = 0x4a008188,
122 .cm_clksel_dpll_usb = 0x4a00818c,
123 .cm_div_m2_dpll_usb = 0x4a008190,
124 .cm_ssc_deltamstep_dpll_usb = 0x4a0081a8,
125 .cm_ssc_modfreqdiv_dpll_usb = 0x4a0081ac,
126 .cm_clkdcoldo_dpll_usb = 0x4a0081b4,
127 .cm_clkmode_dpll_unipro = 0x4a0081c0,
128 .cm_idlest_dpll_unipro = 0x4a0081c4,
129 .cm_autoidle_dpll_unipro = 0x4a0081c8,
130 .cm_clksel_dpll_unipro = 0x4a0081cc,
131 .cm_div_m2_dpll_unipro = 0x4a0081d0,
132 .cm_ssc_deltamstep_dpll_unipro = 0x4a0081e8,
133 .cm_ssc_modfreqdiv_dpll_unipro = 0x4a0081ec,
134
135 /* cm2.core */
136 .cm_coreaon_bandgap_clkctrl = 0x4a008648,
Lokesh Vutla28049632013-02-12 01:33:45 +0000137 .cm_coreaon_io_srcomp_clkctrl = 0x4a008650,
SRICHARAN Rfb6aa1f2013-02-04 04:22:00 +0000138 .cm_l3_1_clkstctrl = 0x4a008700,
139 .cm_l3_1_dynamicdep = 0x4a008708,
140 .cm_l3_1_l3_1_clkctrl = 0x4a008720,
141 .cm_l3_2_clkstctrl = 0x4a008800,
142 .cm_l3_2_dynamicdep = 0x4a008808,
143 .cm_l3_2_l3_2_clkctrl = 0x4a008820,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000144 .cm_l3_gpmc_clkctrl = 0x4a008828,
SRICHARAN Rfb6aa1f2013-02-04 04:22:00 +0000145 .cm_l3_2_ocmc_ram_clkctrl = 0x4a008830,
146 .cm_mpu_m3_clkstctrl = 0x4a008900,
147 .cm_mpu_m3_staticdep = 0x4a008904,
148 .cm_mpu_m3_dynamicdep = 0x4a008908,
149 .cm_mpu_m3_mpu_m3_clkctrl = 0x4a008920,
150 .cm_sdma_clkstctrl = 0x4a008a00,
151 .cm_sdma_staticdep = 0x4a008a04,
152 .cm_sdma_dynamicdep = 0x4a008a08,
153 .cm_sdma_sdma_clkctrl = 0x4a008a20,
154 .cm_memif_clkstctrl = 0x4a008b00,
155 .cm_memif_dmm_clkctrl = 0x4a008b20,
156 .cm_memif_emif_fw_clkctrl = 0x4a008b28,
157 .cm_memif_emif_1_clkctrl = 0x4a008b30,
158 .cm_memif_emif_2_clkctrl = 0x4a008b38,
159 .cm_memif_dll_clkctrl = 0x4a008b40,
160 .cm_memif_emif_h1_clkctrl = 0x4a008b50,
161 .cm_memif_emif_h2_clkctrl = 0x4a008b58,
162 .cm_memif_dll_h_clkctrl = 0x4a008b60,
163 .cm_c2c_clkstctrl = 0x4a008c00,
164 .cm_c2c_staticdep = 0x4a008c04,
165 .cm_c2c_dynamicdep = 0x4a008c08,
166 .cm_c2c_sad2d_clkctrl = 0x4a008c20,
167 .cm_c2c_modem_icr_clkctrl = 0x4a008c28,
168 .cm_c2c_sad2d_fw_clkctrl = 0x4a008c30,
169 .cm_l4cfg_clkstctrl = 0x4a008d00,
170 .cm_l4cfg_dynamicdep = 0x4a008d08,
171 .cm_l4cfg_l4_cfg_clkctrl = 0x4a008d20,
172 .cm_l4cfg_hw_sem_clkctrl = 0x4a008d28,
173 .cm_l4cfg_mailbox_clkctrl = 0x4a008d30,
174 .cm_l4cfg_sar_rom_clkctrl = 0x4a008d38,
175 .cm_l3instr_clkstctrl = 0x4a008e00,
176 .cm_l3instr_l3_3_clkctrl = 0x4a008e20,
177 .cm_l3instr_l3_instr_clkctrl = 0x4a008e28,
178 .cm_l3instr_intrconn_wp1_clkctrl = 0x4a008e40,
179
180 /* cm2.ivahd */
181 .cm_ivahd_clkstctrl = 0x4a008f00,
182 .cm_ivahd_ivahd_clkctrl = 0x4a008f20,
183 .cm_ivahd_sl2_clkctrl = 0x4a008f28,
184
185 /* cm2.cam */
186 .cm_cam_clkstctrl = 0x4a009000,
187 .cm_cam_iss_clkctrl = 0x4a009020,
188 .cm_cam_fdif_clkctrl = 0x4a009028,
189
190 /* cm2.dss */
191 .cm_dss_clkstctrl = 0x4a009100,
192 .cm_dss_dss_clkctrl = 0x4a009120,
193
194 /* cm2.sgx */
195 .cm_sgx_clkstctrl = 0x4a009200,
196 .cm_sgx_sgx_clkctrl = 0x4a009220,
197
198 /* cm2.l3init */
199 .cm_l3init_clkstctrl = 0x4a009300,
200 .cm_l3init_hsmmc1_clkctrl = 0x4a009328,
201 .cm_l3init_hsmmc2_clkctrl = 0x4a009330,
202 .cm_l3init_hsi_clkctrl = 0x4a009338,
203 .cm_l3init_hsusbhost_clkctrl = 0x4a009358,
204 .cm_l3init_hsusbotg_clkctrl = 0x4a009360,
205 .cm_l3init_hsusbtll_clkctrl = 0x4a009368,
206 .cm_l3init_p1500_clkctrl = 0x4a009378,
Roger Quadrosd50e63d2013-11-11 16:56:40 +0200207 .cm_l3init_sata_clkctrl = 0x4a009388,
SRICHARAN Rfb6aa1f2013-02-04 04:22:00 +0000208 .cm_l3init_fsusb_clkctrl = 0x4a0093d0,
209 .cm_l3init_ocp2scp1_clkctrl = 0x4a0093e0,
Roger Quadrosd50e63d2013-11-11 16:56:40 +0200210 .cm_l3init_ocp2scp3_clkctrl = 0x4a0093e8,
SRICHARAN Rfb6aa1f2013-02-04 04:22:00 +0000211
212 /* cm2.l4per */
213 .cm_l4per_clkstctrl = 0x4a009400,
214 .cm_l4per_dynamicdep = 0x4a009408,
215 .cm_l4per_adc_clkctrl = 0x4a009420,
216 .cm_l4per_gptimer10_clkctrl = 0x4a009428,
217 .cm_l4per_gptimer11_clkctrl = 0x4a009430,
218 .cm_l4per_gptimer2_clkctrl = 0x4a009438,
219 .cm_l4per_gptimer3_clkctrl = 0x4a009440,
220 .cm_l4per_gptimer4_clkctrl = 0x4a009448,
221 .cm_l4per_gptimer9_clkctrl = 0x4a009450,
222 .cm_l4per_elm_clkctrl = 0x4a009458,
223 .cm_l4per_gpio2_clkctrl = 0x4a009460,
224 .cm_l4per_gpio3_clkctrl = 0x4a009468,
225 .cm_l4per_gpio4_clkctrl = 0x4a009470,
226 .cm_l4per_gpio5_clkctrl = 0x4a009478,
227 .cm_l4per_gpio6_clkctrl = 0x4a009480,
228 .cm_l4per_hdq1w_clkctrl = 0x4a009488,
229 .cm_l4per_hecc1_clkctrl = 0x4a009490,
230 .cm_l4per_hecc2_clkctrl = 0x4a009498,
231 .cm_l4per_i2c1_clkctrl = 0x4a0094a0,
232 .cm_l4per_i2c2_clkctrl = 0x4a0094a8,
233 .cm_l4per_i2c3_clkctrl = 0x4a0094b0,
234 .cm_l4per_i2c4_clkctrl = 0x4a0094b8,
235 .cm_l4per_l4per_clkctrl = 0x4a0094c0,
236 .cm_l4per_mcasp2_clkctrl = 0x4a0094d0,
237 .cm_l4per_mcasp3_clkctrl = 0x4a0094d8,
238 .cm_l4per_mgate_clkctrl = 0x4a0094e8,
239 .cm_l4per_mcspi1_clkctrl = 0x4a0094f0,
240 .cm_l4per_mcspi2_clkctrl = 0x4a0094f8,
241 .cm_l4per_mcspi3_clkctrl = 0x4a009500,
242 .cm_l4per_mcspi4_clkctrl = 0x4a009508,
243 .cm_l4per_gpio7_clkctrl = 0x4a009510,
244 .cm_l4per_gpio8_clkctrl = 0x4a009518,
245 .cm_l4per_mmcsd3_clkctrl = 0x4a009520,
246 .cm_l4per_mmcsd4_clkctrl = 0x4a009528,
247 .cm_l4per_msprohg_clkctrl = 0x4a009530,
248 .cm_l4per_slimbus2_clkctrl = 0x4a009538,
249 .cm_l4per_uart1_clkctrl = 0x4a009540,
250 .cm_l4per_uart2_clkctrl = 0x4a009548,
251 .cm_l4per_uart3_clkctrl = 0x4a009550,
252 .cm_l4per_uart4_clkctrl = 0x4a009558,
253 .cm_l4per_mmcsd5_clkctrl = 0x4a009560,
254 .cm_l4per_i2c5_clkctrl = 0x4a009568,
255 .cm_l4per_uart5_clkctrl = 0x4a009570,
256 .cm_l4per_uart6_clkctrl = 0x4a009578,
257 .cm_l4sec_clkstctrl = 0x4a009580,
258 .cm_l4sec_staticdep = 0x4a009584,
259 .cm_l4sec_dynamicdep = 0x4a009588,
260 .cm_l4sec_aes1_clkctrl = 0x4a0095a0,
261 .cm_l4sec_aes2_clkctrl = 0x4a0095a8,
262 .cm_l4sec_des3des_clkctrl = 0x4a0095b0,
263 .cm_l4sec_pkaeip29_clkctrl = 0x4a0095b8,
264 .cm_l4sec_rng_clkctrl = 0x4a0095c0,
265 .cm_l4sec_sha2md51_clkctrl = 0x4a0095c8,
266 .cm_l4sec_cryptodma_clkctrl = 0x4a0095d8,
267
268 /* l4 wkup regs */
269 .cm_abe_pll_ref_clksel = 0x4ae0610c,
270 .cm_sys_clksel = 0x4ae06110,
271 .cm_wkup_clkstctrl = 0x4ae07800,
272 .cm_wkup_l4wkup_clkctrl = 0x4ae07820,
273 .cm_wkup_wdtimer1_clkctrl = 0x4ae07828,
274 .cm_wkup_wdtimer2_clkctrl = 0x4ae07830,
275 .cm_wkup_gpio1_clkctrl = 0x4ae07838,
276 .cm_wkup_gptimer1_clkctrl = 0x4ae07840,
277 .cm_wkup_gptimer12_clkctrl = 0x4ae07848,
278 .cm_wkup_synctimer_clkctrl = 0x4ae07850,
279 .cm_wkup_usim_clkctrl = 0x4ae07858,
280 .cm_wkup_sarram_clkctrl = 0x4ae07860,
281 .cm_wkup_keyboard_clkctrl = 0x4ae07878,
282 .cm_wkup_rtc_clkctrl = 0x4ae07880,
283 .cm_wkup_bandgap_clkctrl = 0x4ae07888,
284 .cm_wkupaon_scrm_clkctrl = 0x4ae07890,
Lokesh Vutla28049632013-02-12 01:33:45 +0000285 .cm_wkupaon_io_srcomp_clkctrl = 0x4ae07898,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000286 .prm_rstctrl = 0x4ae07b00,
287 .prm_rstst = 0x4ae07b04,
Lubomir Popov12464532013-05-26 10:03:17 +0000288 .prm_rsttime = 0x4ae07b08,
SRICHARAN Rfb6aa1f2013-02-04 04:22:00 +0000289 .prm_vc_val_bypass = 0x4ae07ba0,
290 .prm_vc_cfg_i2c_mode = 0x4ae07bb4,
291 .prm_vc_cfg_i2c_clk = 0x4ae07bb8,
Lubomir Popovc40c54b2013-05-15 04:41:01 +0000292
293 /* SCRM stuff, used by some boards */
294 .scrm_auxclk0 = 0x4ae0a310,
295 .scrm_auxclk1 = 0x4ae0a314,
SRICHARAN Rfb6aa1f2013-02-04 04:22:00 +0000296};
Lokesh Vutla834b6b02013-02-04 04:22:04 +0000297
298struct omap_sys_ctrl_regs const omap5_ctrl = {
299 .control_status = 0x4A002134,
Andrii Tseglytskyi84bd3252013-05-20 22:42:09 +0000300 .control_std_fuse_opp_vdd_mpu_2 = 0x4A0021B4,
Paul Kocialkowskic68d5692015-08-27 19:37:11 +0200301 .control_std_fuse_die_id_0 = 0x4A002200,
302 .control_std_fuse_die_id_1 = 0x4A002208,
303 .control_std_fuse_die_id_2 = 0x4A00220C,
304 .control_std_fuse_die_id_3 = 0x4A002210,
Dan Murphy7f46b192013-08-26 08:54:50 -0500305 .control_phy_power_usb = 0x4A002370,
Roger Quadrosd50e63d2013-11-11 16:56:40 +0200306 .control_phy_power_sata = 0x4A002374,
Lokesh Vutla37bce592013-05-30 02:54:30 +0000307 .control_padconf_core_base = 0x4A002800,
Lokesh Vutla834b6b02013-02-04 04:22:04 +0000308 .control_paconf_global = 0x4A002DA0,
309 .control_paconf_mode = 0x4A002DA4,
310 .control_smart1io_padconf_0 = 0x4A002DA8,
311 .control_smart1io_padconf_1 = 0x4A002DAC,
312 .control_smart1io_padconf_2 = 0x4A002DB0,
313 .control_smart2io_padconf_0 = 0x4A002DB4,
314 .control_smart2io_padconf_1 = 0x4A002DB8,
315 .control_smart2io_padconf_2 = 0x4A002DBC,
316 .control_smart3io_padconf_0 = 0x4A002DC0,
317 .control_smart3io_padconf_1 = 0x4A002DC4,
318 .control_pbias = 0x4A002E00,
319 .control_i2c_0 = 0x4A002E04,
320 .control_camera_rx = 0x4A002E08,
321 .control_hdmi_tx_phy = 0x4A002E0C,
322 .control_uniportm = 0x4A002E10,
323 .control_dsiphy = 0x4A002E14,
324 .control_mcbsplp = 0x4A002E18,
325 .control_usb2phycore = 0x4A002E1C,
326 .control_hdmi_1 = 0x4A002E20,
327 .control_hsi = 0x4A002E24,
328 .control_ddr3ch1_0 = 0x4A002E30,
329 .control_ddr3ch2_0 = 0x4A002E34,
330 .control_ddrch1_0 = 0x4A002E38,
331 .control_ddrch1_1 = 0x4A002E3C,
332 .control_ddrch2_0 = 0x4A002E40,
333 .control_ddrch2_1 = 0x4A002E44,
334 .control_lpddr2ch1_0 = 0x4A002E48,
335 .control_lpddr2ch1_1 = 0x4A002E4C,
336 .control_ddrio_0 = 0x4A002E50,
337 .control_ddrio_1 = 0x4A002E54,
338 .control_ddrio_2 = 0x4A002E58,
339 .control_hyst_1 = 0x4A002E5C,
340 .control_usbb_hsic_control = 0x4A002E60,
341 .control_c2c = 0x4A002E64,
342 .control_core_control_spare_rw = 0x4A002E68,
343 .control_core_control_spare_r = 0x4A002E6C,
344 .control_core_control_spare_r_c0 = 0x4A002E70,
345 .control_srcomp_north_side = 0x4A002E74,
346 .control_srcomp_south_side = 0x4A002E78,
347 .control_srcomp_east_side = 0x4A002E7C,
348 .control_srcomp_west_side = 0x4A002E80,
349 .control_srcomp_code_latch = 0x4A002E84,
350 .control_port_emif1_sdram_config = 0x4AE0C110,
351 .control_port_emif1_lpddr2_nvm_config = 0x4AE0C114,
352 .control_port_emif2_sdram_config = 0x4AE0C118,
353 .control_emif1_sdram_config_ext = 0x4AE0C144,
354 .control_emif2_sdram_config_ext = 0x4AE0C148,
Andrii Tseglytskyi84bd3252013-05-20 22:42:09 +0000355 .control_wkup_ldovbb_mpu_voltage_ctrl = 0x4AE0C318,
Lokesh Vutla37bce592013-05-30 02:54:30 +0000356 .control_padconf_wkup_base = 0x4AE0C800,
Lokesh Vutla834b6b02013-02-04 04:22:04 +0000357 .control_smart1nopmio_padconf_0 = 0x4AE0CDA0,
358 .control_smart1nopmio_padconf_1 = 0x4AE0CDA4,
359 .control_padconf_mode = 0x4AE0CDA8,
360 .control_xtal_oscillator = 0x4AE0CDAC,
361 .control_i2c_2 = 0x4AE0CDB0,
362 .control_ckobuffer = 0x4AE0CDB4,
363 .control_wkup_control_spare_rw = 0x4AE0CDB8,
364 .control_wkup_control_spare_r = 0x4AE0CDBC,
365 .control_wkup_control_spare_r_c0 = 0x4AE0CDC0,
366 .control_srcomp_east_side_wkup = 0x4AE0CDC4,
367 .control_efuse_1 = 0x4AE0CDC8,
368 .control_efuse_2 = 0x4AE0CDCC,
369 .control_efuse_3 = 0x4AE0CDD0,
370 .control_efuse_4 = 0x4AE0CDD4,
371 .control_efuse_5 = 0x4AE0CDD8,
372 .control_efuse_6 = 0x4AE0CDDC,
373 .control_efuse_7 = 0x4AE0CDE0,
374 .control_efuse_8 = 0x4AE0CDE4,
375 .control_efuse_9 = 0x4AE0CDE8,
376 .control_efuse_10 = 0x4AE0CDEC,
377 .control_efuse_11 = 0x4AE0CDF0,
378 .control_efuse_12 = 0x4AE0CDF4,
379 .control_efuse_13 = 0x4AE0CDF8,
380};
SRICHARAN R06ebff42013-02-12 01:33:42 +0000381
Lokesh Vutlaf120cef2013-02-12 21:29:06 +0000382struct omap_sys_ctrl_regs const dra7xx_ctrl = {
383 .control_status = 0x4A002134,
Felipe Balbi54241862014-11-06 08:28:44 -0600384 .control_phy_power_usb = 0x4A002370,
Roger Quadrosb63730d2013-11-11 16:56:43 +0200385 .control_phy_power_sata = 0x4A002374,
Lokesh Vutla3de40ac2015-06-04 16:42:36 +0530386 .ctrl_core_sma_sw_0 = 0x4A0023FC,
Nishanth Menonbe3a5532015-08-13 09:51:00 -0500387 .ctrl_core_sma_sw_1 = 0x4A002534,
Mugunthan V Nab48f782013-07-08 16:04:41 +0530388 .control_core_mac_id_0_lo = 0x4A002514,
389 .control_core_mac_id_0_hi = 0x4A002518,
390 .control_core_mac_id_1_lo = 0x4A00251C,
391 .control_core_mac_id_1_hi = 0x4A002520,
Lokesh Vutlaf120cef2013-02-12 21:29:06 +0000392 .control_core_mmr_lock1 = 0x4A002540,
393 .control_core_mmr_lock2 = 0x4A002544,
394 .control_core_mmr_lock3 = 0x4A002548,
395 .control_core_mmr_lock4 = 0x4A00254C,
396 .control_core_mmr_lock5 = 0x4A002550,
397 .control_core_control_io1 = 0x4A002554,
398 .control_core_control_io2 = 0x4A002558,
399 .control_paconf_global = 0x4A002DA0,
400 .control_paconf_mode = 0x4A002DA4,
401 .control_smart1io_padconf_0 = 0x4A002DA8,
402 .control_smart1io_padconf_1 = 0x4A002DAC,
403 .control_smart1io_padconf_2 = 0x4A002DB0,
404 .control_smart2io_padconf_0 = 0x4A002DB4,
405 .control_smart2io_padconf_1 = 0x4A002DB8,
406 .control_smart2io_padconf_2 = 0x4A002DBC,
407 .control_smart3io_padconf_0 = 0x4A002DC0,
408 .control_smart3io_padconf_1 = 0x4A002DC4,
409 .control_pbias = 0x4A002E00,
410 .control_i2c_0 = 0x4A002E04,
411 .control_camera_rx = 0x4A002E08,
412 .control_hdmi_tx_phy = 0x4A002E0C,
413 .control_uniportm = 0x4A002E10,
414 .control_dsiphy = 0x4A002E14,
415 .control_mcbsplp = 0x4A002E18,
416 .control_usb2phycore = 0x4A002E1C,
417 .control_hdmi_1 = 0x4A002E20,
418 .control_hsi = 0x4A002E24,
419 .control_ddr3ch1_0 = 0x4A002E30,
420 .control_ddr3ch2_0 = 0x4A002E34,
421 .control_ddrch1_0 = 0x4A002E38,
422 .control_ddrch1_1 = 0x4A002E3C,
423 .control_ddrch2_0 = 0x4A002E40,
424 .control_ddrch2_1 = 0x4A002E44,
425 .control_lpddr2ch1_0 = 0x4A002E48,
426 .control_lpddr2ch1_1 = 0x4A002E4C,
427 .control_ddrio_0 = 0x4A002E50,
428 .control_ddrio_1 = 0x4A002E54,
429 .control_ddrio_2 = 0x4A002E58,
430 .control_hyst_1 = 0x4A002E5C,
431 .control_usbb_hsic_control = 0x4A002E60,
432 .control_c2c = 0x4A002E64,
433 .control_core_control_spare_rw = 0x4A002E68,
434 .control_core_control_spare_r = 0x4A002E6C,
435 .control_core_control_spare_r_c0 = 0x4A002E70,
436 .control_srcomp_north_side = 0x4A002E74,
437 .control_srcomp_south_side = 0x4A002E78,
438 .control_srcomp_east_side = 0x4A002E7C,
439 .control_srcomp_west_side = 0x4A002E80,
440 .control_srcomp_code_latch = 0x4A002E84,
Sricharan Rffa98182013-05-30 03:19:39 +0000441 .control_ddr_control_ext_0 = 0x4A002E88,
Lokesh Vutlaf120cef2013-02-12 21:29:06 +0000442 .control_padconf_core_base = 0x4A003400,
Nishanth Menon50327b62014-02-18 12:00:01 -0600443 .control_std_fuse_opp_vdd_mpu_2 = 0x4A003B20,
Lokesh Vutlaf120cef2013-02-12 21:29:06 +0000444 .control_port_emif1_sdram_config = 0x4AE0C110,
445 .control_port_emif1_lpddr2_nvm_config = 0x4AE0C114,
446 .control_port_emif2_sdram_config = 0x4AE0C118,
447 .control_emif1_sdram_config_ext = 0x4AE0C144,
448 .control_emif2_sdram_config_ext = 0x4AE0C148,
Nishanth Menon22737ab2014-01-14 12:27:29 -0600449 .control_wkup_ldovbb_mpu_voltage_ctrl = 0x4AE0C158,
Dileep Katta7354dfc2015-03-25 04:04:51 +0530450 .control_std_fuse_die_id_0 = 0x4AE0C200,
451 .control_std_fuse_die_id_1 = 0x4AE0C208,
452 .control_std_fuse_die_id_2 = 0x4AE0C20C,
453 .control_std_fuse_die_id_3 = 0x4AE0C210,
Lokesh Vutlaf120cef2013-02-12 21:29:06 +0000454 .control_padconf_mode = 0x4AE0C5A0,
455 .control_xtal_oscillator = 0x4AE0C5A4,
456 .control_i2c_2 = 0x4AE0C5A8,
457 .control_ckobuffer = 0x4AE0C5AC,
458 .control_wkup_control_spare_rw = 0x4AE0C5B0,
459 .control_wkup_control_spare_r = 0x4AE0C5B4,
460 .control_wkup_control_spare_r_c0 = 0x4AE0C5B8,
461 .control_srcomp_east_side_wkup = 0x4AE0C5BC,
Lokesh Vutlad4ca01a2014-05-15 11:08:42 +0530462 .control_efuse_1 = 0x4AE0C5C8,
463 .control_efuse_2 = 0x4AE0C5CC,
464 .control_efuse_3 = 0x4AE0C5D0,
465 .control_efuse_4 = 0x4AE0C5D4,
Lokesh Vutlaf120cef2013-02-12 21:29:06 +0000466 .control_efuse_13 = 0x4AE0C5F0,
Lokesh Vutla3de40ac2015-06-04 16:42:36 +0530467 .iodelay_config_base = 0x4844A000,
Lokesh Vutlaf120cef2013-02-12 21:29:06 +0000468};
469
SRICHARAN R06ebff42013-02-12 01:33:42 +0000470struct prcm_regs const omap5_es2_prcm = {
471 /* cm1.ckgen */
472 .cm_clksel_core = 0x4a004100,
473 .cm_clksel_abe = 0x4a004108,
474 .cm_dll_ctrl = 0x4a004110,
475 .cm_clkmode_dpll_core = 0x4a004120,
476 .cm_idlest_dpll_core = 0x4a004124,
477 .cm_autoidle_dpll_core = 0x4a004128,
478 .cm_clksel_dpll_core = 0x4a00412c,
479 .cm_div_m2_dpll_core = 0x4a004130,
480 .cm_div_m3_dpll_core = 0x4a004134,
481 .cm_div_h11_dpll_core = 0x4a004138,
482 .cm_div_h12_dpll_core = 0x4a00413c,
483 .cm_div_h13_dpll_core = 0x4a004140,
484 .cm_div_h14_dpll_core = 0x4a004144,
485 .cm_ssc_deltamstep_dpll_core = 0x4a004148,
486 .cm_ssc_modfreqdiv_dpll_core = 0x4a00414c,
487 .cm_div_h21_dpll_core = 0x4a004150,
488 .cm_div_h22_dpllcore = 0x4a004154,
489 .cm_div_h23_dpll_core = 0x4a004158,
490 .cm_div_h24_dpll_core = 0x4a00415c,
491 .cm_clkmode_dpll_mpu = 0x4a004160,
492 .cm_idlest_dpll_mpu = 0x4a004164,
493 .cm_autoidle_dpll_mpu = 0x4a004168,
494 .cm_clksel_dpll_mpu = 0x4a00416c,
495 .cm_div_m2_dpll_mpu = 0x4a004170,
496 .cm_ssc_deltamstep_dpll_mpu = 0x4a004188,
497 .cm_ssc_modfreqdiv_dpll_mpu = 0x4a00418c,
498 .cm_bypclk_dpll_mpu = 0x4a00419c,
499 .cm_clkmode_dpll_iva = 0x4a0041a0,
500 .cm_idlest_dpll_iva = 0x4a0041a4,
501 .cm_autoidle_dpll_iva = 0x4a0041a8,
502 .cm_clksel_dpll_iva = 0x4a0041ac,
503 .cm_div_h11_dpll_iva = 0x4a0041b8,
504 .cm_div_h12_dpll_iva = 0x4a0041bc,
505 .cm_ssc_deltamstep_dpll_iva = 0x4a0041c8,
506 .cm_ssc_modfreqdiv_dpll_iva = 0x4a0041cc,
507 .cm_bypclk_dpll_iva = 0x4a0041dc,
508 .cm_clkmode_dpll_abe = 0x4a0041e0,
509 .cm_idlest_dpll_abe = 0x4a0041e4,
510 .cm_autoidle_dpll_abe = 0x4a0041e8,
511 .cm_clksel_dpll_abe = 0x4a0041ec,
512 .cm_div_m2_dpll_abe = 0x4a0041f0,
513 .cm_div_m3_dpll_abe = 0x4a0041f4,
514 .cm_ssc_deltamstep_dpll_abe = 0x4a004208,
515 .cm_ssc_modfreqdiv_dpll_abe = 0x4a00420c,
516 .cm_clkmode_dpll_ddrphy = 0x4a004220,
517 .cm_idlest_dpll_ddrphy = 0x4a004224,
518 .cm_autoidle_dpll_ddrphy = 0x4a004228,
519 .cm_clksel_dpll_ddrphy = 0x4a00422c,
520 .cm_div_m2_dpll_ddrphy = 0x4a004230,
521 .cm_div_h11_dpll_ddrphy = 0x4a004238,
522 .cm_div_h12_dpll_ddrphy = 0x4a00423c,
523 .cm_div_h13_dpll_ddrphy = 0x4a004240,
524 .cm_ssc_deltamstep_dpll_ddrphy = 0x4a004248,
525 .cm_shadow_freq_config1 = 0x4a004260,
526 .cm_mpu_mpu_clkctrl = 0x4a004320,
527
528 /* cm1.dsp */
529 .cm_dsp_clkstctrl = 0x4a004400,
530 .cm_dsp_dsp_clkctrl = 0x4a004420,
531
532 /* cm1.abe */
533 .cm1_abe_clkstctrl = 0x4a004500,
534 .cm1_abe_l4abe_clkctrl = 0x4a004520,
535 .cm1_abe_aess_clkctrl = 0x4a004528,
536 .cm1_abe_pdm_clkctrl = 0x4a004530,
537 .cm1_abe_dmic_clkctrl = 0x4a004538,
538 .cm1_abe_mcasp_clkctrl = 0x4a004540,
539 .cm1_abe_mcbsp1_clkctrl = 0x4a004548,
540 .cm1_abe_mcbsp2_clkctrl = 0x4a004550,
541 .cm1_abe_mcbsp3_clkctrl = 0x4a004558,
542 .cm1_abe_slimbus_clkctrl = 0x4a004560,
543 .cm1_abe_timer5_clkctrl = 0x4a004568,
544 .cm1_abe_timer6_clkctrl = 0x4a004570,
545 .cm1_abe_timer7_clkctrl = 0x4a004578,
546 .cm1_abe_timer8_clkctrl = 0x4a004580,
547 .cm1_abe_wdt3_clkctrl = 0x4a004588,
548
SRICHARAN R06ebff42013-02-12 01:33:42 +0000549 /* cm2.ckgen */
550 .cm_clksel_mpu_m3_iss_root = 0x4a008100,
551 .cm_clksel_usb_60mhz = 0x4a008104,
552 .cm_scale_fclk = 0x4a008108,
553 .cm_core_dvfs_perf1 = 0x4a008110,
554 .cm_core_dvfs_perf2 = 0x4a008114,
555 .cm_core_dvfs_perf3 = 0x4a008118,
556 .cm_core_dvfs_perf4 = 0x4a00811c,
557 .cm_core_dvfs_current = 0x4a008124,
558 .cm_iva_dvfs_perf_tesla = 0x4a008128,
559 .cm_iva_dvfs_perf_ivahd = 0x4a00812c,
560 .cm_iva_dvfs_perf_abe = 0x4a008130,
561 .cm_iva_dvfs_current = 0x4a008138,
562 .cm_clkmode_dpll_per = 0x4a008140,
563 .cm_idlest_dpll_per = 0x4a008144,
564 .cm_autoidle_dpll_per = 0x4a008148,
565 .cm_clksel_dpll_per = 0x4a00814c,
566 .cm_div_m2_dpll_per = 0x4a008150,
567 .cm_div_m3_dpll_per = 0x4a008154,
568 .cm_div_h11_dpll_per = 0x4a008158,
569 .cm_div_h12_dpll_per = 0x4a00815c,
570 .cm_div_h13_dpll_per = 0x4a008160,
571 .cm_div_h14_dpll_per = 0x4a008164,
572 .cm_ssc_deltamstep_dpll_per = 0x4a008168,
573 .cm_ssc_modfreqdiv_dpll_per = 0x4a00816c,
574 .cm_emu_override_dpll_per = 0x4a008170,
575 .cm_clkmode_dpll_usb = 0x4a008180,
576 .cm_idlest_dpll_usb = 0x4a008184,
577 .cm_autoidle_dpll_usb = 0x4a008188,
578 .cm_clksel_dpll_usb = 0x4a00818c,
579 .cm_div_m2_dpll_usb = 0x4a008190,
580 .cm_ssc_deltamstep_dpll_usb = 0x4a0081a8,
581 .cm_ssc_modfreqdiv_dpll_usb = 0x4a0081ac,
582 .cm_clkdcoldo_dpll_usb = 0x4a0081b4,
583 .cm_clkmode_dpll_unipro = 0x4a0081c0,
584 .cm_idlest_dpll_unipro = 0x4a0081c4,
585 .cm_autoidle_dpll_unipro = 0x4a0081c8,
586 .cm_clksel_dpll_unipro = 0x4a0081cc,
587 .cm_div_m2_dpll_unipro = 0x4a0081d0,
588 .cm_ssc_deltamstep_dpll_unipro = 0x4a0081e8,
589 .cm_ssc_modfreqdiv_dpll_unipro = 0x4a0081ec,
Kishon Vijay Abraham Ib6065852015-02-23 18:39:44 +0530590 .cm_coreaon_usb_phy1_core_clkctrl = 0x4A008640,
SRICHARAN R06ebff42013-02-12 01:33:42 +0000591 .cm_coreaon_bandgap_clkctrl = 0x4a008648,
Lokesh Vutla28049632013-02-12 01:33:45 +0000592 .cm_coreaon_io_srcomp_clkctrl = 0x4a008650,
SRICHARAN R06ebff42013-02-12 01:33:42 +0000593
594 /* cm2.core */
595 .cm_l3_1_clkstctrl = 0x4a008700,
596 .cm_l3_1_dynamicdep = 0x4a008708,
597 .cm_l3_1_l3_1_clkctrl = 0x4a008720,
598 .cm_l3_2_clkstctrl = 0x4a008800,
599 .cm_l3_2_dynamicdep = 0x4a008808,
600 .cm_l3_2_l3_2_clkctrl = 0x4a008820,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000601 .cm_l3_gpmc_clkctrl = 0x4a008828,
SRICHARAN R06ebff42013-02-12 01:33:42 +0000602 .cm_l3_2_ocmc_ram_clkctrl = 0x4a008830,
603 .cm_mpu_m3_clkstctrl = 0x4a008900,
604 .cm_mpu_m3_staticdep = 0x4a008904,
605 .cm_mpu_m3_dynamicdep = 0x4a008908,
606 .cm_mpu_m3_mpu_m3_clkctrl = 0x4a008920,
607 .cm_sdma_clkstctrl = 0x4a008a00,
608 .cm_sdma_staticdep = 0x4a008a04,
609 .cm_sdma_dynamicdep = 0x4a008a08,
610 .cm_sdma_sdma_clkctrl = 0x4a008a20,
611 .cm_memif_clkstctrl = 0x4a008b00,
612 .cm_memif_dmm_clkctrl = 0x4a008b20,
613 .cm_memif_emif_fw_clkctrl = 0x4a008b28,
614 .cm_memif_emif_1_clkctrl = 0x4a008b30,
615 .cm_memif_emif_2_clkctrl = 0x4a008b38,
616 .cm_memif_dll_clkctrl = 0x4a008b40,
617 .cm_memif_emif_h1_clkctrl = 0x4a008b50,
618 .cm_memif_emif_h2_clkctrl = 0x4a008b58,
619 .cm_memif_dll_h_clkctrl = 0x4a008b60,
620 .cm_c2c_clkstctrl = 0x4a008c00,
621 .cm_c2c_staticdep = 0x4a008c04,
622 .cm_c2c_dynamicdep = 0x4a008c08,
623 .cm_c2c_sad2d_clkctrl = 0x4a008c20,
624 .cm_c2c_modem_icr_clkctrl = 0x4a008c28,
625 .cm_c2c_sad2d_fw_clkctrl = 0x4a008c30,
626 .cm_l4cfg_clkstctrl = 0x4a008d00,
627 .cm_l4cfg_dynamicdep = 0x4a008d08,
628 .cm_l4cfg_l4_cfg_clkctrl = 0x4a008d20,
629 .cm_l4cfg_hw_sem_clkctrl = 0x4a008d28,
630 .cm_l4cfg_mailbox_clkctrl = 0x4a008d30,
631 .cm_l4cfg_sar_rom_clkctrl = 0x4a008d38,
632 .cm_l3instr_clkstctrl = 0x4a008e00,
633 .cm_l3instr_l3_3_clkctrl = 0x4a008e20,
634 .cm_l3instr_l3_instr_clkctrl = 0x4a008e28,
635 .cm_l3instr_intrconn_wp1_clkctrl = 0x4a008e40,
636 .cm_l4per_clkstctrl = 0x4a009000,
637 .cm_l4per_dynamicdep = 0x4a009008,
638 .cm_l4per_adc_clkctrl = 0x4a009020,
639 .cm_l4per_gptimer10_clkctrl = 0x4a009028,
640 .cm_l4per_gptimer11_clkctrl = 0x4a009030,
641 .cm_l4per_gptimer2_clkctrl = 0x4a009038,
642 .cm_l4per_gptimer3_clkctrl = 0x4a009040,
643 .cm_l4per_gptimer4_clkctrl = 0x4a009048,
644 .cm_l4per_gptimer9_clkctrl = 0x4a009050,
645 .cm_l4per_elm_clkctrl = 0x4a009058,
646 .cm_l4per_gpio2_clkctrl = 0x4a009060,
647 .cm_l4per_gpio3_clkctrl = 0x4a009068,
648 .cm_l4per_gpio4_clkctrl = 0x4a009070,
649 .cm_l4per_gpio5_clkctrl = 0x4a009078,
650 .cm_l4per_gpio6_clkctrl = 0x4a009080,
651 .cm_l4per_hdq1w_clkctrl = 0x4a009088,
652 .cm_l4per_hecc1_clkctrl = 0x4a009090,
653 .cm_l4per_hecc2_clkctrl = 0x4a009098,
654 .cm_l4per_i2c1_clkctrl = 0x4a0090a0,
655 .cm_l4per_i2c2_clkctrl = 0x4a0090a8,
656 .cm_l4per_i2c3_clkctrl = 0x4a0090b0,
657 .cm_l4per_i2c4_clkctrl = 0x4a0090b8,
658 .cm_l4per_l4per_clkctrl = 0x4a0090c0,
659 .cm_l4per_mcasp2_clkctrl = 0x4a0090d0,
660 .cm_l4per_mcasp3_clkctrl = 0x4a0090d8,
661 .cm_l4per_mgate_clkctrl = 0x4a0090e8,
662 .cm_l4per_mcspi1_clkctrl = 0x4a0090f0,
663 .cm_l4per_mcspi2_clkctrl = 0x4a0090f8,
664 .cm_l4per_mcspi3_clkctrl = 0x4a009100,
665 .cm_l4per_mcspi4_clkctrl = 0x4a009108,
666 .cm_l4per_gpio7_clkctrl = 0x4a009110,
667 .cm_l4per_gpio8_clkctrl = 0x4a009118,
668 .cm_l4per_mmcsd3_clkctrl = 0x4a009120,
669 .cm_l4per_mmcsd4_clkctrl = 0x4a009128,
670 .cm_l4per_msprohg_clkctrl = 0x4a009130,
671 .cm_l4per_slimbus2_clkctrl = 0x4a009138,
672 .cm_l4per_uart1_clkctrl = 0x4a009140,
673 .cm_l4per_uart2_clkctrl = 0x4a009148,
674 .cm_l4per_uart3_clkctrl = 0x4a009150,
675 .cm_l4per_uart4_clkctrl = 0x4a009158,
676 .cm_l4per_mmcsd5_clkctrl = 0x4a009160,
677 .cm_l4per_i2c5_clkctrl = 0x4a009168,
678 .cm_l4per_uart5_clkctrl = 0x4a009170,
679 .cm_l4per_uart6_clkctrl = 0x4a009178,
680 .cm_l4sec_clkstctrl = 0x4a009180,
681 .cm_l4sec_staticdep = 0x4a009184,
682 .cm_l4sec_dynamicdep = 0x4a009188,
683 .cm_l4sec_aes1_clkctrl = 0x4a0091a0,
684 .cm_l4sec_aes2_clkctrl = 0x4a0091a8,
685 .cm_l4sec_des3des_clkctrl = 0x4a0091b0,
686 .cm_l4sec_pkaeip29_clkctrl = 0x4a0091b8,
687 .cm_l4sec_rng_clkctrl = 0x4a0091c0,
688 .cm_l4sec_sha2md51_clkctrl = 0x4a0091c8,
689 .cm_l4sec_cryptodma_clkctrl = 0x4a0091d8,
690
691 /* cm2.ivahd */
692 .cm_ivahd_clkstctrl = 0x4a009200,
693 .cm_ivahd_ivahd_clkctrl = 0x4a009220,
694 .cm_ivahd_sl2_clkctrl = 0x4a009228,
695
696 /* cm2.cam */
697 .cm_cam_clkstctrl = 0x4a009300,
698 .cm_cam_iss_clkctrl = 0x4a009320,
699 .cm_cam_fdif_clkctrl = 0x4a009328,
700
701 /* cm2.dss */
702 .cm_dss_clkstctrl = 0x4a009400,
703 .cm_dss_dss_clkctrl = 0x4a009420,
704
705 /* cm2.sgx */
706 .cm_sgx_clkstctrl = 0x4a009500,
707 .cm_sgx_sgx_clkctrl = 0x4a009520,
708
709 /* cm2.l3init */
710 .cm_l3init_clkstctrl = 0x4a009600,
711
712 /* cm2.l3init */
713 .cm_l3init_hsmmc1_clkctrl = 0x4a009628,
714 .cm_l3init_hsmmc2_clkctrl = 0x4a009630,
715 .cm_l3init_hsi_clkctrl = 0x4a009638,
716 .cm_l3init_hsusbhost_clkctrl = 0x4a009658,
717 .cm_l3init_hsusbotg_clkctrl = 0x4a009660,
718 .cm_l3init_hsusbtll_clkctrl = 0x4a009668,
719 .cm_l3init_p1500_clkctrl = 0x4a009678,
Roger Quadrosd50e63d2013-11-11 16:56:40 +0200720 .cm_l3init_sata_clkctrl = 0x4a009688,
SRICHARAN R06ebff42013-02-12 01:33:42 +0000721 .cm_l3init_fsusb_clkctrl = 0x4a0096d0,
722 .cm_l3init_ocp2scp1_clkctrl = 0x4a0096e0,
Dan Murphy7f46b192013-08-26 08:54:50 -0500723 .cm_l3init_ocp2scp3_clkctrl = 0x4a0096e8,
Kishon Vijay Abraham Ib6065852015-02-23 18:39:44 +0530724 .cm_l3init_usb_otg_ss1_clkctrl = 0x4a0096f0,
SRICHARAN R06ebff42013-02-12 01:33:42 +0000725
Andrii Tseglytskyi84bd3252013-05-20 22:42:09 +0000726 /* prm irqstatus regs */
727 .prm_irqstatus_mpu_2 = 0x4ae06014,
728
SRICHARAN R06ebff42013-02-12 01:33:42 +0000729 /* l4 wkup regs */
730 .cm_abe_pll_ref_clksel = 0x4ae0610c,
731 .cm_sys_clksel = 0x4ae06110,
732 .cm_wkup_clkstctrl = 0x4ae07900,
733 .cm_wkup_l4wkup_clkctrl = 0x4ae07920,
734 .cm_wkup_wdtimer1_clkctrl = 0x4ae07928,
735 .cm_wkup_wdtimer2_clkctrl = 0x4ae07930,
736 .cm_wkup_gpio1_clkctrl = 0x4ae07938,
737 .cm_wkup_gptimer1_clkctrl = 0x4ae07940,
738 .cm_wkup_gptimer12_clkctrl = 0x4ae07948,
739 .cm_wkup_synctimer_clkctrl = 0x4ae07950,
740 .cm_wkup_usim_clkctrl = 0x4ae07958,
741 .cm_wkup_sarram_clkctrl = 0x4ae07960,
742 .cm_wkup_keyboard_clkctrl = 0x4ae07978,
743 .cm_wkup_rtc_clkctrl = 0x4ae07980,
744 .cm_wkup_bandgap_clkctrl = 0x4ae07988,
745 .cm_wkupaon_scrm_clkctrl = 0x4ae07990,
Lokesh Vutla28049632013-02-12 01:33:45 +0000746 .cm_wkupaon_io_srcomp_clkctrl = 0x4ae07998,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000747 .prm_rstctrl = 0x4ae07c00,
748 .prm_rstst = 0x4ae07c04,
Lokesh Vutla100c2d82013-04-17 20:49:40 +0000749 .prm_rsttime = 0x4ae07c08,
SRICHARAN R06ebff42013-02-12 01:33:42 +0000750 .prm_vc_val_bypass = 0x4ae07ca0,
751 .prm_vc_cfg_i2c_mode = 0x4ae07cb4,
752 .prm_vc_cfg_i2c_clk = 0x4ae07cb8,
753
Andrii Tseglytskyi84bd3252013-05-20 22:42:09 +0000754 .prm_abbldo_mpu_setup = 0x4ae07cdc,
755 .prm_abbldo_mpu_ctrl = 0x4ae07ce0,
Lubomir Popovc40c54b2013-05-15 04:41:01 +0000756
757 /* SCRM stuff, used by some boards */
758 .scrm_auxclk0 = 0x4ae0a310,
759 .scrm_auxclk1 = 0x4ae0a314,
SRICHARAN R06ebff42013-02-12 01:33:42 +0000760};
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000761
762struct prcm_regs const dra7xx_prcm = {
763 /* cm1.ckgen */
764 .cm_clksel_core = 0x4a005100,
765 .cm_clksel_abe = 0x4a005108,
766 .cm_dll_ctrl = 0x4a005110,
767 .cm_clkmode_dpll_core = 0x4a005120,
768 .cm_idlest_dpll_core = 0x4a005124,
769 .cm_autoidle_dpll_core = 0x4a005128,
770 .cm_clksel_dpll_core = 0x4a00512c,
771 .cm_div_m2_dpll_core = 0x4a005130,
772 .cm_div_m3_dpll_core = 0x4a005134,
773 .cm_div_h11_dpll_core = 0x4a005138,
774 .cm_div_h12_dpll_core = 0x4a00513c,
775 .cm_div_h13_dpll_core = 0x4a005140,
776 .cm_div_h14_dpll_core = 0x4a005144,
777 .cm_ssc_deltamstep_dpll_core = 0x4a005148,
778 .cm_ssc_modfreqdiv_dpll_core = 0x4a00514c,
779 .cm_div_h21_dpll_core = 0x4a005150,
780 .cm_div_h22_dpllcore = 0x4a005154,
781 .cm_div_h23_dpll_core = 0x4a005158,
782 .cm_div_h24_dpll_core = 0x4a00515c,
783 .cm_clkmode_dpll_mpu = 0x4a005160,
784 .cm_idlest_dpll_mpu = 0x4a005164,
785 .cm_autoidle_dpll_mpu = 0x4a005168,
786 .cm_clksel_dpll_mpu = 0x4a00516c,
787 .cm_div_m2_dpll_mpu = 0x4a005170,
788 .cm_ssc_deltamstep_dpll_mpu = 0x4a005188,
789 .cm_ssc_modfreqdiv_dpll_mpu = 0x4a00518c,
790 .cm_bypclk_dpll_mpu = 0x4a00519c,
791 .cm_clkmode_dpll_iva = 0x4a0051a0,
792 .cm_idlest_dpll_iva = 0x4a0051a4,
793 .cm_autoidle_dpll_iva = 0x4a0051a8,
794 .cm_clksel_dpll_iva = 0x4a0051ac,
795 .cm_ssc_deltamstep_dpll_iva = 0x4a0051c8,
796 .cm_ssc_modfreqdiv_dpll_iva = 0x4a0051cc,
797 .cm_bypclk_dpll_iva = 0x4a0051dc,
798 .cm_clkmode_dpll_abe = 0x4a0051e0,
799 .cm_idlest_dpll_abe = 0x4a0051e4,
800 .cm_autoidle_dpll_abe = 0x4a0051e8,
801 .cm_clksel_dpll_abe = 0x4a0051ec,
802 .cm_div_m2_dpll_abe = 0x4a0051f0,
803 .cm_div_m3_dpll_abe = 0x4a0051f4,
804 .cm_ssc_deltamstep_dpll_abe = 0x4a005208,
805 .cm_ssc_modfreqdiv_dpll_abe = 0x4a00520c,
806 .cm_clkmode_dpll_ddrphy = 0x4a005210,
807 .cm_idlest_dpll_ddrphy = 0x4a005214,
808 .cm_autoidle_dpll_ddrphy = 0x4a005218,
809 .cm_clksel_dpll_ddrphy = 0x4a00521c,
810 .cm_div_m2_dpll_ddrphy = 0x4a005220,
811 .cm_div_h11_dpll_ddrphy = 0x4a005228,
812 .cm_ssc_deltamstep_dpll_ddrphy = 0x4a00522c,
813 .cm_clkmode_dpll_dsp = 0x4a005234,
814 .cm_shadow_freq_config1 = 0x4a005260,
Lokesh Vutlaadc52df2013-07-08 16:04:39 +0530815 .cm_clkmode_dpll_gmac = 0x4a0052a8,
Kishon Vijay Abraham Ib6065852015-02-23 18:39:44 +0530816 .cm_coreaon_usb_phy1_core_clkctrl = 0x4a008640,
817 .cm_coreaon_usb_phy2_core_clkctrl = 0x4a008688,
Kishon Vijay Abraham Ie6bda8c2015-08-10 16:52:55 +0530818 .cm_coreaon_l3init_60m_gfclk_clkctrl = 0x4a0086c0,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000819
820 /* cm1.mpu */
821 .cm_mpu_mpu_clkctrl = 0x4a005320,
822
823 /* cm1.dsp */
824 .cm_dsp_clkstctrl = 0x4a005400,
825 .cm_dsp_dsp_clkctrl = 0x4a005420,
826
Lokesh Vutlab04038f2015-06-05 15:19:21 +0530827 /* cm IPU */
828 .cm_ipu_clkstctrl = 0x4a005540,
829 .cm_ipu_i2c5_clkctrl = 0x4a005578,
830
Nishanth Menon22737ab2014-01-14 12:27:29 -0600831 /* prm irqstatus regs */
832 .prm_irqstatus_mpu_2 = 0x4ae06014,
833
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000834 /* cm2.ckgen */
835 .cm_clksel_usb_60mhz = 0x4a008104,
836 .cm_clkmode_dpll_per = 0x4a008140,
837 .cm_idlest_dpll_per = 0x4a008144,
838 .cm_autoidle_dpll_per = 0x4a008148,
839 .cm_clksel_dpll_per = 0x4a00814c,
840 .cm_div_m2_dpll_per = 0x4a008150,
841 .cm_div_m3_dpll_per = 0x4a008154,
842 .cm_div_h11_dpll_per = 0x4a008158,
843 .cm_div_h12_dpll_per = 0x4a00815c,
844 .cm_div_h13_dpll_per = 0x4a008160,
845 .cm_div_h14_dpll_per = 0x4a008164,
846 .cm_ssc_deltamstep_dpll_per = 0x4a008168,
847 .cm_ssc_modfreqdiv_dpll_per = 0x4a00816c,
848 .cm_clkmode_dpll_usb = 0x4a008180,
849 .cm_idlest_dpll_usb = 0x4a008184,
850 .cm_autoidle_dpll_usb = 0x4a008188,
851 .cm_clksel_dpll_usb = 0x4a00818c,
852 .cm_div_m2_dpll_usb = 0x4a008190,
853 .cm_ssc_deltamstep_dpll_usb = 0x4a0081a8,
854 .cm_ssc_modfreqdiv_dpll_usb = 0x4a0081ac,
855 .cm_clkdcoldo_dpll_usb = 0x4a0081b4,
856 .cm_clkmode_dpll_pcie_ref = 0x4a008200,
857 .cm_clkmode_apll_pcie = 0x4a00821c,
858 .cm_idlest_apll_pcie = 0x4a008220,
859 .cm_div_m2_apll_pcie = 0x4a008224,
860 .cm_clkvcoldo_apll_pcie = 0x4a008228,
861
862 /* cm2.core */
863 .cm_l3_1_clkstctrl = 0x4a008700,
864 .cm_l3_1_dynamicdep = 0x4a008708,
865 .cm_l3_1_l3_1_clkctrl = 0x4a008720,
866 .cm_l3_gpmc_clkctrl = 0x4a008728,
867 .cm_mpu_m3_clkstctrl = 0x4a008900,
868 .cm_mpu_m3_staticdep = 0x4a008904,
869 .cm_mpu_m3_dynamicdep = 0x4a008908,
870 .cm_mpu_m3_mpu_m3_clkctrl = 0x4a008920,
871 .cm_sdma_clkstctrl = 0x4a008a00,
872 .cm_sdma_staticdep = 0x4a008a04,
873 .cm_sdma_dynamicdep = 0x4a008a08,
874 .cm_sdma_sdma_clkctrl = 0x4a008a20,
875 .cm_memif_clkstctrl = 0x4a008b00,
876 .cm_memif_dmm_clkctrl = 0x4a008b20,
877 .cm_memif_emif_fw_clkctrl = 0x4a008b28,
878 .cm_memif_emif_1_clkctrl = 0x4a008b30,
879 .cm_memif_emif_2_clkctrl = 0x4a008b38,
880 .cm_memif_dll_clkctrl = 0x4a008b40,
881 .cm_l4cfg_clkstctrl = 0x4a008d00,
882 .cm_l4cfg_dynamicdep = 0x4a008d08,
883 .cm_l4cfg_l4_cfg_clkctrl = 0x4a008d20,
884 .cm_l4cfg_hw_sem_clkctrl = 0x4a008d28,
885 .cm_l4cfg_mailbox_clkctrl = 0x4a008d30,
886 .cm_l4cfg_sar_rom_clkctrl = 0x4a008d38,
887 .cm_l3instr_clkstctrl = 0x4a008e00,
888 .cm_l3instr_l3_3_clkctrl = 0x4a008e20,
889 .cm_l3instr_l3_instr_clkctrl = 0x4a008e28,
890 .cm_l3instr_intrconn_wp1_clkctrl = 0x4a008e40,
891
892 /* cm2.ivahd */
893 .cm_ivahd_clkstctrl = 0x4a008f00,
894 .cm_ivahd_ivahd_clkctrl = 0x4a008f20,
895 .cm_ivahd_sl2_clkctrl = 0x4a008f28,
896
897 /* cm2.cam */
898 .cm_cam_clkstctrl = 0x4a009000,
899 .cm_cam_vip1_clkctrl = 0x4a009020,
900 .cm_cam_vip2_clkctrl = 0x4a009028,
901 .cm_cam_vip3_clkctrl = 0x4a009030,
902 .cm_cam_lvdsrx_clkctrl = 0x4a009038,
903 .cm_cam_csi1_clkctrl = 0x4a009040,
904 .cm_cam_csi2_clkctrl = 0x4a009048,
905
906 /* cm2.dss */
907 .cm_dss_clkstctrl = 0x4a009100,
908 .cm_dss_dss_clkctrl = 0x4a009120,
909
910 /* cm2.sgx */
911 .cm_sgx_clkstctrl = 0x4a009200,
912 .cm_sgx_sgx_clkctrl = 0x4a009220,
913
914 /* cm2.l3init */
915 .cm_l3init_clkstctrl = 0x4a009300,
916
917 /* cm2.l3init */
918 .cm_l3init_hsmmc1_clkctrl = 0x4a009328,
919 .cm_l3init_hsmmc2_clkctrl = 0x4a009330,
920 .cm_l3init_hsusbhost_clkctrl = 0x4a009340,
921 .cm_l3init_hsusbotg_clkctrl = 0x4a009348,
922 .cm_l3init_hsusbtll_clkctrl = 0x4a009350,
Roger Quadrosb63730d2013-11-11 16:56:43 +0200923 .cm_l3init_sata_clkctrl = 0x4a009388,
Mugunthan V N4a42ff12013-07-08 16:04:40 +0530924 .cm_gmac_clkstctrl = 0x4a0093c0,
925 .cm_gmac_gmac_clkctrl = 0x4a0093d0,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000926 .cm_l3init_ocp2scp1_clkctrl = 0x4a0093e0,
Roger Quadrosb63730d2013-11-11 16:56:43 +0200927 .cm_l3init_ocp2scp3_clkctrl = 0x4a0093e8,
Kishon Vijay Abraham Ib6065852015-02-23 18:39:44 +0530928 .cm_l3init_usb_otg_ss1_clkctrl = 0x4a0093f0,
Kishon Vijay Abraham Ie6bda8c2015-08-10 16:52:55 +0530929 .cm_l3init_usb_otg_ss2_clkctrl = 0x4a009340,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000930
931 /* cm2.l4per */
932 .cm_l4per_clkstctrl = 0x4a009700,
933 .cm_l4per_dynamicdep = 0x4a009708,
934 .cm_l4per_gptimer10_clkctrl = 0x4a009728,
935 .cm_l4per_gptimer11_clkctrl = 0x4a009730,
936 .cm_l4per_gptimer2_clkctrl = 0x4a009738,
937 .cm_l4per_gptimer3_clkctrl = 0x4a009740,
938 .cm_l4per_gptimer4_clkctrl = 0x4a009748,
939 .cm_l4per_gptimer9_clkctrl = 0x4a009750,
940 .cm_l4per_elm_clkctrl = 0x4a009758,
941 .cm_l4per_gpio2_clkctrl = 0x4a009760,
942 .cm_l4per_gpio3_clkctrl = 0x4a009768,
943 .cm_l4per_gpio4_clkctrl = 0x4a009770,
944 .cm_l4per_gpio5_clkctrl = 0x4a009778,
945 .cm_l4per_gpio6_clkctrl = 0x4a009780,
946 .cm_l4per_hdq1w_clkctrl = 0x4a009788,
947 .cm_l4per_i2c1_clkctrl = 0x4a0097a0,
948 .cm_l4per_i2c2_clkctrl = 0x4a0097a8,
949 .cm_l4per_i2c3_clkctrl = 0x4a0097b0,
950 .cm_l4per_i2c4_clkctrl = 0x4a0097b8,
951 .cm_l4per_l4per_clkctrl = 0x4a0097c0,
952 .cm_l4per_mcspi1_clkctrl = 0x4a0097f0,
953 .cm_l4per_mcspi2_clkctrl = 0x4a0097f8,
954 .cm_l4per_mcspi3_clkctrl = 0x4a009800,
955 .cm_l4per_mcspi4_clkctrl = 0x4a009808,
956 .cm_l4per_gpio7_clkctrl = 0x4a009810,
957 .cm_l4per_gpio8_clkctrl = 0x4a009818,
958 .cm_l4per_mmcsd3_clkctrl = 0x4a009820,
959 .cm_l4per_mmcsd4_clkctrl = 0x4a009828,
Matt Porter30746262013-10-07 15:52:59 +0530960 .cm_l4per_qspi_clkctrl = 0x4a009838,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000961 .cm_l4per_uart1_clkctrl = 0x4a009840,
962 .cm_l4per_uart2_clkctrl = 0x4a009848,
963 .cm_l4per_uart3_clkctrl = 0x4a009850,
964 .cm_l4per_uart4_clkctrl = 0x4a009858,
965 .cm_l4per_uart5_clkctrl = 0x4a009870,
966 .cm_l4sec_clkstctrl = 0x4a009880,
967 .cm_l4sec_staticdep = 0x4a009884,
968 .cm_l4sec_dynamicdep = 0x4a009888,
969 .cm_l4sec_aes1_clkctrl = 0x4a0098a0,
970 .cm_l4sec_aes2_clkctrl = 0x4a0098a8,
971 .cm_l4sec_des3des_clkctrl = 0x4a0098b0,
972 .cm_l4sec_rng_clkctrl = 0x4a0098c0,
973 .cm_l4sec_sha2md51_clkctrl = 0x4a0098c8,
974 .cm_l4sec_cryptodma_clkctrl = 0x4a0098d8,
975
976 /* l4 wkup regs */
977 .cm_abe_pll_ref_clksel = 0x4ae0610c,
978 .cm_sys_clksel = 0x4ae06110,
Lokesh Vutla16523262013-05-30 03:19:38 +0000979 .cm_abe_pll_sys_clksel = 0x4ae06118,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000980 .cm_wkup_clkstctrl = 0x4ae07800,
981 .cm_wkup_l4wkup_clkctrl = 0x4ae07820,
982 .cm_wkup_wdtimer1_clkctrl = 0x4ae07828,
983 .cm_wkup_wdtimer2_clkctrl = 0x4ae07830,
984 .cm_wkup_gpio1_clkctrl = 0x4ae07838,
985 .cm_wkup_gptimer1_clkctrl = 0x4ae07840,
986 .cm_wkup_gptimer12_clkctrl = 0x4ae07848,
987 .cm_wkup_sarram_clkctrl = 0x4ae07860,
988 .cm_wkup_keyboard_clkctrl = 0x4ae07878,
989 .cm_wkupaon_scrm_clkctrl = 0x4ae07890,
990 .prm_rstctrl = 0x4ae07d00,
991 .prm_rstst = 0x4ae07d04,
Lokesh Vutla100c2d82013-04-17 20:49:40 +0000992 .prm_rsttime = 0x4ae07d08,
Lokesh Vutla3de40ac2015-06-04 16:42:36 +0530993 .prm_io_pmctrl = 0x4ae07d20,
Lokesh Vutla15c2c702013-02-17 23:33:37 +0000994 .prm_vc_val_bypass = 0x4ae07da0,
995 .prm_vc_cfg_i2c_mode = 0x4ae07db4,
996 .prm_vc_cfg_i2c_clk = 0x4ae07db8,
Nishanth Menon22737ab2014-01-14 12:27:29 -0600997
998 .prm_abbldo_mpu_setup = 0x4AE07DDC,
999 .prm_abbldo_mpu_ctrl = 0x4AE07DE0,
Vignesh R92dc6a02015-08-17 13:29:52 +05301000
1001 /*l3main1 edma*/
1002 .cm_l3main1_tptc1_clkctrl = 0x4a008778,
1003 .cm_l3main1_tptc2_clkctrl = 0x4a008780,
Lokesh Vutla15c2c702013-02-17 23:33:37 +00001004};
Nishanth Menonbe3a5532015-08-13 09:51:00 -05001005
1006void clrset_spare_register(u8 spare_type, u32 clear_bits, u32 set_bits)
1007{
1008 u32 reg = spare_type ? (*ctrl)->ctrl_core_sma_sw_1 :
1009 (*ctrl)->ctrl_core_sma_sw_0;
1010 clrsetbits_le32(reg, clear_bits, set_bits);
1011}