blob: b2c8498a9942f855936fffed1a6cadd2747b1d8c [file] [log] [blame]
Dirk Behmedeccb102008-12-14 09:47:11 +01001/*
2 * (C) Copyright 2006-2008
3 * Texas Instruments, <www.ti.com>
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 *
23 */
24
25#ifndef _CPU_H
26#define _CPU_H
27
Dirk Behme0f58db52009-08-08 09:30:23 +020028#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
29#include <asm/types.h>
30#endif /* !(__KERNEL_STRICT_NAMES || __ASSEMBLY__) */
31
Dirk Behmedeccb102008-12-14 09:47:11 +010032/* Register offsets of common modules */
33/* Control */
Dirk Behme0f58db52009-08-08 09:30:23 +020034#ifndef __KERNEL_STRICT_NAMES
Dirk Behmedeccb102008-12-14 09:47:11 +010035#ifndef __ASSEMBLY__
Dirk Behmedc7af202009-08-08 09:30:21 +020036struct ctrl {
Dirk Behme0f58db52009-08-08 09:30:23 +020037 u8 res1[0xC0];
38 u16 gpmc_nadv_ale; /* 0xC0 */
39 u16 gpmc_noe; /* 0xC2 */
40 u16 gpmc_nwe; /* 0xC4 */
41 u8 res2[0x22A];
42 u32 status; /* 0x2F0 */
43 u32 gpstatus; /* 0x2F4 */
44 u8 res3[0x08];
45 u32 rpubkey_0; /* 0x300 */
46 u32 rpubkey_1; /* 0x304 */
47 u32 rpubkey_2; /* 0x308 */
48 u32 rpubkey_3; /* 0x30C */
49 u32 rpubkey_4; /* 0x310 */
50 u8 res4[0x04];
51 u32 randkey_0; /* 0x318 */
52 u32 randkey_1; /* 0x31C */
53 u32 randkey_2; /* 0x320 */
54 u32 randkey_3; /* 0x324 */
55 u8 res5[0x124];
56 u32 ctrl_omap_stat; /* 0x44C */
Dirk Behmedc7af202009-08-08 09:30:21 +020057};
Dirk Behmedeccb102008-12-14 09:47:11 +010058#else /* __ASSEMBLY__ */
59#define CONTROL_STATUS 0x2F0
60#endif /* __ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +020061#endif /* __KERNEL_STRICT_NAMES */
Dirk Behmedeccb102008-12-14 09:47:11 +010062
Dirk Behme2d0d4fa2009-02-12 18:55:42 +010063/* cpu type */
64#define OMAP3503 0x5c00
65#define OMAP3515 0x1c00
66#define OMAP3525 0x4c00
67#define OMAP3530 0x0c00
68
Dirk Behme0f58db52009-08-08 09:30:23 +020069#ifndef __KERNEL_STRICT_NAMES
Dirk Behme12dbcf62009-03-12 19:30:50 +010070#ifndef __ASSEMBLY__
Dirk Behmedc7af202009-08-08 09:30:21 +020071struct ctrl_id {
Dirk Behme0f58db52009-08-08 09:30:23 +020072 u8 res1[0x4];
73 u32 idcode; /* 0x04 */
74 u32 prod_id; /* 0x08 */
75 u8 res2[0x0C];
76 u32 die_id_0; /* 0x18 */
77 u32 die_id_1; /* 0x1C */
78 u32 die_id_2; /* 0x20 */
79 u32 die_id_3; /* 0x24 */
Dirk Behmedc7af202009-08-08 09:30:21 +020080};
Dirk Behme12dbcf62009-03-12 19:30:50 +010081#endif /* __ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +020082#endif /* __KERNEL_STRICT_NAMES */
Dirk Behme12dbcf62009-03-12 19:30:50 +010083
Dirk Behmedeccb102008-12-14 09:47:11 +010084/* device type */
85#define DEVICE_MASK (0x7 << 8)
86#define SYSBOOT_MASK 0x1F
87#define TST_DEVICE 0x0
88#define EMU_DEVICE 0x1
89#define HS_DEVICE 0x2
90#define GP_DEVICE 0x3
91
Dirk Behmedeccb102008-12-14 09:47:11 +010092#define GPMC_BASE (OMAP34XX_GPMC_BASE)
93#define GPMC_CONFIG_CS0 0x60
Dirk Behmedeccb102008-12-14 09:47:11 +010094
Dirk Behme0f58db52009-08-08 09:30:23 +020095#ifndef __KERNEL_STRICT_NAMES
Dirk Behmedeccb102008-12-14 09:47:11 +010096#ifndef __ASSEMBLY__
Matthias Ludwige06da3d2009-05-19 09:09:31 +020097struct gpmc_cs {
Dirk Behme0f58db52009-08-08 09:30:23 +020098 u32 config1; /* 0x00 */
99 u32 config2; /* 0x04 */
100 u32 config3; /* 0x08 */
101 u32 config4; /* 0x0C */
102 u32 config5; /* 0x10 */
103 u32 config6; /* 0x14 */
104 u32 config7; /* 0x18 */
105 u32 nand_cmd; /* 0x1C */
106 u32 nand_adr; /* 0x20 */
107 u32 nand_dat; /* 0x24 */
108 u8 res[8]; /* blow up to 0x30 byte */
Matthias Ludwige06da3d2009-05-19 09:09:31 +0200109};
110
Dirk Behmedc7af202009-08-08 09:30:21 +0200111struct gpmc {
Dirk Behme0f58db52009-08-08 09:30:23 +0200112 u8 res1[0x10];
113 u32 sysconfig; /* 0x10 */
114 u8 res2[0x4];
115 u32 irqstatus; /* 0x18 */
116 u32 irqenable; /* 0x1C */
117 u8 res3[0x20];
118 u32 timeout_control; /* 0x40 */
119 u8 res4[0xC];
120 u32 config; /* 0x50 */
121 u32 status; /* 0x54 */
122 u8 res5[0x8];
Matthias Ludwige06da3d2009-05-19 09:09:31 +0200123 struct gpmc_cs cs[8]; /* 0x60, 0x90, .. */
Dirk Behme0f58db52009-08-08 09:30:23 +0200124 u8 res6[0x18];
125 u32 ecc_config; /* 0x1F4 */
126 u32 ecc_control; /* 0x1F8 */
127 u32 ecc_size_config; /* 0x1FC */
128 u32 ecc1_result; /* 0x200 */
129 u32 ecc2_result; /* 0x204 */
130 u32 ecc3_result; /* 0x208 */
131 u32 ecc4_result; /* 0x20C */
132 u32 ecc5_result; /* 0x210 */
133 u32 ecc6_result; /* 0x214 */
134 u32 ecc7_result; /* 0x218 */
135 u32 ecc8_result; /* 0x21C */
136 u32 ecc9_result; /* 0x220 */
Dirk Behmedc7af202009-08-08 09:30:21 +0200137};
Dirk Behmedeccb102008-12-14 09:47:11 +0100138#else /* __ASSEMBLY__ */
139#define GPMC_CONFIG1 0x00
140#define GPMC_CONFIG2 0x04
141#define GPMC_CONFIG3 0x08
142#define GPMC_CONFIG4 0x0C
143#define GPMC_CONFIG5 0x10
144#define GPMC_CONFIG6 0x14
145#define GPMC_CONFIG7 0x18
146#endif /* __ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +0200147#endif /* __KERNEL_STRICT_NAMES */
Dirk Behmedeccb102008-12-14 09:47:11 +0100148
149/* GPMC Mapping */
150#define FLASH_BASE 0x10000000 /* NOR flash, */
151 /* aligned to 256 Meg */
152#define FLASH_BASE_SDPV1 0x04000000 /* NOR flash, */
153 /* aligned to 64 Meg */
154#define FLASH_BASE_SDPV2 0x10000000 /* NOR flash, */
155 /* aligned to 256 Meg */
156#define DEBUG_BASE 0x08000000 /* debug board */
157#define NAND_BASE 0x30000000 /* NAND addr */
158 /* (actual size small port) */
159#define PISMO2_BASE 0x18000000 /* PISMO2 CS1/2 */
160#define ONENAND_MAP 0x20000000 /* OneNand addr */
161 /* (actual size small port) */
162/* SMS */
Dirk Behme0f58db52009-08-08 09:30:23 +0200163#ifndef __KERNEL_STRICT_NAMES
Dirk Behmedeccb102008-12-14 09:47:11 +0100164#ifndef __ASSEMBLY__
Dirk Behmedc7af202009-08-08 09:30:21 +0200165struct sms {
Dirk Behme0f58db52009-08-08 09:30:23 +0200166 u8 res1[0x10];
167 u32 sysconfig; /* 0x10 */
168 u8 res2[0x34];
169 u32 rg_att0; /* 0x48 */
170 u8 res3[0x84];
171 u32 class_arb0; /* 0xD0 */
Dirk Behmedc7af202009-08-08 09:30:21 +0200172};
Dirk Behmedeccb102008-12-14 09:47:11 +0100173#endif /* __ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +0200174#endif /* __KERNEL_STRICT_NAMES */
Dirk Behmedeccb102008-12-14 09:47:11 +0100175
176#define BURSTCOMPLETE_GROUP7 (0x1 << 31)
177
178/* SDRC */
Dirk Behme0f58db52009-08-08 09:30:23 +0200179#ifndef __KERNEL_STRICT_NAMES
Dirk Behmedeccb102008-12-14 09:47:11 +0100180#ifndef __ASSEMBLY__
Dirk Behmedc7af202009-08-08 09:30:21 +0200181struct sdrc_cs {
Dirk Behme0f58db52009-08-08 09:30:23 +0200182 u32 mcfg; /* 0x80 || 0xB0 */
183 u32 mr; /* 0x84 || 0xB4 */
184 u8 res1[0x4];
185 u32 emr2; /* 0x8C || 0xBC */
186 u8 res2[0x14];
187 u32 rfr_ctrl; /* 0x84 || 0xD4 */
188 u32 manual; /* 0xA8 || 0xD8 */
189 u8 res3[0x4];
Dirk Behmedc7af202009-08-08 09:30:21 +0200190};
Dirk Behmedeccb102008-12-14 09:47:11 +0100191
Dirk Behmedc7af202009-08-08 09:30:21 +0200192struct sdrc_actim {
Dirk Behme0f58db52009-08-08 09:30:23 +0200193 u32 ctrla; /* 0x9C || 0xC4 */
194 u32 ctrlb; /* 0xA0 || 0xC8 */
Dirk Behmedc7af202009-08-08 09:30:21 +0200195};
Dirk Behmedeccb102008-12-14 09:47:11 +0100196
Dirk Behmedc7af202009-08-08 09:30:21 +0200197struct sdrc {
Dirk Behme0f58db52009-08-08 09:30:23 +0200198 u8 res1[0x10];
199 u32 sysconfig; /* 0x10 */
200 u32 status; /* 0x14 */
201 u8 res2[0x28];
202 u32 cs_cfg; /* 0x40 */
203 u32 sharing; /* 0x44 */
204 u8 res3[0x18];
205 u32 dlla_ctrl; /* 0x60 */
206 u32 dlla_status; /* 0x64 */
207 u32 dllb_ctrl; /* 0x68 */
208 u32 dllb_status; /* 0x6C */
209 u32 power; /* 0x70 */
210 u8 res4[0xC];
211 struct sdrc_cs cs[2]; /* 0x80 || 0xB0 */
Dirk Behmedc7af202009-08-08 09:30:21 +0200212};
Dirk Behmedeccb102008-12-14 09:47:11 +0100213#endif /* __ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +0200214#endif /* __KERNEL_STRICT_NAMES */
Dirk Behmedeccb102008-12-14 09:47:11 +0100215
216#define DLLPHASE_90 (0x1 << 1)
217#define LOADDLL (0x1 << 2)
218#define ENADLL (0x1 << 3)
219#define DLL_DELAY_MASK 0xFF00
220#define DLL_NO_FILTER_MASK ((0x1 << 9) | (0x1 << 8))
221
222#define PAGEPOLICY_HIGH (0x1 << 0)
223#define SRFRONRESET (0x1 << 7)
224#define WAKEUPPROC (0x1 << 26)
225
226#define DDR_SDRAM (0x1 << 0)
227#define DEEPPD (0x1 << 3)
228#define B32NOT16 (0x1 << 4)
229#define BANKALLOCATION (0x2 << 6)
230#define RAMSIZE_128 (0x40 << 8) /* RAM size in 2MB chunks */
231#define ADDRMUXLEGACY (0x1 << 19)
232#define CASWIDTH_10BITS (0x5 << 20)
233#define RASWIDTH_13BITS (0x2 << 24)
234#define BURSTLENGTH4 (0x2 << 0)
235#define CASL3 (0x3 << 4)
236#define SDRC_ACTIM_CTRL0_BASE (OMAP34XX_SDRC_BASE + 0x9C)
237#define SDRC_ACTIM_CTRL1_BASE (OMAP34XX_SDRC_BASE + 0xC4)
238#define ARE_ARCV_1 (0x1 << 0)
239#define ARCV (0x4e2 << 8) /* Autorefresh count */
240#define OMAP34XX_SDRC_CS0 0x80000000
241#define OMAP34XX_SDRC_CS1 0xA0000000
242#define CMD_NOP 0x0
243#define CMD_PRECHARGE 0x1
244#define CMD_AUTOREFRESH 0x2
245#define CMD_ENTR_PWRDOWN 0x3
246#define CMD_EXIT_PWRDOWN 0x4
247#define CMD_ENTR_SRFRSH 0x5
248#define CMD_CKE_HIGH 0x6
249#define CMD_CKE_LOW 0x7
250#define SOFTRESET (0x1 << 1)
251#define SMART_IDLE (0x2 << 3)
252#define REF_ON_IDLE (0x1 << 6)
253
254/* timer regs offsets (32 bit regs) */
255
Dirk Behme0f58db52009-08-08 09:30:23 +0200256#ifndef __KERNEL_STRICT_NAMES
Dirk Behmedeccb102008-12-14 09:47:11 +0100257#ifndef __ASSEMBLY__
Dirk Behmedc7af202009-08-08 09:30:21 +0200258struct gptimer {
Dirk Behme0f58db52009-08-08 09:30:23 +0200259 u32 tidr; /* 0x00 r */
260 u8 res[0xc];
261 u32 tiocp_cfg; /* 0x10 rw */
262 u32 tistat; /* 0x14 r */
263 u32 tisr; /* 0x18 rw */
264 u32 tier; /* 0x1c rw */
265 u32 twer; /* 0x20 rw */
266 u32 tclr; /* 0x24 rw */
267 u32 tcrr; /* 0x28 rw */
268 u32 tldr; /* 0x2c rw */
269 u32 ttgr; /* 0x30 rw */
270 u32 twpc; /* 0x34 r*/
271 u32 tmar; /* 0x38 rw*/
272 u32 tcar1; /* 0x3c r */
273 u32 tcicr; /* 0x40 rw */
274 u32 tcar2; /* 0x44 r */
Dirk Behmedc7af202009-08-08 09:30:21 +0200275};
Dirk Behmedeccb102008-12-14 09:47:11 +0100276#endif /* __ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +0200277#endif /* __KERNEL_STRICT_NAMES */
Dirk Behmedeccb102008-12-14 09:47:11 +0100278
279/* enable sys_clk NO-prescale /1 */
280#define GPT_EN ((0x0 << 2) | (0x1 << 1) | (0x1 << 0))
281
282/* Watchdog */
Dirk Behme0f58db52009-08-08 09:30:23 +0200283#ifndef __KERNEL_STRICT_NAMES
Dirk Behmedeccb102008-12-14 09:47:11 +0100284#ifndef __ASSEMBLY__
Dirk Behmedc7af202009-08-08 09:30:21 +0200285struct watchdog {
Dirk Behme0f58db52009-08-08 09:30:23 +0200286 u8 res1[0x34];
287 u32 wwps; /* 0x34 r */
288 u8 res2[0x10];
289 u32 wspr; /* 0x48 rw */
Dirk Behmedc7af202009-08-08 09:30:21 +0200290};
Dirk Behmedeccb102008-12-14 09:47:11 +0100291#endif /* __ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +0200292#endif /* __KERNEL_STRICT_NAMES */
Dirk Behmedeccb102008-12-14 09:47:11 +0100293
294#define WD_UNLOCK1 0xAAAA
295#define WD_UNLOCK2 0x5555
296
297/* PRCM */
298#define PRCM_BASE 0x48004000
299
Dirk Behme0f58db52009-08-08 09:30:23 +0200300#ifndef __KERNEL_STRICT_NAMES
Dirk Behmedeccb102008-12-14 09:47:11 +0100301#ifndef __ASSEMBLY__
Dirk Behmedc7af202009-08-08 09:30:21 +0200302struct prcm {
Dirk Behme0f58db52009-08-08 09:30:23 +0200303 u32 fclken_iva2; /* 0x00 */
304 u32 clken_pll_iva2; /* 0x04 */
305 u8 res1[0x1c];
306 u32 idlest_pll_iva2; /* 0x24 */
307 u8 res2[0x18];
308 u32 clksel1_pll_iva2 ; /* 0x40 */
309 u32 clksel2_pll_iva2; /* 0x44 */
310 u8 res3[0x8bc];
311 u32 clken_pll_mpu; /* 0x904 */
312 u8 res4[0x1c];
313 u32 idlest_pll_mpu; /* 0x924 */
314 u8 res5[0x18];
315 u32 clksel1_pll_mpu; /* 0x940 */
316 u32 clksel2_pll_mpu; /* 0x944 */
317 u8 res6[0xb8];
318 u32 fclken1_core; /* 0xa00 */
319 u8 res7[0xc];
320 u32 iclken1_core; /* 0xa10 */
321 u32 iclken2_core; /* 0xa14 */
322 u8 res8[0x28];
323 u32 clksel_core; /* 0xa40 */
324 u8 res9[0xbc];
325 u32 fclken_gfx; /* 0xb00 */
326 u8 res10[0xc];
327 u32 iclken_gfx; /* 0xb10 */
328 u8 res11[0x2c];
329 u32 clksel_gfx; /* 0xb40 */
330 u8 res12[0xbc];
331 u32 fclken_wkup; /* 0xc00 */
332 u8 res13[0xc];
333 u32 iclken_wkup; /* 0xc10 */
334 u8 res14[0xc];
335 u32 idlest_wkup; /* 0xc20 */
336 u8 res15[0x1c];
337 u32 clksel_wkup; /* 0xc40 */
338 u8 res16[0xbc];
339 u32 clken_pll; /* 0xd00 */
340 u8 res17[0x1c];
341 u32 idlest_ckgen; /* 0xd20 */
342 u8 res18[0x1c];
343 u32 clksel1_pll; /* 0xd40 */
344 u32 clksel2_pll; /* 0xd44 */
345 u32 clksel3_pll; /* 0xd48 */
346 u8 res19[0xb4];
347 u32 fclken_dss; /* 0xe00 */
348 u8 res20[0xc];
349 u32 iclken_dss; /* 0xe10 */
350 u8 res21[0x2c];
351 u32 clksel_dss; /* 0xe40 */
352 u8 res22[0xbc];
353 u32 fclken_cam; /* 0xf00 */
354 u8 res23[0xc];
355 u32 iclken_cam; /* 0xf10 */
356 u8 res24[0x2c];
357 u32 clksel_cam; /* 0xf40 */
358 u8 res25[0xbc];
359 u32 fclken_per; /* 0x1000 */
360 u8 res26[0xc];
361 u32 iclken_per; /* 0x1010 */
362 u8 res27[0x2c];
363 u32 clksel_per; /* 0x1040 */
364 u8 res28[0xfc];
365 u32 clksel1_emu; /* 0x1140 */
Dirk Behmedc7af202009-08-08 09:30:21 +0200366};
Dirk Behmedeccb102008-12-14 09:47:11 +0100367#else /* __ASSEMBLY__ */
368#define CM_CLKSEL_CORE 0x48004a40
369#define CM_CLKSEL_GFX 0x48004b40
370#define CM_CLKSEL_WKUP 0x48004c40
371#define CM_CLKEN_PLL 0x48004d00
372#define CM_CLKSEL1_PLL 0x48004d40
373#define CM_CLKSEL1_EMU 0x48005140
374#endif /* __ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +0200375#endif /* __KERNEL_STRICT_NAMES */
Dirk Behmedeccb102008-12-14 09:47:11 +0100376
377#define PRM_BASE 0x48306000
378
Dirk Behme0f58db52009-08-08 09:30:23 +0200379#ifndef __KERNEL_STRICT_NAMES
Dirk Behmedeccb102008-12-14 09:47:11 +0100380#ifndef __ASSEMBLY__
Dirk Behmedc7af202009-08-08 09:30:21 +0200381struct prm {
Dirk Behme0f58db52009-08-08 09:30:23 +0200382 u8 res1[0xd40];
383 u32 clksel; /* 0xd40 */
384 u8 res2[0x50c];
385 u32 rstctrl; /* 0x1250 */
386 u8 res3[0x1c];
387 u32 clksrc_ctrl; /* 0x1270 */
Dirk Behmedc7af202009-08-08 09:30:21 +0200388};
Dirk Behmedeccb102008-12-14 09:47:11 +0100389#else /* __ASSEMBLY__ */
390#define PRM_RSTCTRL 0x48307250
391#endif /* __ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +0200392#endif /* __KERNEL_STRICT_NAMES */
Dirk Behmedeccb102008-12-14 09:47:11 +0100393
394#define SYSCLKDIV_1 (0x1 << 6)
395#define SYSCLKDIV_2 (0x1 << 7)
396
397#define CLKSEL_GPT1 (0x1 << 0)
398
399#define EN_GPT1 (0x1 << 0)
400#define EN_32KSYNC (0x1 << 2)
401
402#define ST_WDT2 (0x1 << 5)
403
404#define ST_MPU_CLK (0x1 << 0)
405
406#define ST_CORE_CLK (0x1 << 0)
407
408#define ST_PERIPH_CLK (0x1 << 1)
409
410#define ST_IVA2_CLK (0x1 << 0)
411
412#define RESETDONE (0x1 << 0)
413
414#define TCLR_ST (0x1 << 0)
415#define TCLR_AR (0x1 << 1)
416#define TCLR_PRE (0x1 << 5)
417
418/* SMX-APE */
419#define PM_RT_APE_BASE_ADDR_ARM (SMX_APE_BASE + 0x10000)
420#define PM_GPMC_BASE_ADDR_ARM (SMX_APE_BASE + 0x12400)
421#define PM_OCM_RAM_BASE_ADDR_ARM (SMX_APE_BASE + 0x12800)
422#define PM_IVA2_BASE_ADDR_ARM (SMX_APE_BASE + 0x14000)
423
Dirk Behme0f58db52009-08-08 09:30:23 +0200424#ifndef __KERNEL_STRICT_NAMES
Dirk Behmedeccb102008-12-14 09:47:11 +0100425#ifndef __ASSEMBLY__
Dirk Behmedc7af202009-08-08 09:30:21 +0200426struct pm {
Dirk Behme0f58db52009-08-08 09:30:23 +0200427 u8 res1[0x48];
428 u32 req_info_permission_0; /* 0x48 */
429 u8 res2[0x4];
430 u32 read_permission_0; /* 0x50 */
431 u8 res3[0x4];
432 u32 wirte_permission_0; /* 0x58 */
433 u8 res4[0x4];
434 u32 addr_match_1; /* 0x58 */
435 u8 res5[0x4];
436 u32 req_info_permission_1; /* 0x68 */
437 u8 res6[0x14];
438 u32 addr_match_2; /* 0x80 */
Dirk Behmedc7af202009-08-08 09:30:21 +0200439};
Dirk Behmedeccb102008-12-14 09:47:11 +0100440#endif /*__ASSEMBLY__ */
Dirk Behme0f58db52009-08-08 09:30:23 +0200441#endif /* __KERNEL_STRICT_NAMES */
Dirk Behmedeccb102008-12-14 09:47:11 +0100442
443/* Permission values for registers -Full fledged permissions to all */
444#define UNLOCK_1 0xFFFFFFFF
445#define UNLOCK_2 0x00000000
446#define UNLOCK_3 0x0000FFFF
447
448#define NOT_EARLY 0
449
450/* I2C base */
451#define I2C_BASE1 (OMAP34XX_CORE_L4_IO_BASE + 0x70000)
452#define I2C_BASE2 (OMAP34XX_CORE_L4_IO_BASE + 0x72000)
453#define I2C_BASE3 (OMAP34XX_CORE_L4_IO_BASE + 0x60000)
454
455#endif /* _CPU_H */