cpu.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. /*
  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. #ifndef _CPU_H
  25. #define _CPU_H
  26. #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
  27. #include <asm/types.h>
  28. #endif /* !(__KERNEL_STRICT_NAMES || __ASSEMBLY__) */
  29. /* Register offsets of common modules */
  30. /* Control */
  31. #ifndef __KERNEL_STRICT_NAMES
  32. #ifndef __ASSEMBLY__
  33. struct ctrl {
  34. u8 res1[0xC0];
  35. u16 gpmc_nadv_ale; /* 0xC0 */
  36. u16 gpmc_noe; /* 0xC2 */
  37. u16 gpmc_nwe; /* 0xC4 */
  38. u8 res2[0x22A];
  39. u32 status; /* 0x2F0 */
  40. u32 gpstatus; /* 0x2F4 */
  41. u8 res3[0x08];
  42. u32 rpubkey_0; /* 0x300 */
  43. u32 rpubkey_1; /* 0x304 */
  44. u32 rpubkey_2; /* 0x308 */
  45. u32 rpubkey_3; /* 0x30C */
  46. u32 rpubkey_4; /* 0x310 */
  47. u8 res4[0x04];
  48. u32 randkey_0; /* 0x318 */
  49. u32 randkey_1; /* 0x31C */
  50. u32 randkey_2; /* 0x320 */
  51. u32 randkey_3; /* 0x324 */
  52. u8 res5[0x124];
  53. u32 ctrl_omap_stat; /* 0x44C */
  54. };
  55. #else /* __ASSEMBLY__ */
  56. #define CONTROL_STATUS 0x2F0
  57. #endif /* __ASSEMBLY__ */
  58. #endif /* __KERNEL_STRICT_NAMES */
  59. #ifndef __KERNEL_STRICT_NAMES
  60. #ifndef __ASSEMBLY__
  61. struct ctrl_id {
  62. u8 res1[0x4];
  63. u32 idcode; /* 0x04 */
  64. u32 prod_id; /* 0x08 */
  65. u32 sku_id; /* 0x0c */
  66. u8 res2[0x08];
  67. u32 die_id_0; /* 0x18 */
  68. u32 die_id_1; /* 0x1C */
  69. u32 die_id_2; /* 0x20 */
  70. u32 die_id_3; /* 0x24 */
  71. };
  72. #endif /* __ASSEMBLY__ */
  73. #endif /* __KERNEL_STRICT_NAMES */
  74. /* device type */
  75. #define DEVICE_MASK (0x7 << 8)
  76. #define SYSBOOT_MASK 0x1F
  77. #define TST_DEVICE 0x0
  78. #define EMU_DEVICE 0x1
  79. #define HS_DEVICE 0x2
  80. #define GP_DEVICE 0x3
  81. /* device speed */
  82. #define SKUID_CLK_MASK 0xf
  83. #define SKUID_CLK_600MHZ 0x0
  84. #define SKUID_CLK_720MHZ 0x8
  85. #define GPMC_BASE (OMAP34XX_GPMC_BASE)
  86. #define GPMC_CONFIG_CS0 0x60
  87. #define GPMC_CONFIG_CS0_BASE (GPMC_BASE + GPMC_CONFIG_CS0)
  88. #ifndef __KERNEL_STRICT_NAMES
  89. #ifndef __ASSEMBLY__
  90. struct gpmc_cs {
  91. u32 config1; /* 0x00 */
  92. u32 config2; /* 0x04 */
  93. u32 config3; /* 0x08 */
  94. u32 config4; /* 0x0C */
  95. u32 config5; /* 0x10 */
  96. u32 config6; /* 0x14 */
  97. u32 config7; /* 0x18 */
  98. u32 nand_cmd; /* 0x1C */
  99. u32 nand_adr; /* 0x20 */
  100. u32 nand_dat; /* 0x24 */
  101. u8 res[8]; /* blow up to 0x30 byte */
  102. };
  103. struct bch_res_0_3 {
  104. u32 bch_result_x[4];
  105. };
  106. struct gpmc {
  107. u8 res1[0x10];
  108. u32 sysconfig; /* 0x10 */
  109. u8 res2[0x4];
  110. u32 irqstatus; /* 0x18 */
  111. u32 irqenable; /* 0x1C */
  112. u8 res3[0x20];
  113. u32 timeout_control; /* 0x40 */
  114. u8 res4[0xC];
  115. u32 config; /* 0x50 */
  116. u32 status; /* 0x54 */
  117. u8 res5[0x8]; /* 0x58 */
  118. struct gpmc_cs cs[8]; /* 0x60, 0x90, .. */
  119. u8 res6[0x14]; /* 0x1E0 */
  120. u32 ecc_config; /* 0x1F4 */
  121. u32 ecc_control; /* 0x1F8 */
  122. u32 ecc_size_config; /* 0x1FC */
  123. u32 ecc1_result; /* 0x200 */
  124. u32 ecc2_result; /* 0x204 */
  125. u32 ecc3_result; /* 0x208 */
  126. u32 ecc4_result; /* 0x20C */
  127. u32 ecc5_result; /* 0x210 */
  128. u32 ecc6_result; /* 0x214 */
  129. u32 ecc7_result; /* 0x218 */
  130. u32 ecc8_result; /* 0x21C */
  131. u32 ecc9_result; /* 0x220 */
  132. u8 res7[0x1C]; /* fill up to 0x240 */
  133. struct bch_res_0_3 bch_result_0_3[7]; /* 0x240 */
  134. };
  135. /* Used for board specific gpmc initialization */
  136. extern struct gpmc *gpmc_cfg;
  137. #else /* __ASSEMBLY__ */
  138. #define GPMC_CONFIG1 0x00
  139. #define GPMC_CONFIG2 0x04
  140. #define GPMC_CONFIG3 0x08
  141. #define GPMC_CONFIG4 0x0C
  142. #define GPMC_CONFIG5 0x10
  143. #define GPMC_CONFIG6 0x14
  144. #define GPMC_CONFIG7 0x18
  145. #endif /* __ASSEMBLY__ */
  146. #endif /* __KERNEL_STRICT_NAMES */
  147. /* GPMC Mapping */
  148. #define FLASH_BASE 0x10000000 /* NOR flash, */
  149. /* aligned to 256 Meg */
  150. #define FLASH_BASE_SDPV1 0x04000000 /* NOR flash, */
  151. /* aligned to 64 Meg */
  152. #define FLASH_BASE_SDPV2 0x10000000 /* NOR flash, */
  153. /* aligned to 256 Meg */
  154. #define DEBUG_BASE 0x08000000 /* debug board */
  155. #define NAND_BASE 0x30000000 /* NAND addr */
  156. /* (actual size small port) */
  157. #define PISMO2_BASE 0x18000000 /* PISMO2 CS1/2 */
  158. #define ONENAND_MAP 0x20000000 /* OneNand addr */
  159. /* (actual size small port) */
  160. /* SMS */
  161. #ifndef __KERNEL_STRICT_NAMES
  162. #ifndef __ASSEMBLY__
  163. struct sms {
  164. u8 res1[0x10];
  165. u32 sysconfig; /* 0x10 */
  166. u8 res2[0x34];
  167. u32 rg_att0; /* 0x48 */
  168. u8 res3[0x84];
  169. u32 class_arb0; /* 0xD0 */
  170. };
  171. #endif /* __ASSEMBLY__ */
  172. #endif /* __KERNEL_STRICT_NAMES */
  173. #define BURSTCOMPLETE_GROUP7 (0x1 << 31)
  174. /* SDRC */
  175. #ifndef __KERNEL_STRICT_NAMES
  176. #ifndef __ASSEMBLY__
  177. struct sdrc_cs {
  178. u32 mcfg; /* 0x80 || 0xB0 */
  179. u32 mr; /* 0x84 || 0xB4 */
  180. u8 res1[0x4];
  181. u32 emr2; /* 0x8C || 0xBC */
  182. u8 res2[0x14];
  183. u32 rfr_ctrl; /* 0x84 || 0xD4 */
  184. u32 manual; /* 0xA8 || 0xD8 */
  185. u8 res3[0x4];
  186. };
  187. struct sdrc_actim {
  188. u32 ctrla; /* 0x9C || 0xC4 */
  189. u32 ctrlb; /* 0xA0 || 0xC8 */
  190. };
  191. struct sdrc {
  192. u8 res1[0x10];
  193. u32 sysconfig; /* 0x10 */
  194. u32 status; /* 0x14 */
  195. u8 res2[0x28];
  196. u32 cs_cfg; /* 0x40 */
  197. u32 sharing; /* 0x44 */
  198. u8 res3[0x18];
  199. u32 dlla_ctrl; /* 0x60 */
  200. u32 dlla_status; /* 0x64 */
  201. u32 dllb_ctrl; /* 0x68 */
  202. u32 dllb_status; /* 0x6C */
  203. u32 power; /* 0x70 */
  204. u8 res4[0xC];
  205. struct sdrc_cs cs[2]; /* 0x80 || 0xB0 */
  206. };
  207. /* EMIF4 */
  208. typedef struct emif4 {
  209. unsigned int emif_mod_id_rev;
  210. unsigned int sdram_sts;
  211. unsigned int sdram_config;
  212. unsigned int res1;
  213. unsigned int sdram_refresh_ctrl;
  214. unsigned int sdram_refresh_ctrl_shdw;
  215. unsigned int sdram_time1;
  216. unsigned int sdram_time1_shdw;
  217. unsigned int sdram_time2;
  218. unsigned int sdram_time2_shdw;
  219. unsigned int sdram_time3;
  220. unsigned int sdram_time3_shdw;
  221. unsigned char res2[8];
  222. unsigned int sdram_pwr_mgmt;
  223. unsigned int sdram_pwr_mgmt_shdw;
  224. unsigned char res3[32];
  225. unsigned int sdram_iodft_tlgc;
  226. unsigned char res4[128];
  227. unsigned int ddr_phyctrl1;
  228. unsigned int ddr_phyctrl1_shdw;
  229. unsigned int ddr_phyctrl2;
  230. } emif4_t;
  231. #endif /* __ASSEMBLY__ */
  232. #endif /* __KERNEL_STRICT_NAMES */
  233. #define DLLPHASE_90 (0x1 << 1)
  234. #define LOADDLL (0x1 << 2)
  235. #define ENADLL (0x1 << 3)
  236. #define DLL_DELAY_MASK 0xFF00
  237. #define DLL_NO_FILTER_MASK ((0x1 << 9) | (0x1 << 8))
  238. #define PAGEPOLICY_HIGH (0x1 << 0)
  239. #define SRFRONRESET (0x1 << 7)
  240. #define PWDNEN (0x1 << 2)
  241. #define WAKEUPPROC (0x1 << 26)
  242. #define DDR_SDRAM (0x1 << 0)
  243. #define DEEPPD (0x1 << 3)
  244. #define B32NOT16 (0x1 << 4)
  245. #define BANKALLOCATION (0x2 << 6)
  246. #define RAMSIZE_128 (0x40 << 8) /* RAM size in 2MB chunks */
  247. #define ADDRMUXLEGACY (0x1 << 19)
  248. #define CASWIDTH_10BITS (0x5 << 20)
  249. #define RASWIDTH_13BITS (0x2 << 24)
  250. #define BURSTLENGTH4 (0x2 << 0)
  251. #define CASL3 (0x3 << 4)
  252. #define SDRC_ACTIM_CTRL0_BASE (OMAP34XX_SDRC_BASE + 0x9C)
  253. #define SDRC_ACTIM_CTRL1_BASE (OMAP34XX_SDRC_BASE + 0xC4)
  254. #define ARE_ARCV_1 (0x1 << 0)
  255. #define ARCV (0x4e2 << 8) /* Autorefresh count */
  256. #define OMAP34XX_SDRC_CS0 0x80000000
  257. #define OMAP34XX_SDRC_CS1 0xA0000000
  258. #define CMD_NOP 0x0
  259. #define CMD_PRECHARGE 0x1
  260. #define CMD_AUTOREFRESH 0x2
  261. #define CMD_ENTR_PWRDOWN 0x3
  262. #define CMD_EXIT_PWRDOWN 0x4
  263. #define CMD_ENTR_SRFRSH 0x5
  264. #define CMD_CKE_HIGH 0x6
  265. #define CMD_CKE_LOW 0x7
  266. #define SOFTRESET (0x1 << 1)
  267. #define SMART_IDLE (0x2 << 3)
  268. #define REF_ON_IDLE (0x1 << 6)
  269. /* DMA */
  270. #ifndef __KERNEL_STRICT_NAMES
  271. #ifndef __ASSEMBLY__
  272. struct dma4_chan {
  273. u32 ccr;
  274. u32 clnk_ctrl;
  275. u32 cicr;
  276. u32 csr;
  277. u32 csdp;
  278. u32 cen;
  279. u32 cfn;
  280. u32 cssa;
  281. u32 cdsa;
  282. u32 csel;
  283. u32 csfl;
  284. u32 cdel;
  285. u32 cdfl;
  286. u32 csac;
  287. u32 cdac;
  288. u32 ccen;
  289. u32 ccfn;
  290. u32 color;
  291. };
  292. struct dma4 {
  293. u32 revision;
  294. u8 res1[0x4];
  295. u32 irqstatus_l[0x4];
  296. u32 irqenable_l[0x4];
  297. u32 sysstatus;
  298. u32 ocp_sysconfig;
  299. u8 res2[0x34];
  300. u32 caps_0;
  301. u8 res3[0x4];
  302. u32 caps_2;
  303. u32 caps_3;
  304. u32 caps_4;
  305. u32 gcr;
  306. u8 res4[0x4];
  307. struct dma4_chan chan[32];
  308. };
  309. #endif /*__ASSEMBLY__ */
  310. #endif /* __KERNEL_STRICT_NAMES */
  311. /* timer regs offsets (32 bit regs) */
  312. #ifndef __KERNEL_STRICT_NAMES
  313. #ifndef __ASSEMBLY__
  314. struct gptimer {
  315. u32 tidr; /* 0x00 r */
  316. u8 res[0xc];
  317. u32 tiocp_cfg; /* 0x10 rw */
  318. u32 tistat; /* 0x14 r */
  319. u32 tisr; /* 0x18 rw */
  320. u32 tier; /* 0x1c rw */
  321. u32 twer; /* 0x20 rw */
  322. u32 tclr; /* 0x24 rw */
  323. u32 tcrr; /* 0x28 rw */
  324. u32 tldr; /* 0x2c rw */
  325. u32 ttgr; /* 0x30 rw */
  326. u32 twpc; /* 0x34 r*/
  327. u32 tmar; /* 0x38 rw*/
  328. u32 tcar1; /* 0x3c r */
  329. u32 tcicr; /* 0x40 rw */
  330. u32 tcar2; /* 0x44 r */
  331. };
  332. #endif /* __ASSEMBLY__ */
  333. #endif /* __KERNEL_STRICT_NAMES */
  334. /* enable sys_clk NO-prescale /1 */
  335. #define GPT_EN ((0x0 << 2) | (0x1 << 1) | (0x1 << 0))
  336. /* Watchdog */
  337. #ifndef __KERNEL_STRICT_NAMES
  338. #ifndef __ASSEMBLY__
  339. struct watchdog {
  340. u8 res1[0x34];
  341. u32 wwps; /* 0x34 r */
  342. u8 res2[0x10];
  343. u32 wspr; /* 0x48 rw */
  344. };
  345. #endif /* __ASSEMBLY__ */
  346. #endif /* __KERNEL_STRICT_NAMES */
  347. #define WD_UNLOCK1 0xAAAA
  348. #define WD_UNLOCK2 0x5555
  349. /* PRCM */
  350. #define PRCM_BASE 0x48004000
  351. #ifndef __KERNEL_STRICT_NAMES
  352. #ifndef __ASSEMBLY__
  353. struct prcm {
  354. u32 fclken_iva2; /* 0x00 */
  355. u32 clken_pll_iva2; /* 0x04 */
  356. u8 res1[0x1c];
  357. u32 idlest_pll_iva2; /* 0x24 */
  358. u8 res2[0x18];
  359. u32 clksel1_pll_iva2 ; /* 0x40 */
  360. u32 clksel2_pll_iva2; /* 0x44 */
  361. u8 res3[0x8bc];
  362. u32 clken_pll_mpu; /* 0x904 */
  363. u8 res4[0x1c];
  364. u32 idlest_pll_mpu; /* 0x924 */
  365. u8 res5[0x18];
  366. u32 clksel1_pll_mpu; /* 0x940 */
  367. u32 clksel2_pll_mpu; /* 0x944 */
  368. u8 res6[0xb8];
  369. u32 fclken1_core; /* 0xa00 */
  370. u32 res_fclken2_core;
  371. u32 fclken3_core; /* 0xa08 */
  372. u8 res7[0x4];
  373. u32 iclken1_core; /* 0xa10 */
  374. u32 iclken2_core; /* 0xa14 */
  375. u32 iclken3_core; /* 0xa18 */
  376. u8 res8[0x24];
  377. u32 clksel_core; /* 0xa40 */
  378. u8 res9[0xbc];
  379. u32 fclken_gfx; /* 0xb00 */
  380. u8 res10[0xc];
  381. u32 iclken_gfx; /* 0xb10 */
  382. u8 res11[0x2c];
  383. u32 clksel_gfx; /* 0xb40 */
  384. u8 res12[0xbc];
  385. u32 fclken_wkup; /* 0xc00 */
  386. u8 res13[0xc];
  387. u32 iclken_wkup; /* 0xc10 */
  388. u8 res14[0xc];
  389. u32 idlest_wkup; /* 0xc20 */
  390. u8 res15[0x1c];
  391. u32 clksel_wkup; /* 0xc40 */
  392. u8 res16[0xbc];
  393. u32 clken_pll; /* 0xd00 */
  394. u32 clken2_pll; /* 0xd04 */
  395. u8 res17[0x18];
  396. u32 idlest_ckgen; /* 0xd20 */
  397. u32 idlest2_ckgen; /* 0xd24 */
  398. u8 res18[0x18];
  399. u32 clksel1_pll; /* 0xd40 */
  400. u32 clksel2_pll; /* 0xd44 */
  401. u32 clksel3_pll; /* 0xd48 */
  402. u32 clksel4_pll; /* 0xd4c */
  403. u32 clksel5_pll; /* 0xd50 */
  404. u8 res19[0xac];
  405. u32 fclken_dss; /* 0xe00 */
  406. u8 res20[0xc];
  407. u32 iclken_dss; /* 0xe10 */
  408. u8 res21[0x2c];
  409. u32 clksel_dss; /* 0xe40 */
  410. u8 res22[0xbc];
  411. u32 fclken_cam; /* 0xf00 */
  412. u8 res23[0xc];
  413. u32 iclken_cam; /* 0xf10 */
  414. u8 res24[0x2c];
  415. u32 clksel_cam; /* 0xf40 */
  416. u8 res25[0xbc];
  417. u32 fclken_per; /* 0x1000 */
  418. u8 res26[0xc];
  419. u32 iclken_per; /* 0x1010 */
  420. u8 res27[0x2c];
  421. u32 clksel_per; /* 0x1040 */
  422. u8 res28[0xfc];
  423. u32 clksel1_emu; /* 0x1140 */
  424. u8 res29[0x2bc];
  425. u32 fclken_usbhost; /* 0x1400 */
  426. u8 res30[0xc];
  427. u32 iclken_usbhost; /* 0x1410 */
  428. };
  429. #else /* __ASSEMBLY__ */
  430. #define CM_CLKSEL_CORE 0x48004a40
  431. #define CM_CLKSEL_GFX 0x48004b40
  432. #define CM_CLKSEL_WKUP 0x48004c40
  433. #define CM_CLKEN_PLL 0x48004d00
  434. #define CM_CLKSEL1_PLL 0x48004d40
  435. #define CM_CLKSEL1_EMU 0x48005140
  436. #endif /* __ASSEMBLY__ */
  437. #endif /* __KERNEL_STRICT_NAMES */
  438. #define PRM_BASE 0x48306000
  439. #ifndef __KERNEL_STRICT_NAMES
  440. #ifndef __ASSEMBLY__
  441. struct prm {
  442. u8 res1[0xd40];
  443. u32 clksel; /* 0xd40 */
  444. u8 res2[0x50c];
  445. u32 rstctrl; /* 0x1250 */
  446. u8 res3[0x1c];
  447. u32 clksrc_ctrl; /* 0x1270 */
  448. };
  449. #endif /* __ASSEMBLY__ */
  450. #endif /* __KERNEL_STRICT_NAMES */
  451. #define PRM_RSTCTRL 0x48307250
  452. #define PRM_RSTCTRL_RESET 0x04
  453. #define PRM_RSTST 0x48307258
  454. #define PRM_RSTST_WARM_RESET_MASK 0x7D2
  455. #define SYSCLKDIV_1 (0x1 << 6)
  456. #define SYSCLKDIV_2 (0x1 << 7)
  457. #define CLKSEL_GPT1 (0x1 << 0)
  458. #define EN_GPT1 (0x1 << 0)
  459. #define EN_32KSYNC (0x1 << 2)
  460. #define ST_WDT2 (0x1 << 5)
  461. #define ST_MPU_CLK (0x1 << 0)
  462. #define ST_CORE_CLK (0x1 << 0)
  463. #define ST_PERIPH_CLK (0x1 << 1)
  464. #define ST_IVA2_CLK (0x1 << 0)
  465. #define RESETDONE (0x1 << 0)
  466. #define TCLR_ST (0x1 << 0)
  467. #define TCLR_AR (0x1 << 1)
  468. #define TCLR_PRE (0x1 << 5)
  469. /* SMX-APE */
  470. #define PM_RT_APE_BASE_ADDR_ARM (SMX_APE_BASE + 0x10000)
  471. #define PM_GPMC_BASE_ADDR_ARM (SMX_APE_BASE + 0x12400)
  472. #define PM_OCM_RAM_BASE_ADDR_ARM (SMX_APE_BASE + 0x12800)
  473. #define PM_IVA2_BASE_ADDR_ARM (SMX_APE_BASE + 0x14000)
  474. #ifndef __KERNEL_STRICT_NAMES
  475. #ifndef __ASSEMBLY__
  476. struct pm {
  477. u8 res1[0x48];
  478. u32 req_info_permission_0; /* 0x48 */
  479. u8 res2[0x4];
  480. u32 read_permission_0; /* 0x50 */
  481. u8 res3[0x4];
  482. u32 wirte_permission_0; /* 0x58 */
  483. u8 res4[0x4];
  484. u32 addr_match_1; /* 0x58 */
  485. u8 res5[0x4];
  486. u32 req_info_permission_1; /* 0x68 */
  487. u8 res6[0x14];
  488. u32 addr_match_2; /* 0x80 */
  489. };
  490. #endif /*__ASSEMBLY__ */
  491. #endif /* __KERNEL_STRICT_NAMES */
  492. /* Permission values for registers -Full fledged permissions to all */
  493. #define UNLOCK_1 0xFFFFFFFF
  494. #define UNLOCK_2 0x00000000
  495. #define UNLOCK_3 0x0000FFFF
  496. #define NOT_EARLY 0
  497. /* I2C base */
  498. #define I2C_BASE1 (OMAP34XX_CORE_L4_IO_BASE + 0x70000)
  499. #define I2C_BASE2 (OMAP34XX_CORE_L4_IO_BASE + 0x72000)
  500. #define I2C_BASE3 (OMAP34XX_CORE_L4_IO_BASE + 0x60000)
  501. /* MUSB base */
  502. #define MUSB_BASE (OMAP34XX_CORE_L4_IO_BASE + 0xAB000)
  503. /* OMAP3 GPIO registers */
  504. #define OMAP_GPIO_REVISION 0x0000
  505. #define OMAP_GPIO_SYSCONFIG 0x0010
  506. #define OMAP_GPIO_SYSSTATUS 0x0014
  507. #define OMAP_GPIO_IRQSTATUS1 0x0018
  508. #define OMAP_GPIO_IRQSTATUS2 0x0028
  509. #define OMAP_GPIO_IRQENABLE2 0x002c
  510. #define OMAP_GPIO_IRQENABLE1 0x001c
  511. #define OMAP_GPIO_WAKE_EN 0x0020
  512. #define OMAP_GPIO_CTRL 0x0030
  513. #define OMAP_GPIO_OE 0x0034
  514. #define OMAP_GPIO_DATAIN 0x0038
  515. #define OMAP_GPIO_DATAOUT 0x003c
  516. #define OMAP_GPIO_LEVELDETECT0 0x0040
  517. #define OMAP_GPIO_LEVELDETECT1 0x0044
  518. #define OMAP_GPIO_RISINGDETECT 0x0048
  519. #define OMAP_GPIO_FALLINGDETECT 0x004c
  520. #define OMAP_GPIO_DEBOUNCE_EN 0x0050
  521. #define OMAP_GPIO_DEBOUNCE_VAL 0x0054
  522. #define OMAP_GPIO_CLEARIRQENABLE1 0x0060
  523. #define OMAP_GPIO_SETIRQENABLE1 0x0064
  524. #define OMAP_GPIO_CLEARWKUENA 0x0080
  525. #define OMAP_GPIO_SETWKUENA 0x0084
  526. #define OMAP_GPIO_CLEARDATAOUT 0x0090
  527. #define OMAP_GPIO_SETDATAOUT 0x0094
  528. #endif /* _CPU_H */