reg2440.a
上传用户:qiulin1960
上传日期:2013-10-16
资源大小:2844k
文件大小:25k
源码类别:

Windows CE

开发平台:

Windows_Unix

  1. ;******************************************************************************
  2. ;*
  3. ;* System On Chip(SOC)
  4. ;*
  5. ;* Copyright (c) 2002 Software Center, Samsung Electronics, Inc.
  6. ;* All rights reserved.
  7. ;*
  8. ;* This software is the confidential and proprietary information of Samsung 
  9. ;* Electronics, Inc("Confidential Information"). You Shall not disclose such 
  10. ;* Confidential Information and shall use it only in accordance with the terms 
  11. ;* of the license agreement you entered into Samsung.
  12. ;*
  13. ;*-----------------------------------------------------------------------------
  14. ;*
  15. ;* S3C2440 BSP
  16. ;*
  17. ;* 2440.a : S3C2440's Register map (non-translated by MMU) & 
  18. ;* Memory Configuration Table
  19. ;*
  20. ;* @author zartoven@samsung.com (SOC, SWC, SAMSUNG Electronics)
  21. ;*
  22. ;* @date 2002/04/04
  23. ;* 
  24. ;* Log:
  25. ;*      2002/04/04  Start
  26. ;*      
  27. ;******************************************************************************
  28. ;******************************************************************************
  29. ; Memory control 
  30. ;******************************************************************************
  31. BWSCON EQU 0x48000000 ;Bus width & wait status
  32. BANKCON0 EQU 0x48000004 ;Boot ROM control
  33. BANKCON1 EQU 0x48000008 ;BANK1 control
  34. BANKCON2 EQU 0x4800000c ;BANK2 cControl
  35. BANKCON3 EQU 0x48000010 ;BANK3 control
  36. BANKCON4 EQU 0x48000014 ;BANK4 control
  37. BANKCON5 EQU 0x48000018 ;BANK5 control
  38. BANKCON6 EQU 0x4800001c ;BANK6 control
  39. BANKCON7 EQU 0x48000020 ;BANK7 control
  40. REFRESH EQU 0x48000024 ;DRAM/SDRAM refresh
  41. BANKSIZE EQU 0x48000028 ;Flexible Bank Size
  42. MRSRB6 EQU 0x4800002c ;Mode register set for SDRAM
  43. MRSRB7 EQU 0x48000030 ;Mode register set for SDRAM
  44. vREFRESH EQU 0xB0800024 ;DRAM/SDRAM refresh
  45. ;******************************************************************************
  46. ; INTERRUPT
  47. ;******************************************************************************
  48. SRCPND EQU 0x4a000000 ;Interrupt request status
  49. INTMOD EQU 0x4a000004 ;Interrupt mode control
  50. INTMSK EQU 0x4a000008 ;Interrupt mask control
  51. PRIORITY EQU 0x4a00000c ;IRQ priority control
  52. INTPND EQU 0x4a000010 ;Interrupt request status
  53. INTOFFSET EQU 0x4a000014 ;Interruot request source offset
  54. SUSSRCPND EQU 0x4a000018 ;Sub source pending
  55. INTSUBMSK EQU 0x4a00001c ;Interrupt sub mask
  56. vSRCPND EQU 0xb0a00000 ;Interrupt request status
  57. vINTMOD EQU 0xb0a00004 ;Interrupt mode control
  58. vINTMSK EQU 0xb0a00008 ;Interrupt mask control
  59. vPRIORITY EQU 0xb0a0000c ;IRQ priority control
  60. vINTPND EQU 0xb0a00010 ;Interrupt request status
  61. vINTOFFSET EQU 0xb0a00014 ;Interruot request source offset
  62. vSUSSRCPND EQU 0xb0a00018 ;Sub source pending
  63. vINTSUBMSK EQU 0xb0a0001c ;Interrupt sub mask
  64. vINTBASE EQU 0xb0a00000 ;Interrupt request status
  65. oSRCPND EQU 0x00         ;Interrupt request status
  66. oINTMSK EQU 0x08         ;Interrupt mask control
  67. oINTPND EQU 0x10         ;Interrupt request status
  68. oINTSUBMSK EQU 0x1c         ;Interrupt sub mask
  69. ;******************************************************************************
  70. ; DMA
  71. ;******************************************************************************
  72. DISRC0 EQU 0x4b000000 ;DMA 0 Initial source
  73. DISRCC0 EQU 0x4b000004 ;DMA 0 Initial source control
  74. DIDST0 EQU 0x4b000008 ;DMA 0 Initial Destination
  75. DIDSTC0 EQU 0x4b00000c ;DMA 0 Initial Destination control
  76. DCON0 EQU 0x4b000010 ;DMA 0 Control
  77. DSTAT0 EQU 0x4b000014 ;DMA 0 Status
  78. DCSRC0 EQU 0x4b000018 ;DMA 0 Current source
  79. DCDST0 EQU 0x4b00001c ;DMA 0 Current destination
  80. DMASKTRIG0 EQU 0x4b000020 ;DMA 0 Mask trigger
  81. DISRC1 EQU 0x4b000040 ;DMA 1 Initial source
  82. DISRCC1 EQU 0x4b000044 ;DMA 1 Initial source control
  83. DIDST1 EQU 0x4b000048 ;DMA 1 Initial Destination
  84. DIDSTC1 EQU 0x4b00004c ;DMA 1 Initial Destination control
  85. DCON1 EQU 0x4b000050 ;DMA 1 Control
  86. DSTAT1 EQU 0x4b000054 ;DMA 1 Status
  87. DCSRC1 EQU 0x4b000058 ;DMA 1 Current source
  88. DCDST1 EQU 0x4b00005c ;DMA 1 Current destination
  89. DMASKTRIG1 EQU 0x4b000060 ;DMA 1 Mask trigger
  90. DISRC2 EQU 0x4b000080 ;DMA 2 Initial source
  91. DISRCC2 EQU 0x4b000084 ;DMA 2 Initial source control
  92. DIDST2 EQU 0x4b000088 ;DMA 2 Initial Destination
  93. DIDSTC2 EQU 0x4b00008c ;DMA 2 Initial Destination control
  94. DCON2 EQU 0x4b000090 ;DMA 2 Control
  95. DSTAT2 EQU 0x4b000094 ;DMA 2 Status
  96. DCSRC2 EQU 0x4b000098 ;DMA 2 Current source
  97. DCDST2 EQU 0x4b00009c ;DMA 2 Current destination
  98. DMASKTRIG2 EQU 0x4b0000a0 ;DMA 2 Mask trigger
  99. DISRC3 EQU 0x4b0000c0 ;DMA 3 Initial source
  100. DISRCC3 EQU 0x4b0000c4 ;DMA 3 Initial source control
  101. DIDST3 EQU 0x4b0000c8 ;DMA 3 Initial Destination
  102. DIDSTC3 EQU 0x4b0000cc ;DMA 3 Initial Destination control
  103. DCON3 EQU 0x4b0000d0 ;DMA 3 Control
  104. DSTAT3 EQU 0x4b0000d4 ;DMA 3 Status
  105. DCSRC3 EQU 0x4b0000d8 ;DMA 3 Current source
  106. DCDST3 EQU 0x4b0000dc ;DMA 3 Current destination
  107. DMASKTRIG3 EQU 0x4b0000e0 ;DMA 3 Mask trigger
  108. ;******************************************************************************=========
  109. ; CLOCK & POWER MANAGEMENT
  110. ;******************************************************************************=========
  111. LOCKTIME EQU 0x4c000000 ;PLL lock time counter
  112. MPLLCON EQU 0x4c000004 ;MPLL Control
  113. UPLLCON EQU 0x4c000008 ;UPLL Control
  114. CLKCON EQU 0x4c00000c ;Clock generator control
  115. CLKSLOW EQU 0x4c000010 ;Slow clock control
  116. CLKDIVN EQU 0x4c000014 ;Clock divider control
  117. CAMDIVN EQU 0x4c000018
  118. vMPLLCON EQU 0xb0c00004 ;MPLL Control
  119. vCLKCON EQU 0xb0c0000c ;Clock generator control
  120. vCLKDIVN EQU 0xb0c00014 ;Clock divider control
  121. vCAMDIVN EQU 0xb0c00018 ;Camera Clock divider control
  122. ;******************************************************************************
  123. ; LCD CONTROLLER
  124. ;******************************************************************************
  125. LCDCON1 EQU 0x4d000000 ;LCD control 1
  126. LCDCON2 EQU 0x4d000004 ;LCD control 2
  127. LCDCON3 EQU 0x4d000008 ;LCD control 3
  128. LCDCON4 EQU 0x4d00000c ;LCD control 4
  129. LCDCON5 EQU 0x4d000010 ;LCD control 5
  130. LCDSADDR1 EQU 0x4d000014 ;STN/TFT Frame buffer start address 1
  131. LCDSADDR2 EQU 0x4d000018 ;STN/TFT Frame buffer start address 2
  132. LCDSADDR3 EQU 0x4d00001c ;STN/TFT Virtual screen address set
  133. REDLUT EQU 0x4d000020 ;STN Red lookup table
  134. GREENLUT EQU 0x4d000024 ;STN Green lookup table 
  135. BLUELUT EQU 0x4d000028 ;STN Blue lookup table
  136. DITHMODE EQU 0x4d00004c ;STN Dithering mode
  137. TPAL EQU 0x4d000050 ;TFT Temporary palette
  138. LCDINTPND EQU 0x4d000054 ;LCD Interrupt pending
  139. LCDSRCPND EQU 0x4d000058 ;LCD Interrupt source
  140. LCDINTMSK EQU 0x4d00005c ;LCD Interrupt mask
  141. ;LPCSEL EQU 0x4d000060 ;LPC3600 Control
  142. TCONSEL EQU 0x4d000060 ;LPC3600 Control ;;; SHL
  143. ;vLCDCON1 EQU 0x90d00000 ;LCD control 1
  144. ;******************************************************************************
  145. ; NAND flash
  146. ;******************************************************************************
  147. NFCONF EQU 0x4e000000 ;NAND Flash configuration
  148. NFCMD EQU 0x4e000004 ;NADD Flash command
  149. NFADDR EQU 0x4e000008 ;NAND Flash address
  150. NFDATA EQU 0x4e00000c ;NAND Flash data
  151. NFSTAT EQU 0x4e000010 ;NAND Flash operation status
  152. NFECC EQU 0x4e000014 ;NAND Flash ECC
  153. ;******************************************************************************
  154. ; UART
  155. ;******************************************************************************
  156. ULCON0 EQU 0x50000000 ;UART 0 Line control
  157. UCON0 EQU 0x50000004 ;UART 0 Control
  158. UFCON0 EQU 0x50000008 ;UART 0 FIFO control
  159. UMCON0 EQU 0x5000000c ;UART 0 Modem control
  160. UTRSTAT0 EQU 0x50000010 ;UART 0 Tx/Rx status
  161. UERSTAT0 EQU 0x50000014 ;UART 0 Rx error status
  162. UFSTAT0 EQU 0x50000018 ;UART 0 FIFO status
  163. UMSTAT0 EQU 0x5000001c ;UART 0 Modem status
  164. UBRDIV0 EQU 0x50000028 ;UART 0 Baud rate divisor
  165. ULCON1 EQU 0x50004000 ;UART 1 Line control
  166. UCON1 EQU 0x50004004 ;UART 1 Control
  167. UFCON1 EQU 0x50004008 ;UART 1 FIFO control
  168. UMCON1 EQU 0x5000400c ;UART 1 Modem control
  169. UTRSTAT1 EQU 0x50004010 ;UART 1 Tx/Rx status
  170. UERSTAT1 EQU 0x50004014 ;UART 1 Rx error status
  171. UFSTAT1 EQU 0x50004018 ;UART 1 FIFO status
  172. UMSTAT1 EQU 0x5000401c ;UART 1 Modem status
  173. UBRDIV1 EQU 0x50004028 ;UART 1 Baud rate divisor
  174. ULCON2 EQU 0x50008000 ;UART 2 Line control
  175. UCON2 EQU 0x50008004 ;UART 2 Control
  176. UFCON2 EQU 0x50008008 ;UART 2 FIFO control
  177. UMCON2 EQU 0x5000800c ;UART 2 Modem control
  178. UTRSTAT2 EQU 0x50008010 ;UART 2 Tx/Rx status
  179. UERSTAT2 EQU 0x50008014 ;UART 2 Rx error status
  180. UFSTAT2 EQU 0x50008018 ;UART 2 FIFO status
  181. UMSTAT2 EQU 0x5000801c ;UART 2 Modem status
  182. UBRDIV2 EQU 0x50008028 ;UART 2 Baud rate divisor
  183. UTXH0 EQU 0x50000020 ;UART 0 Transmission Hold
  184. URXH0 EQU 0x50000024 ;UART 0 Receive buffer
  185. UTXH1 EQU 0x50004020 ;UART 1 Transmission Hold
  186. URXH1 EQU 0x50004024 ;UART 1 Receive buffer
  187. UTXH2 EQU 0x50008020 ;UART 2 Transmission Hold
  188. URXH2 EQU 0x50008024 ;UART 2 Receive buffer
  189. ;******************************************************************************
  190. ; PWM TIMER
  191. ;******************************************************************************
  192. TCFG0 EQU 0x51000000      ;Timer 0 configuration
  193. TCFG1 EQU 0x51000004      ;Timer 1 configuration
  194. TCON EQU 0x51000008      ;Timer control
  195. TCNTB0 EQU 0x5100000c      ;Timer count buffer 0
  196. TCMPB0 EQU 0x51000010      ;Timer compare buffer 0
  197. TCNTO0 EQU 0x51000014      ;Timer count observation 0
  198. TCNTB1 EQU 0x51000018      ;Timer count buffer 1
  199. TCMPB1 EQU 0x5100001c      ;Timer compare buffer 1
  200. TCNTO1 EQU 0x51000020      ;Timer count observation 1
  201. TCNTB2 EQU 0x51000024      ;Timer count buffer 2
  202. TCMPB2 EQU 0x51000028      ;Timer compare buffer 2
  203. TCNTO2 EQU 0x5100002c      ;Timer count observation 2
  204. TCNTB3 EQU 0x51000030      ;Timer count buffer 3
  205. TCMPB3 EQU 0x51000034      ;Timer compare buffer 3
  206. TCNTO3 EQU 0x51000038      ;Timer count observation 3
  207. TCNTB4 EQU 0x5100003c      ;Timer count buffer 4
  208. TCNTO4 EQU 0x51000040      ;Timer count observation 4
  209. ;******************************************************************************
  210. ; USB DEVICE
  211. ;******************************************************************************
  212. FUNC_ADDR_REG       EQU  0x52000140     ;Function address
  213. PWR_REG             EQU  0x52000144     ;Power management
  214. EP_INT_REG          EQU  0x52000148     ;EP Interrupt pending and clear
  215. USB_INT_REG         EQU  0x52000158     ;USB Interrupt pending and clear
  216. EP_INT_EN_REG       EQU  0x5200015c     ;Interrupt enable
  217. USB_INT_EN_REG      EQU  0x5200016c
  218. FRAME_NUM1_REG      EQU  0x52000170     ;Frame number lower byte
  219. FRAME_NUM2_REG      EQU  0x52000174     ;Frame number lower byte
  220. INDEX_REG           EQU  0x52000178     ;Register index
  221. MAXP_REG            EQU  0x52000180     ;Endpoint max packet
  222. EP0_CSR             EQU  0x52000184     ;Endpoint 0 status
  223. IN_CSR1_REG         EQU  0x52000184     ;In endpoint control status
  224. IN_CSR2_REG         EQU  0x52000188
  225. OUT_CSR1_REG        EQU  0x52000190     ;Out endpoint control status
  226. OUT_CSR2_REG        EQU  0x52000194
  227. OUT_FIFO_CNT1_REG   EQU  0x52000198     ;Endpoint out write count
  228. OUT_FIFO_CNT2_REG   EQU  0x5200019c
  229. EP0_FIFO            EQU  0x520001c0     ;Endpoint 0 FIFO
  230. EP1_FIFO            EQU  0x520001c4     ;Endpoint 1 FIFO
  231. EP2_FIFO            EQU  0x520001c8     ;Endpoint 2 FIFO
  232. EP3_FIFO            EQU  0x520001cc     ;Endpoint 3 FIFO
  233. EP4_FIFO            EQU  0x520001d0     ;Endpoint 4 FIFO
  234. EP1_DMA_CON         EQU  0x52000200     ;EP1 DMA interface control
  235. EP1_DMA_UNIT        EQU  0x52000204     ;EP1 DMA Tx unit counter
  236. EP1_DMA_FIFO        EQU  0x52000208     ;EP1 DMA Tx FIFO counter
  237. EP1_DMA_TTC_L       EQU  0x5200020c     ;EP1 DMA total Tx counter
  238. EP1_DMA_TTC_M       EQU  0x52000210
  239. EP1_DMA_TTC_H       EQU  0x52000214
  240. EP2_DMA_CON         EQU  0x52000218     ;EP2 DMA interface control
  241. EP2_DMA_UNIT        EQU  0x5200021c     ;EP2 DMA Tx unit counter
  242. EP2_DMA_FIFO        EQU  0x52000220     ;EP2 DMA Tx FIFO counter
  243. EP2_DMA_TTC_L       EQU  0x52000224     ;EP2 DMA total Tx counter
  244. EP2_DMA_TTC_M       EQU  0x52000228
  245. EP2_DMA_TTC_H       EQU  0x5200022c
  246. EP3_DMA_CON         EQU  0x52000240     ;EP3 DMA interface control
  247. EP3_DMA_UNIT        EQU  0x52000244     ;EP3 DMA Tx unit counter
  248. EP3_DMA_FIFO        EQU  0x52000248     ;EP3 DMA Tx FIFO counter
  249. EP3_DMA_TTC_L       EQU  0x5200024c     ;EP3 DMA total Tx counter
  250. EP3_DMA_TTC_M       EQU  0x52000250
  251. EP3_DMA_TTC_H       EQU  0x52000254
  252. EP4_DMA_CON         EQU  0x52000258     ;EP4 DMA interface control
  253. EP4_DMA_UNIT        EQU  0x5200025c     ;EP4 DMA Tx unit counter
  254. EP4_DMA_FIFO        EQU  0x52000260     ;EP4 DMA Tx FIFO counter
  255. EP4_DMA_TTC_L       EQU  0x52000264     ;EP4 DMA total Tx counter
  256. EP4_DMA_TTC_M       EQU  0x52000268
  257. EP4_DMA_TTC_H       EQU  0x5200026c
  258. ;******************************************************************************
  259. ; WATCH DOG TIMER
  260. ;******************************************************************************
  261. WTCON EQU 0x53000000      ;Watch-dog timer mode
  262. WTDAT EQU 0x53000004      ;Watch-dog timer data
  263. WTCNT EQU 0x53000008      ;Eatch-dog timer count
  264. vWTCON EQU 0xB1300000      ;Watch-dog timer mode
  265. vWTDAT EQU 0xB1300004      ;Watch-dog timer data
  266. vWTCNT EQU 0xB1300008      ;Eatch-dog timer count
  267. ;******************************************************************************
  268. ; IIC
  269. ;******************************************************************************
  270. IICCON EQU 0x54000000 ;IIC control
  271. IICSTAT EQU 0x54000004      ;IIC status
  272. IICADD EQU 0x54000008      ;IIC address
  273. IICDS EQU 0x5400000c      ;IIC data shift
  274. ;******************************************************************************
  275. ; IIS
  276. ;******************************************************************************
  277. IISCON EQU 0x55000000      ;IIS Control
  278. IISMOD EQU 0x55000004      ;IIS Mode
  279. IISPSR EQU 0x55000008      ;IIS Prescaler
  280. IISFCON EQU 0x5500000c      ;IIS FIFO control
  281. IISFIFO EQU 0x55000010      ;IIS FIFO entry
  282. ;******************************************************************************
  283. ; I/O PORT 
  284. ;******************************************************************************
  285. GPACON EQU 0x56000000 ;Port A control
  286. GPADAT EQU 0x56000004 ;Port A data
  287.        
  288. GPBCON EQU 0x56000010 ;Port B control
  289. GPBDAT EQU 0x56000014 ;Port B data
  290. GPBUP EQU 0x56000018 ;Pull-up control B
  291.        
  292. GPCCON EQU 0x56000020 ;Port C control
  293. GPCDAT EQU 0x56000024 ;Port C data
  294. GPCUP EQU 0x56000028 ;Pull-up control C
  295.        
  296. GPDCON EQU 0x56000030 ;Port D control
  297. GPDDAT EQU 0x56000034 ;Port D data
  298. GPDUP EQU 0x56000038 ;Pull-up control D
  299.        
  300. GPECON EQU 0x56000040 ;Port E control
  301. GPEDAT EQU 0x56000044 ;Port E data
  302. GPEUP EQU 0x56000048 ;Pull-up control E
  303.        
  304. GPFCON EQU 0x56000050 ;Port F control
  305. GPFDAT EQU 0x56000054 ;Port F data
  306. GPFUP EQU 0x56000058 ;Pull-up control F
  307.        
  308. GPGCON EQU 0x56000060 ;Port G control
  309. GPGDAT EQU 0x56000064 ;Port G data
  310. GPGUP EQU 0x56000068 ;Pull-up control G
  311.        
  312. GPHCON EQU 0x56000070 ;Port H control
  313. GPHDAT EQU 0x56000074 ;Port H data
  314. GPHUP EQU 0x56000078 ;Pull-up control H
  315.        
  316. MISCCR EQU 0x56000080 ;Miscellaneous control
  317. DCKCON EQU 0x56000084 ;DCLK0/1 control
  318. EXTINT0 EQU 0x56000088 ;External interrupt control register 0
  319. EXTINT1 EQU 0x5600008c ;External interrupt control register 1
  320. EXTINT2 EQU 0x56000090 ;External interrupt control register 2
  321. EINTFLT0 EQU 0x56000094 ;Reserved
  322. EINTFLT1 EQU 0x56000098 ;Reserved
  323. EINTFLT2 EQU 0x5600009c ;External interrupt filter control register 2
  324. EINTFLT3 EQU 0x560000a0 ;External interrupt filter control register 3
  325. EINTMASK EQU 0x560000a4 ;External interrupt mask
  326. EINTPEND EQU 0x560000a8 ;External interrupt pending
  327. GSTATUS0 EQU 0x560000ac ;External pin status
  328. GSTATUS1 EQU 0x560000b0 ;Chip ID(0x32410000)
  329. GSTATUS2 EQU 0x560000b4 ;Reset type
  330. GSTATUS3 EQU 0x560000b8 ;Saved data0(32-bit) before entering POWER_OFF mode 
  331. GSTATUS4 EQU 0x560000bc ;Saved data1(32-bit) before entering POWER_OFF mode
  332. vGPFDAT EQU 0xb1600054 ;Port F data
  333. vGPIOBASE EQU 0xb1600000 ;Port A control
  334. oGPACON EQU 0x00
  335. oGPADAT EQU 0x04            ;Port A data
  336.   
  337. oGPBCON EQU 0x10            ;Port B control
  338. oGPBDAT EQU 0x14            ;Port B data
  339. oGPBUP EQU 0x18            ;Pull-up control B
  340.   
  341. oGPCCON EQU 0x20            ;Port C control
  342. oGPCDAT EQU 0x24            ;Port C data
  343. oGPCUP EQU 0x28            ;Pull-up control C
  344.   
  345. oGPDCON EQU 0x30            ;Port D control
  346. oGPDDAT EQU 0x34            ;Port D data
  347. oGPDUP EQU 0x38            ;Pull-up control D
  348.   
  349. oGPECON EQU 0x40            ;Port E control
  350. oGPEDAT EQU 0x44            ;Port E data
  351. oGPEUP EQU 0x48            ;Pull-up control E
  352.   
  353. oGPFCON EQU 0x50            ;Port F control
  354. oGPFDAT EQU 0x54            ;Port F data
  355. oGPFUP EQU 0x58            ;Pull-up control F
  356.   
  357. oGPGCON EQU 0x60            ;Port G control
  358. oGPGDAT EQU 0x64            ;Port G data
  359. oGPGUP EQU 0x68            ;Pull-up control G
  360.   
  361. oGPHCON EQU 0x70            ;Port H control
  362. oGPHDAT EQU 0x74            ;Port H data
  363. oGPHUP EQU 0x78            ;Pull-up control H
  364.   
  365. oMISCCR EQU 0x80            ;Miscellaneous control
  366. oDCKCON EQU 0x84            ;DCLK0/1 control
  367. oEXTINT0 EQU 0x88            ;External interrupt control register 0
  368. oEXTINT1 EQU 0x8c            ;External interrupt control register 1
  369. oEXTINT2 EQU 0x90            ;External interrupt control register 2
  370. oEINTFLT0 EQU 0x94            ;Reserved
  371. oEINTFLT1 EQU 0x98            ;Reserved
  372. oEINTFLT2 EQU 0x9c            ;External interrupt filter control register 2
  373. oEINTFLT3 EQU 0xa0            ;External interrupt filter control register 3
  374. oEINTMASK EQU 0xa4            ;External interrupt mask
  375. oEINTPEND EQU 0xa8            ;External interrupt pending
  376. oGSTATUS0 EQU 0xac            ;External pin status
  377. oGSTATUS1 EQU 0xb0            ;Chip ID(0x32410000)
  378. oGSTATUS2 EQU 0xb4            ;Reset type
  379. oGSTATUS3 EQU 0xb8            ;Saved data0(32-bit) before entering POWER_OFF mode 
  380. oGSTATUS4 EQU 0xbc            ;Saved data1(32-bit) before entering POWER_OFF mode
  381. vMISCCR EQU 0xb1600080 ;Miscellaneous control
  382. ;******************************************************************************
  383. ; RTC
  384. ;******************************************************************************
  385. RTCCON EQU 0x57000040      ;RTC control
  386. TICNT EQU 0x57000044      ;Tick time count
  387. RTCALM EQU 0x57000050      ;RTC alarm control
  388. ALMSEC EQU 0x57000054      ;Alarm second
  389. ALMMIN EQU 0x57000058      ;Alarm minute
  390. ALMHOUR EQU 0x5700005c      ;Alarm Hour
  391. ALMDAY EQU 0x57000060      ;Alarm day
  392. ALMMON EQU 0x57000064      ;Alarm month
  393. ALMYEAR EQU 0x57000068      ;Alarm year
  394. RTCRST EQU 0x5700006c      ;RTC round reset
  395. BCDSEC EQU 0x57000070      ;BCD second
  396. BCDMIN EQU 0x57000074      ;BCD minute
  397. BCDHOUR EQU 0x57000078      ;BCD hour
  398. BCDDAY EQU 0x5700007c      ;BCD day
  399. BCDDATE EQU 0x57000080      ;BCD date
  400. BCDMON EQU 0x57000084      ;BCD month
  401. BCDYEAR EQU 0x57000088      ;BCD year
  402. ;******************************************************************************
  403. ; ADC
  404. ;******************************************************************************
  405. ADCCON EQU 0x58000000 ;ADC control
  406. ADCTSC EQU 0x58000004 ;ADC touch screen control
  407. ADCDLY EQU 0x58000008 ;ADC start or Interval Delay
  408. ADCDAT0 EQU 0x5800000c ;ADC conversion data 0
  409. ADCDAT1 EQU 0x58000010 ;ADC conversion data 1                     
  410. ADCUPDN EQU 0x58000014 ;AEC touch screen up-down ;;; SHL
  411. ;******************************************************************************                      
  412. ; SPI           
  413. ;******************************************************************************
  414. SPCON0 EQU 0x59000000 ;SPI0 control
  415. SPSTA0 EQU 0x59000004 ;SPI0 status
  416. SPPIN0 EQU 0x59000008 ;SPI0 pin control
  417. SPPRE0 EQU 0x5900000c ;SPI0 baud rate prescaler
  418. SPTDAT0 EQU 0x59000010 ;SPI0 Tx data
  419. SPRDAT0 EQU 0x59000014 ;SPI0 Rx data
  420. SPCON1 EQU 0x59000020 ;SPI1 control
  421. SPSTA1 EQU 0x59000024 ;SPI1 status
  422. SPPIN1 EQU 0x59000028 ;SPI1 pin control
  423. SPPRE1 EQU 0x5900002c ;SPI1 baud rate prescaler
  424. SPTDAT1 EQU 0x59000030 ;SPI1 Tx data
  425. SPRDAT1 EQU 0x59000034 ;SPI1 Rx data
  426. ;******************************************************************************
  427. ; SD Interface
  428. ;******************************************************************************
  429. SDICON EQU 0x5a000000 ;SDI control
  430. SDIPRE EQU 0x5a000000 ;SDI baud rate prescaler
  431. SDICmdArg EQU 0x5a000000 ;SDI command argument
  432. SDICmdCon EQU 0x5a000000 ;SDI command control
  433. SDICmdSta EQU 0x5a000000 ;SDI command status
  434. SDIRSP0 EQU 0x5a000000 ;SDI response 0
  435. SDIRSP1 EQU 0x5a000000 ;SDI response 1
  436. SDIRSP2 EQU 0x5a000000 ;SDI response 2
  437. SDIRSP3 EQU 0x5a000000 ;SDI response 3
  438. SDIDTimer EQU 0x5a000000 ;SDI data/busy timer
  439. SDIBSize EQU 0x5a000000 ;SDI block size
  440. SDIDatCon EQU 0x5a000000 ;SDI data control
  441. SDIDatCnt EQU 0x5a000000 ;SDI data remain counter
  442. SDIDatSta EQU 0x5a000000 ;SDI data status
  443. SDIFSTA EQU 0x5a000000 ;SDI FIFO status
  444. SDIIntMsk EQU 0x5a000000 ;SDI interrupt mask
  445. SDIDAT EQU 0x5a00003c ;SDI data
  446.             
  447. ;******************************************************************************
  448. ; PENDING BIT
  449. ;******************************************************************************
  450. BIT_EINT0 EQU (0x1)
  451. BIT_EINT1 EQU (0x1<<1)
  452. BIT_EINT2 EQU (0x1<<2)
  453. BIT_EINT3 EQU (0x1<<3)
  454. BIT_EINT4_7 EQU (0x1<<4)
  455. BIT_EINT8_23 EQU (0x1<<5)
  456. ;BIT_NOTUSED6 EQU (0x1<<6)
  457. BIT_CAM EQU (0x1<<6) ;;; SHL
  458. BIT_BAT_FLT EQU (0x1<<7)
  459. BIT_TICK EQU (0x1<<8)
  460. BIT_WDT_AC97 EQU (0x1<<9)
  461. BIT_TIMER0 EQU (0x1<<10)
  462. BIT_TIMER1 EQU (0x1<<11)
  463. BIT_TIMER2 EQU (0x1<<12)
  464. BIT_TIMER3 EQU (0x1<<13)
  465. BIT_TIMER4 EQU (0x1<<14)
  466. BIT_UART2 EQU (0x1<<15)
  467. BIT_LCD EQU (0x1<<16)
  468. BIT_DMA0 EQU (0x1<<17)
  469. BIT_DMA1 EQU (0x1<<18)
  470. BIT_DMA2 EQU (0x1<<19)
  471. BIT_DMA3 EQU (0x1<<20)
  472. BIT_SDI EQU (0x1<<21)
  473. BIT_SPI0 EQU (0x1<<22)
  474. BIT_UART1 EQU (0x1<<23)
  475. ;BIT_NOTUSED24 EQU (0x1<<24)
  476. BIT_NFCON EQU (0x1<<24)
  477. BIT_USBD EQU (0x1<<25)
  478. BIT_USBH EQU (0x1<<26)
  479. BIT_IIC EQU (0x1<<27)
  480. BIT_UART0 EQU (0x1<<28)
  481. BIT_SPI1 EQU (0x1<<29)
  482. BIT_RTC EQU (0x1<<30)
  483. BIT_ADC EQU (0x1<<31)
  484. BIT_ALLMSK EQU (0xffffffff)
  485. ;******************************************************************************
  486. ; Memory Configuration
  487. ;******************************************************************************
  488. DW8 EQU (0x0)
  489. DW16 EQU (0x1)
  490. DW32 EQU (0x2)
  491. WAIT EQU (0x1<<2)
  492. UBLB EQU (0x1<<3)
  493. B1_BWSCON EQU (DW32)
  494. B2_BWSCON EQU (DW16)
  495. B3_BWSCON EQU (DW16 + WAIT + UBLB)
  496. B4_BWSCON EQU (DW16)
  497. B5_BWSCON EQU (DW16)
  498. B6_BWSCON EQU (DW32)
  499. B7_BWSCON EQU (DW32)
  500. ;******************************************************************************
  501. ; BANK0CON 
  502. ;******************************************************************************
  503. B0_Tacs EQU 0x0 ;0clk
  504. B0_Tcos EQU 0x0 ;0clk
  505. B0_Tacc EQU 0x7 ;14clk
  506. B0_Tcoh EQU 0x0 ;0clk
  507. B0_Tah EQU 0x0 ;0clk
  508. B0_Tacp EQU 0x0
  509. B0_PMC EQU 0x0 ;normal
  510. ;******************************************************************************
  511. ; BANK1CON
  512. ;******************************************************************************
  513. B1_Tacs EQU 0x0 ;0clk
  514. B1_Tcos EQU 0x0 ;0clk
  515. B1_Tacc EQU 0x7 ;14clk
  516. B1_Tcoh EQU 0x0 ;0clk
  517. B1_Tah EQU 0x0 ;0clk
  518. B1_Tacp EQU 0x0
  519. B1_PMC EQU 0x0 ;normal
  520. ;******************************************************************************
  521. ; Bank 2 parameter
  522. ;******************************************************************************
  523. B2_Tacs EQU 0x0 ;0clk
  524. B2_Tcos EQU 0x0 ;0clk
  525. B2_Tacc EQU 0x7 ;14clk
  526. B2_Tcoh EQU 0x0 ;0clk
  527. B2_Tah EQU 0x0 ;0clk
  528. B2_Tacp EQU 0x0
  529. B2_PMC EQU 0x0 ;normal
  530. ;******************************************************************************
  531. ; Bank 3 parameter
  532. ;******************************************************************************
  533. B3_Tacs EQU 0x0 ;0clk
  534. B3_Tcos EQU 0x0 ;0clk
  535. B3_Tacc EQU 0x7 ;14clk
  536. B3_Tcoh EQU 0x0 ;0clk
  537. B3_Tah EQU 0x0 ;0clk
  538. B3_Tacp EQU 0x0
  539. B3_PMC EQU 0x0 ;normal
  540. ;******************************************************************************
  541. ; Bank 4 parameter
  542. ;******************************************************************************
  543. B4_Tacs EQU 0x0 ;0clk
  544. B4_Tcos EQU 0x0 ;0clk
  545. B4_Tacc EQU 0x7 ;14clk
  546. B4_Tcoh EQU 0x0 ;0clk
  547. B4_Tah EQU 0x0 ;0clk
  548. B4_Tacp EQU 0x0
  549. B4_PMC EQU 0x0 ;normal
  550. ;******************************************************************************
  551. ; Bank 5 parameter
  552. ;******************************************************************************
  553. B5_Tacs EQU 0x0 ;0clk
  554. B5_Tcos EQU 0x0 ;0clk
  555. B5_Tacc EQU 0x7 ;14clk
  556. B5_Tcoh EQU 0x0 ;0clk
  557. B5_Tah EQU 0x0 ;0clk
  558. B5_Tacp EQU 0x0
  559. B5_PMC EQU 0x0 ;normal
  560. ;******************************************************************************
  561. ; Bank 6 parameter
  562. ;******************************************************************************
  563. B6_MT EQU 0x3 ;SDRAM
  564. B6_Trcd EQU 0x1 ;3clk
  565. B6_SCAN EQU 0x1 ;9bit
  566. ;******************************************************************************
  567. ; Bank 7 parameter
  568. ;******************************************************************************
  569. B7_MT EQU 0x3 ;SDRAM
  570. B7_Trcd EQU 0x1 ;3clk
  571. B7_SCAN EQU 0x1 ;9bit
  572. ;******************************************************************************
  573. ; REFRESH parameter
  574. ;******************************************************************************
  575. REFEN EQU 0x1 ;Refresh enable
  576. TREFMD EQU 0x0 ;CBR(CAS before RAS)/Auto refresh
  577. ;Trp EQU 0x0 ;2clk
  578. ;Trp EQU 0x2 ;2clk
  579. ;Trc EQU 0x3 ;7clk
  580. ;Trc EQU 0x3 ;7clk
  581. Trp EQU 0x1 ;3clk
  582. Trc EQU 0x2 ;6clk
  583. Tchr EQU 0x2 ;3clk
  584. ;REFCNT EQU 1113 ;period=15.6us, HCLK=60Mhz, (2048+1-15.6*60)
  585. REFCNT EQU 1011 ; 500Mhz ;;; SHL
  586. END