⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xaeniax.h

📁 嵌入式试验箱S3C2410的bootloader源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
 * GP37 == DSR       is input * GP38 == RI        is input * GP39 == FFTXD     is output * GP40 == DTR       is output * GP41 == RTS       is output * GP42 == BTRXD     is input * GP43 == BTTXD     is output * GP44 == BTCTS     is input * GP45 == BTRTS     is output * GP46 == RXD       is input * GP47 == TXD       is output * GP48 == nPOE      is output * GP49 == nPWE      is output * GP50 == nPIOR     is output * GP51 == nPIOW     is output * GP52 == nPCE[1]   is output * GP53 == nPCE[2]   is output * GP54 == nPSKTSEL  is output * GP55 == nPREG     is output * GP56 == nPWAIT    is input * GP57 == nPIOS16   is input * GP58 == LDD[0]    is output * GP59 == LDD[1]    is output * GP60 == LDD[2]    is output * GP61 == LDD[3]    is output * GP62 == LDD[4]    is output * GP63 == LDD[5]    is output * GP64 == LDD[6]    is output * GP65 == LDD[7]    is output * GP66 == LDD[8]    is output * GP67 == LDD[9]    is output * GP68 == LDD[10]   is output * GP69 == LDD[11]   is output * GP70 == LDD[12]   is output * GP71 == LDD[13]   is output * GP72 == LDD[14]   is output * GP73 == LDD[15]   is output * GP74 == LCD_FCLK  is output * GP75 == LCD_LCLK  is output * GP76 == LCD_PCLK  is output * GP77 == LCD_ACBIAS is output * GP78 == nCS2      is output * GP79 == nCS3      is output * GP80 == nCS4      is output * GP81 == NSSPCLK   is output * GP82 == NSSPSFRM  is output * GP83 == NSSPTXD   is output * GP84 == NSSPRXD   is input */#define CFG_GPDR0_VAL		0xD3E3FC68#define CFG_GPDR1_VAL		0xFCFFAB83#define CFG_GPDR2_VAL		0x000FFFFF/* * GP01 == GP reset is AF01 * GP15 == nCS1     is AF10 * GP16 == PWM0     is AF10 * GP17 == PWM1     is AF10 * GP18 == RDY      is AF01 * GP23 == SCLK     is AF10 * GP24 == SFRM     is AF10 * GP25 == TXD      is AF10 * GP26 == RXD      is AF01 * GP27 == EXTCLK   is AF01 * GP28 == BITCLK   is AF01 * GP29 == SDATA_IN0 is AF10 * GP30 == SDATA_OUT is AF01 * GP31 == SYNC     is AF01 * GP32 == SYSCLK   is AF01 * GP33 == nCS5  is AF10 * GP34 == FFRXD is AF01 * GP35 == CTS   is AF01 * GP36 == DCD   is AF01 * GP37 == DSR   is AF01 * GP38 == RI    is AF01 * GP39 == FFTXD is AF10 * GP40 == DTR   is AF10 * GP41 == RTS   is AF10 * GP42 == BTRXD is AF01 * GP43 == BTTXD is AF10 * GP44 == BTCTS is AF01 * GP45 == BTRTS is AF10 * GP46 == RXD   is AF10 * GP47 == TXD   is AF01 * GP48 == nPOE  is AF10 * GP49 == nPWE  is AF10 * GP50 == nPIOR is AF10 * GP51 == nPIOW is AF10 * GP52 == nPCE[1] is AF10 * GP53 == nPCE[2] is AF10 * GP54 == nPSKTSEL is AF10 * GP55 == nPREG   is AF10 * GP56 == nPWAIT  is AF01 * GP57 == nPIOS16 is AF01 * GP58 == LDD[0]  is AF10 * GP59 == LDD[1]  is AF10 * GP60 == LDD[2]  is AF10 * GP61 == LDD[3]  is AF10 * GP62 == LDD[4]  is AF10 * GP63 == LDD[5]  is AF10 * GP64 == LDD[6]  is AF10 * GP65 == LDD[7]  is AF10 * GP66 == LDD[8]  is AF10 * GP67 == LDD[9]  is AF10 * GP68 == LDD[10] is AF10 * GP69 == LDD[11] is AF10 * GP70 == LDD[12] is AF10 * GP71 == LDD[13] is AF10 * GP72 == LDD[14] is AF10 * GP73 == LDD[15] is AF10 * GP74 == LCD_FCLK is AF10 * GP75 == LCD_LCLK is AF10 * GP76 == LCD_PCLK is AF10 * GP77 == LCD_ACBIAS is AF10 * GP78 == nCS2     is AF10 * GP79 == nCS3     is AF10 * GP80 == nCS4     is AF10 * GP81 == NSSPCLK  is AF01 * GP82 == NSSPSFRM is AF01 * GP83 == NSSPTXD  is AF01 * GP84 == NSSPRXD  is AF10 */#define CFG_GAFR0_L_VAL		0x80000004#define CFG_GAFR0_U_VAL		0x595A801A#define CFG_GAFR1_L_VAL		0x699A9559#define CFG_GAFR1_U_VAL		0xAAA5AAAA#define CFG_GAFR2_L_VAL		0xAAAAAAAA#define CFG_GAFR2_U_VAL		0x00000256/* * clock settings *//* RDH = 1 * PH  = 0 * VFS = 0 * BFS = 0 * SSS = 0 */#define CFG_PSSR_VAL		0x00000030#define CFG_CKEN_VAL            0x00000080  /*  */#define CFG_ICMR_VAL            0x00000000  /* No interrupts enabled        *//* * Memory settings * * This is the configuration for nCS0/1 -> flash banks * configuration for nCS1 : * [31]    0    - * [30:28] 000  - * [27:24] 0000 - * [23:20] 0000 - * [19]    0    - * [18:16] 000  - * configuration for nCS0: * [15]    0    - Slower Device * [14:12] 010  - CS deselect to CS time: 2*(2*MemClk) = 40 ns * [11:08] 0011 - Address to data valid in bursts: (3+1)*MemClk = 40 ns * [07:04] 1111 - " for first access: (23+2)*MemClk = 250 ns (fixme 12+2?) * [03]    0    - 32 Bit bus width * [02:00] 010  - burst OF 4 ROM or FLASH*/#define CFG_MSC0_VAL		0x000023D2/* This is the configuration for nCS2/3 -> USB controller, LAN * configuration for nCS3: LAN * [31]    0    - Slower Device * [30:28] 001  - RRR3: CS deselect to CS time: 1*(2*MemClk) = 20 ns * [27:24] 0010 - RDN3: Address to data valid in bursts: (2+1)*MemClk = 30 ns * [23:20] 0010 - RDF3: Address for first access: (2+1)*MemClk = 30 ns * [19]    0    - 32 Bit bus width * [18:16] 100  - variable latency I/O * configuration for nCS2: USB * [15]    1    - Faster Device * [14:12] 010  - RRR2: CS deselect to CS time: 2*(2*MemClk) = 40 ns * [11:08] 0010 - RDN2: Address to data valid in bursts: (2+1)*MemClk = 30 ns * [07:04] 0110 - RDF2: Address for first access: (6+1)*MemClk = 70 ns * [03]    1    - 16 Bit bus width * [02:00] 100  - variable latency I/O */#define CFG_MSC1_VAL		0x1224A26C/* This is the configuration for nCS4/5 -> LAN * configuration for nCS5: * [31]    0    - * [30:28] 000  - * [27:24] 0000 - * [23:20] 0000 - * [19]    0    - * [18:16] 000  - * configuration for nCS4: LAN * [15]    1    - Faster Device * [14:12] 010  - RRR2: CS deselect to CS time: 2*(2*MemClk) = 40 ns * [11:08] 0010 - RDN2: Address to data valid in bursts: (2+1)*MemClk = 30 ns * [07:04] 0110 - RDF2: Address for first access: (6+1)*MemClk = 70 ns * [03]    0    - 32 Bit bus width * [02:00] 100  - variable latency I/O */#define CFG_MSC2_VAL		0x00001224/* MDCNFG: SDRAM Configuration Register * * [31:29]   000 - reserved * [28]      0	 - no SA1111 compatiblity mode * [27]      0   - latch return data with return clock * [26]      0   - alternate addressing for pair 2/3 * [25:24]   00  - timings * [23]      0   - internal banks in lower partition 2/3 (not used) * [22:21]   00  - row address bits for partition 2/3 (not used) * [20:19]   00  - column address bits for partition 2/3 (not used) * [18]      0   - SDRAM partition 2/3 width is 32 bit * [17]      0   - SDRAM partition 3 disabled * [16]      0   - SDRAM partition 2 disabled * [15:13]   000 - reserved * [12]      0	 - no SA1111 compatiblity mode * [11]      1   - latch return data with return clock * [10]      0   - no alternate addressing for pair 0/1 * [09:08]   10  - tRP=2*MemClk CL=2 tRCD=2*MemClk tRAS=5*MemClk tRC=8*MemClk * [7]       1   - 4 internal banks in lower partition pair * [06:05]   10  - 13 row address bits for partition 0/1 * [04:03]   01  - 9 column address bits for partition 0/1 * [02]      0   - SDRAM partition 0/1 width is 32 bit * [01]      0   - disable SDRAM partition 1 * [00]      1   - enable  SDRAM partition 0 *//* use the configuration above but disable partition 0 */#define CFG_MDCNFG_VAL		0x00000AC9/* MDREFR: SDRAM Refresh Control Register * * [32:26] 0     - reserved * [25]    0     - K2FREE: not free running * [24]    0     - K1FREE: not free running * [23]    0     - K0FREE: not free running * [22]    0     - SLFRSH: self refresh disabled * [21]    0     - reserved * [20]    1     - APD: auto power down * [19]    0     - K2DB2: SDCLK2 is MemClk * [18]    0     - K2RUN: disable SDCLK2 * [17]    0     - K1DB2: SDCLK1 is MemClk * [16]    1     - K1RUN: enable SDCLK1 * [15]    1     - E1PIN: SDRAM clock enable * [14]    0     - K0DB2: SDCLK0 is MemClk * [13]    0     - K0RUN: disable SDCLK0 * [12]    0     - E0PIN: disable SDCKE0 * [11:00] 000000011000 - (64ms/8192)*MemClkFreq/32 = 24 */#define CFG_MDREFR_VAL		0x00138018 /* mh: was 0x00118018 *//* MDMRS: Mode Register Set Configuration Register * * [31]      0       - reserved * [30:23]   00000000- MDMRS2: SDRAM2/3 MRS Value. (not used) * [22:20]   011     - MDCL2:  SDRAM2/3 Cas Latency.  (not used) * [19]      0       - MDADD2: SDRAM2/3 burst Type. Fixed to sequential.  (not used) * [18:16]   010     - MDBL2:  SDRAM2/3 burst Length. Fixed to 4.  (not used) * [15]      0       - reserved * [14:07]   00000000- MDMRS0: SDRAM0/1 MRS Value. * [06:04]   011     - MDCL0:  SDRAM0/1 Cas Latency. * [03]      0       - MDADD0: SDRAM0/1 burst Type. Fixed to sequential. * [02:00]   010     - MDBL0:  SDRAM0/1 burst Length. Fixed to 4. */#define CFG_MDMRS_VAL		0x00320032/* * PCMCIA and CF Interfaces */#define CFG_MECR_VAL		0x00000000#define CFG_MCMEM0_VAL		0x00010504#define CFG_MCMEM1_VAL		0x00010504#define CFG_MCATT0_VAL		0x00010504#define CFG_MCATT1_VAL		0x00010504#define CFG_MCIO0_VAL		0x00004715#define CFG_MCIO1_VAL		0x00004715#endif	/* __CONFIG_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -