- /* s3c2410x.h - HITSAT s3c2410x header file */
- /*
- This file contains I/O address and related constants for the HITSAT
- s3c2410x board.
- */
- #ifndef INCs3c2410xh
- #define INCs3c2410xh
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define TARGET_S3C2410X
- /* Flash definitions */
- #define FLASH_BASE 0x00000000 /* Base address of Flash part */
- #define FLASH_SIZE 0x00200000 /* Total Flash available. */
- #define FLASH_WIDTH 2 /* One 16-bit wide parts */
- #define FLASH_CHIP_WIDTH 1
- /* SDRAM area definition. */
- #define SDRAM_BASE 0x30000000
- #define SDRAM_SIZE 0x04000000
- #define SDRAM_WIDTH 4 /* Two 16-bit wide parts */
- #define SDRAM_CHIP_WIDTH 2
- /* RAM base in reset memory map */
- #define RESET_RAM_BASE 0x30000000
- #define BUS BUS_TYPE_NONE
- /* Signals generated from s3c2410x clock generator. */
- #define s3c2410x_FCLK 200000000 /* fclk = 100MHz */
- #define s3c2410x_HCLK 100000000 /* hclk = 50MHz */
- #define s3c2410x_PCLK 50000000 /* pclk = 50MHz */
- /* arm920t PSR */
- #define FIQ_ENABLE_Bit 0x40
- #define IRQ_ENABLE_Bit 0x80
- #define PROCESSOR_MODE_MASK 0x1F /* Processor Mode Mask */
- #define UDF_MODE 0x1B /* Undefine Mode(UDF) */
- #define ABT_MODE 0x17 /* Abort Mode(ABT) */
- #define SUP_MODE 0x13 /* Supervisor Mode (SVC) */
- #define IRQ_MODE 0x12 /* Interrupt Mode (IRQ) */
- #define FIQ_MODE 0x11 /* Fast Interrupt Mode (FIQ) */
- #define USR_MODE 0x10 /* User Mode(USR) */
- /* s3c2410x Memory Controller */
- #define rBWSCON_ADR 0x48000000
- #define DW1 (1<<4) /* 2-bits; data bus width. 8bit:16bit:32bit = 00b:01b:10b:11b. */
- #define WS1 (0<<6) /* 1-bit; WAIT desable when 0, WAIT enable when 1. */
- #define ST1 (0<<7) /* 1-bit; nWBE[3..0]) when 0, nBE[3..0]) when 1. */
- #define DW2 (1<<8)
- #define WS2 (0<<10)
- #define ST2 (0<<11)
- #define DW3 (1<<12)
- #define WS3 (0<<14)
- #define ST3 (0<<15)
- #define DW4 (1<<16)
- #define WS4 (0<<18)
- #define ST4 (0<<19)
- #define DW5 (1<<20)
- #define WS5 (1<<22)
- #define ST5 (1<<23)
- #define DW6 (2<<24)
- #define WS6 (0<<26)
- #define ST6 (0<<27)
- #define DW7 (2<<28)
- #define WS7 (0<<30)
- #define ST7 (0<<31)
- #define rBWSCON_INIT_VALUE (DW1+WS1+ST1+DW2+WS2+ST2+DW3+WS3+ST3+DW4+WS4+ST4+DW5+WS5+ST5+DW6+WS6+ST6+DW7+WS7+ST7)
- /* 0x22111112 */
- #define rBANKCON0_ADR 0x48000004
- #define PMC0 (0<<0) /* 2-bits; Page mode = normal. */
- #define Tacp0 (0<<2) /* 2-bits; Page mode access cycle = 2 clocks. */
- #define Tcah0 (0<<4) /* 2-bits; Address hold time after nGCSn = 0 clocks. */
- #define Tcoh0 (0<<6) /* 2-bits; Chip selection hold time after nOE = 0 clocks. */
- #define Tacc0 (7<<8) /* 3-bits; Access cycle = 14 clocks. */
- #define Tcos0 (0<<11) /* 2-bits; Chip selection set-up time before nOE = 0 clocks. */
- #define Tacs0 (0<<13) /* 2-bits; Address set-up time before nGCSn = 0 clocks. */
- #define rBANKCON0_INIT_VALUE (PMC0+Tacp0+Tcah0+Tcoh0+Tacc0+Tcos0+Tacs0)
- /* 0x00000700 */
- #define rBANKCON3_ADR 0x48000010
- #define rBANKCON5_ADR 0x48000018
- #define PMC5 (0<<0) /* 2-bits; Page mode = normal. */
- #define Tacp5 (3<<2) /* 2-bits; Page mode access cycle = 6 clocks. */
- #define Tcah5 (3<<4) /* 2-bits; Address hold time after nGCSn = 1 clocks. */
- #define Tcoh5 (3<<6) /* 2-bits; Chip selection hold time after nOE = 1 clocks. */
- #define Tacc5 (7<<8) /* 3-bits; Access cycle = 14 clocks. */
- #define Tcos5 (3<<11) /* 2-bits; Chip selection set-up time before nOE = 1 clocks. */
- #define Tacs5 (3<<13) /* 2-bits; Address set-up time before nGCSn = 1 clocks. */
- #define rBANKCON5_INIT_VALUE (PMC5+Tacp5+Tcah5+Tcoh5+Tacc5+Tcos5+Tacs5)
- /* 0x00000700 */
- #define rBANKCON6_ADR 0x4800001c
- #define SCAN6 (1<<0) /* 2-bits; Column address number = 9 bits. */
- #define Trcd6 (0<<2) /* 2-bits; RAS to CAS delay = 2 clock. */
- #define MT6 (3<<15) /* 2-bits; Set type to SyncDRAM. */
- #define rBANKCON6_INIT_VALUE (SCAN6+Trcd6+MT6)
- /* 0x00018000 */
- #define rREFRESH_ADR 0x48000024
- #define Refresh_Counter (1113<<0) /* 11-bits; SDRAM refresh count value = 1113; */
- #define Tsrc (1<<18) /* 2-bits; SDRAM Semi Row Cycle Time = 5 clocks. */
- #define Trp (0<<20) /* 2-bits; SDRAM RAS pre-charge Time = 2 clocks. */
- #define TREFMD (0<<22) /* 1-bits; SDRAM Refresh Mode is Auto-Refresh. */
- #define REFEN (1<<23) /* 1-bits; SDRAM Refresh Enable. */
- #define rREFRESH_INIT_VALUE (Refresh_Counter+Tsrc+Trp+TREFMD+REFEN)
- /* 0x00860459 */
- #define rBANKSIZE_ADR 0x48000028
- #define BK76MAP (1<<0) /* 3-bits; Bank6..7 memory map 64M/64M. */
- #define SCLK_EN (1<<4) /* 1-bits; SCLK is enabled only during SDRAM access cycle. */
- #define SCKE_EN (1<<5) /* 1-bits; SDRAM power down mode enable. */
- #define BURST_EN (1<<7) /* 1-bits; ARM core enable burst operation. */
- #define rBANKSIZE_INIT_VALUE (BK76MAP+SCLK_EN+SCKE_EN+BURST_EN)
- /* 0x000000b7 */
- #define rMRSRB6_ADR 0x4800002c
- #define BL6 (0<<0) /* 3-bits; Burst length = 1(Fixed). */
- #define BT6 (0<<3) /* 1-bits; Burst type is sequential(Fixed). */
- #define CL6 (3<<4) /* 3-bits; CAS latency = 3 clocks. */
- #define TM6 (0<<7) /* 2-bits; Mode register set(Fixed). */
- #define WBL6 (0<<9) /* 1-bits; Write burst length = Burst(Fixed). */
- #define rMRSRB6_INIT_VALUE (BL6+BT6+CL6+TM6+WBL6)
- /* 0x00000030 */
- /* s3c2410x Interrupt Controller */
- #define rINTMSK_ADR 0x4A000008
- #define rINTSUBMSK_ADR 0x4A00001C
- /* s3c2410x Clock & Power Management */
- #define rLOCKTIME_ADR 0x4c000000
- #define M_LTIME (0xfff<<0) /* 12-bits; Maxim UPLL lock time count value. */
- #define U_LTIME (0xfff<<12) /* 12-bits; Maxim MPLL lock time count value. */
- #define rLOCKTIME_INIT_VALUE (M_LTIME+U_LTIME)
- /* 0x00ffffff */
- #define rMPLLCON_ADR 0x4c000004
- #define SDIVm (0<<0) /* 2-bits; */
- #define PDIVm (4<<4) /* 6-bits; */
- #define MDIVm (0x5c<<12) /* 8-bits; */
- #define rMPLLCON_INIT_VALUE (SDIVm+PDIVm+MDIVm)
- /* 0x0005c040 */
- #define rCLKCON_ADR 0x4c00000c
- #define rCLKCON_INIT_VALUE 0x0043d00
- /* 0x00043d00 */
- #define rCLKSLOW_ADR 0x4c000010
- #define rCLKSLOW_INIT_VALUE 0x00000084
- /* 0x00000084 */
- #define rCLKDIVN_ADR 0x4c000014
- #define rCLKDIVN_INIT_VALUE 0x00000003
- /* s3c2410x Watch-dog Timer */
- #define rWTCON_ADR 0x53000000
- #define rWTCON_INIT_VALUE (0x00000000)
- /* s3c2410x GPIO Contol Register */
- #define rGPHCON 0x56000070
- #define MASK_GPH10(x) (x<<20)
- #define MASK_GPH9(x) (x<<18)
- #define MASK_GPH8(x) (x<<16)
- #define MASK_GPH7(x) (x<<14)
- #define MASK_GPH6(x) (x<<12)
- #define MASK_GPH5(x) (x<<10)
- #define MASK_GPH4(x) (x<<8)
- #define MASK_GPH3(x) (x<<6)
- #define MASK_GPH2(x) (x<<4)
- #define MASK_GPH1(x) (x<<2)
- #define MASK_GPH0(x) (x<<0)
- /* Interrupt levels */
- #define s3c2410x_INT_NUM_LEVELS 52
- #define s3c2410x_INT_CSR_MASK_VAL (~((unsigned int)((1<<6)+(1<<24))))
- #define s3c2410x_INT_CSR_SRCPND (0X4a000000)
- #define s3c2410x_INT_CSR_INTMOD (0X4a000004)
- #define s3c2410x_INT_CSR_INTMSK (0X4a000008)
- #define s3c2410x_INT_CSR_PRIORITY (0x4a00000c)
- #define s3c2410x_INT_CSR_INTPND (0X4a000010)
- #define s3c2410x_INT_CSR_INTOFFSET (0x4a000014)
- #define s3c2410x_INT_CSR_SUBSRCPND (0X4a000018)
- #define s3c2410x_INT_CSR_INTSUBMSK (0X4a00001c)
- #define s3c2410x_INT_CSR_EINTSTYLE (0x56000088)
- #define s3c2410x_INT_CSR_EINTPEND (0x560000A8)
- #define s3c2410x_INT_CSR_EINTMASK (0x560000A4)
- #define EINTSTYLE_LOW (0)
- #define EINTSTYLE_HIGH (1)
- #define EINTSTYLE_FALL (2)
- #define EINTSTYLE_RISE (4)
- #define EINTSTYLE_BOTHEDGE (6)
- #define EINT0_7_STYLE ((EINTSTYLE_HIGH<<0)+(EINTSTYLE_RISE<<4)+(EINTSTYLE_FALL<<8)+(EINTSTYLE_FALL<<12)+(EINTSTYLE_LOW<<16)+(EINTSTYLE_LOW<<20)+(EINTSTYLE_LOW<<24)+(EINTSTYLE_LOW<<28))
- /* EINT0 for CS8900A *//* EINT1 for EOC of TLV1543*//* EINT2 for OML_CNTL *//* EINT3 for RST_4S1 *//* EINT4 *//* EINT5 *//* EINT6 *//* EINT7 */
- #define INT_LVL_EINT_0 0
- #define INT_LVL_EINT_1 1
- #define INT_LVL_EINT_2 2
- #define INT_LVL_EINT_3 3
- #define INT_LVL_EINT_4_7 4
- #define INT_LVL_EINT_8_23 5
- /* Reserved 6 */
- #define INT_LVL_nBATT_FLT 7
- #define INT_LVL_TICK 8
- #define INT_LVL_WDT 9
- #define INT_LVL_TIMER_0 10
- #define INT_LVL_TIMER_1 11
- #define INT_LVL_TIMER_2 12
- #define INT_LVL_TIMER_3 13
- #define INT_LVL_TIMER_4 14
- #define INT_LVL_UART_2 15
- #define INT_LVL_LCD 16
- #define INT_LVL_DMA_0 17
- #define INT_LVL_DMA_1 18
- #define INT_LVL_DMA_2 19
- #define INT_LVL_DMA_3 20
- #define INT_LVL_SDI 21
- #define INT_LVL_SPI_0 22
- #define INT_LVL_UART_1 23
- /* Reserved 24 */
- #define INT_LVL_USBD 25
- #define INT_LVL_USBH 26
- #define INT_LVL_IIC 27
- #define INT_LVL_UART_0 28
- #define INT_LVL_SPI_1 29
- #define INT_LVL_RTC 30
- #define INT_LVL_ADC 31
- #define IRQ_EINT4 32
- #define IRQ_EINT5 33
- #define IRQ_EINT6 34
- #define IRQ_EINT7 35
- #define IRQ_EINT8 36
- #define IRQ_EINT9 37
- #define IRQ_EINT10 38
- #define IRQ_EINT11 39
- #define IRQ_EINT12 40
- #define IRQ_EINT13 41
- #define IRQ_EINT14 42
- #define IRQ_EINT15 43
- #define IRQ_EINT16 44
- #define IRQ_EINT17 45
- #define IRQ_EINT18 46
- #define IRQ_EINT19 47
- #define IRQ_EINT20 48
- #define IRQ_EINT21 49
- #define IRQ_EINT22 50
- #define IRQ_EINT23 51
- #define SUBINT_LVL_RXD0 0
- #define SUBINT_LVL_TXD0 1
- #define SUBINT_LVL_ERR0 2
- #define SUBINT_LVL_RXD1 3
- #define SUBINT_LVL_TXD1 4
- #define SUBINT_LVL_ERR1 5
- #define SUBINT_LVL_RXD2 6
- #define SUBINT_LVL_TXD2 7
- #define SUBINT_LVL_ERR2 8
- #define SUBINT_LVL_TC 9
- #define SUBINT_LVL_ADC 10
- /* interrupt vectors */
- #define INT_VEC_EINT_0 IVEC_TO_INUM(INT_LVL_EINT_0)
- #define INT_VEC_EINT_1 IVEC_TO_INUM(INT_LVL_EINT_1)
- #define INT_VEC_EINT_2 IVEC_TO_INUM(INT_LVL_EINT_2)
- #define INT_VEC_EINT_3 IVEC_TO_INUM(INT_LVL_EINT_3)
- #define INT_VEC_EINT_4_7 IVEC_TO_INUM(INT_LVL_EINT_4_7)
- #define INT_VEC_EINT_8_23 IVEC_TO_INUM(INT_LVL_EINT_8_23)
- /* Reserved 6 */
- #define INT_VEC_nBATT_FLT IVEC_TO_INUM(INT_LVL_nBATT_FLT)
- #define INT_VEC_TICK IVEC_TO_INUM(INT_LVL_TICK)
- #define INT_VEC_WDT IVEC_TO_INUM(INT_LVL_WDT)
- #define INT_VEC_TIMER_0 IVEC_TO_INUM(INT_LVL_TIMER_0)
- #define INT_VEC_TIMER_1 IVEC_TO_INUM(INT_LVL_TIMER_1)
- #define INT_VEC_TIMER_2 IVEC_TO_INUM(INT_LVL_TIMER_2)
- #define INT_VEC_TIMER_3 IVEC_TO_INUM(INT_LVL_TIMER_3)
- #define INT_VEC_TIMER_4 IVEC_TO_INUM(INT_LVL_TIMER_4)
- #define INT_VEC_UART_2 IVEC_TO_INUM(INT_LVL_UART_2)
- #define INT_VEC_LCD IVEC_TO_INUM(INT_LVL_LCD)
- #define INT_VEC_DMA_0 IVEC_TO_INUM(INT_LVL_DMA_0)
- #define INT_VEC_DMA_1 IVEC_TO_INUM(INT_LVL_DMA_1)
- #define INT_VEC_DMA_2 IVEC_TO_INUM(INT_LVL_DMA_2)
- #define INT_VEC_DMA_3 IVEC_TO_INUM(INT_LVL_DMA_3)
- #define INT_VEC_SDI IVEC_TO_INUM(INT_LVL_SDI)
- #define INT_VEC_SPI_0 IVEC_TO_INUM(INT_LVL_SPI_0)
- #define INT_VEC_UART_1 IVEC_TO_INUM(INT_LVL_UART_1)
- /* Reserved 24 */
- #define INT_VEC_USBD IVEC_TO_INUM(INT_LVL_USBD)
- #define INT_VEC_USBH IVEC_TO_INUM(INT_LVL_USBH)
- #define INT_VEC_IIC IVEC_TO_INUM(INT_LVL_IIC)
- #define INT_VEC_UART_0 IVEC_TO_INUM(INT_LVL_UART_0)
- #define INT_VEC_SPI_1 IVEC_TO_INUM(INT_LVL_SPI_1)
- #define INT_VEC_RTC IVEC_TO_INUM(INT_LVL_RTC)
- #define INT_VEC_ADC IVEC_TO_INUM(INT_LVL_ADC)
- /* DMA for s3c2410x */
- #define rDISRC0 (0x4b000000)
- #define rDISRC1 (0x4b000040)
- #define rDISRC2 (0x4b000080)
- #define rDISRC3 (0x4b0000c0)
- #define rDISRC_MASK ((1<<31)-1)
- #define rDISRCC0 (0x4b000004)
- #define rDISRCC1 (0x4b000044)
- #define rDISRCC2 (0x4b000084)
- #define rDISRCC3 (0x4b0000c4)
- #define rDISRCC_INC_INC (0<<0)
- #define rDISRCC_INC_FIXED (1<<0)
- #define rDISRCC_LOC_AHB (0<<1)
- #define rDISRCC_LOC_APB (1<<1)
- #define rDIDST0 (0x4b000008)
- #define rDIDST1 (0x4b000048)
- #define rDIDST2 (0x4b000088)
- #define rDIDST3 (0x4b0000c8)
- #define rDIDST_MASK (rDISRC_MASK)
- #define rDIDSTC0 (0x4b00000c)
- #define rDIDSTC1 (0x4b00004c)
- #define rDIDSTC2 (0x4b00008c)
- #define rDIDSTC3 (0x4b0000cc)
- #define rDIDSTC_INC_INC rDISRCC_INC_INC
- #define rDIDSTC_INC_FIXED rDISRCC_INC_FIXED
- #define rDIDSTC_LOC_AHB rDISRCC_LOC_AHB
- #define rDIDSTC_LOC_APB rDISRCC_LOC_APB
- #define rDCON0 (0x4b000010)
- #define rDCON1 (0x4b000050)
- #define rDCON2 (0x4b000090)
- #define rDCON3 (0x4b0000d0)
- #define rDCON_TC_MASK ((1<<20)-1)
- #define rDCON_DSZ_8 (0<<20)
- #define rDCON_DSZ_16 (1<<20)
- #define rDCON_DSZ_32 (2<<20)
- #define rDCON_RELOAD_AUTO (0<<22)
- #define rDCON_RELOAD_OFF (1<<22)
- #define rDCON_SE_SW (0<<23)
- #define rDCON_SE_HW (1<<23)
- #define rDCON0_HWSRCSEL_nXDREQ0 (0<<24)
- #define rDCON0_HWSRCSEL_UART0 (1<<24)
- #define rDCON0_HWSRCSEL_SDI (2<<24)
- #define rDCON0_HWSRCSEL_TIMER (3<<24)
- #define rDCON_HWSRCSEL_USB (4<<24)
- #define rDCON1_HWSRCSEL_nXDREQ1 (0<<24)
- #define rDCON1_HWSRCSEL_UART1 (1<<24)
- #define rDCON1_HWSRCSEL_I2SSDI (2<<24)
- #define rDCON1_HWSRCSEL_SPI (3<<24)
- #define rDCON2_HWSRCSEL_I2SSDO (0<<24)
- #define rDCON2_HWSRCSEL_I2SSDI (1<<24)
- #define rDCON2_HWSRCSEL_SDI (2<<24)
- #define rDCON2_HWSRCSEL_TIMER (3<<24)
- #define rDCON3_HWSRCSEL_UART2 (0<<24)
- #define rDCON3_HWSRCSEL_SDI (1<<24)
- #define rDCON3_HWSRCSEL_SPI (2<<24)
- #define rDCON3_HWSRCSEL_TIMER (3<<24)
- #define rDCON_SERVMODE_SINGLE (0<<27)
- #define rDCON_SERVMODE_WHOLE (1<<27)
- #define rDCON_TSZ_ONE (0<<28)
- #define rDCON_TSZ_FOUR (1<<28)
- #define rDCON_INT_OFF (0<<29)
- #define rDCON_INT_ON (1<<29)
- #define rDCON_SYNC_APB (0<<30)
- #define rDCON_SYNC_AHB (1<<30)
- #define rDCON_DMD_MODE (0<<31)
- #define rDCON_HS_MODE (1<<31)
- #define rDCSRC0 (0x4b000018)
- #define rDCSRC1 (0x4b000058)
- #define rDCSRC2 (0x4b000098)
- #define rDCSRC3 (0x4b0000d8)
- #define rDCDST0 (0x4b00001c)
- #define rDCDST1 (0x4b00005c)
- #define rDCDST2 (0x4b00009c)
- #define rDCDST3 (0x4b0000dc)
- #define rDMASKTRIG0 (0x4b000020)
- #define rDMASKTRIG1 (0x4b000060)
- #define rDMASKTRIG2 (0x4b0000a0)
- #define rDMASKTRIG3 (0x4b0000e0)
- /* definitions for the s3c2410x UART */
- #define UART_XTAL_FREQ s3c2410x_PCLK /* UART baud rate clk freq */
- #define N_s3c2410x_UART_CHANNELS 2 /* number of AMBA UART chans */
- #define N_SIO_CHANNELS N_s3c2410x_UART_CHANNELS
- #define N_UART_CHANNELS N_s3c2410x_UART_CHANNELS
- #define UART_0_BASE_ADR 0x50000000 /* UART 0 base address */
- #define UART_1_BASE_ADR 0x50004000 /* UART 1 base address */
- /* definitions for the s3c2410x Timer */
- #define s3c2410x_TIMER_BASE 0x51000000 /* Address of base of timer */
- #define s3c2410x_TIMER0_BASE ((s3c2410x_TIMER_BASE) + 0x0c)
- #define s3c2410x_TIMER1_BASE ((s3c2410x_TIMER_BASE) + 0x18)
- #define s3c2410x_TIMER2_BASE ((s3c2410x_TIMER_BASE) + 0x24)
- #define s3c2410x_TIMER3_BASE ((s3c2410x_TIMER_BASE) + 0x30)
- #define s3c2410x_TIMER4_BASE ((s3c2410x_TIMER_BASE) + 0x3c)
- #define SYS_TIMER_BASE s3c2410x_TIMER0_BASE
- #define AUX_TIMER_BASE s3c2410x_TIMER1_BASE
- #define SYS_TIMER_INT_LVL (INT_LVL_TIMER_0)
- #define AUX_TIMER_INT_LVL (INT_LVL_TIMER_1)
- #define SYS_TIMER_INT_VEC (INT_VEC_TIMER_0)
- #define AUX_TIMER_INT_VEC (INT_VEC_TIMER_1)
- #define SYS_TIMER_CLK (s3c2410x_PCLK)
- #define AUX_TIMER_CLK (s3c2410x_PCLK)
- /* for timer base */
- #define OFFSET_TCFG0 (0x00)
- #define OFFSET_TCFG1 (0x04)
- #define OFFSET_TCON (0x08)
- /* for timerX base */
- #define OFFSET_TCNTB (0x00)
- #define OFFSET_TCMPB (0x04)
- #define OFFSET_TCNTO (0x08)
- /* Timer clock source frequency = (50*1000000)/(250x2) = 100 000 */
- #define TCFG0_INIT_VALUE (0x0000f9f9) /* prescaler0..1 = 249 + 1 */
- #define TCFG1_INIT_VALUE (0x00000000) /* MUX0..4 = 1/2 */
- /* bit for TCON */
- #define BIT_TIMER0_EN (1<<0)
- #define BIT_TIMER0_MU (1<<1)
- #define BIT_TIMER0_IV (1<<2)
- #define BIT_TIMER0_RE (1<<3)
- #define BIT_TIMER1_EN (1<<8)
- #define BIT_TIMER1_MU (1<<9)
- #define BIT_TIMER1_IV (1<<10)
- #define BIT_TIMER1_RE (1<<11)
- #define BIT_TIMER2_EN (1<<12)
- #define BIT_TIMER2_MU (1<<13)
- #define BIT_TIMER2_IV (1<<14)
- #define BIT_TIMER2_RE (1<<15)
- #define BIT_TIMER3_EN (1<<16)
- #define BIT_TIMER3_MU (1<<17)
- #define BIT_TIMER3_IV (1<<18)
- #define BIT_TIMER3_RE (1<<19)
- #define BIT_TIMER4_EN (1<<20)
- #define BIT_TIMER4_MU (1<<21)
- #define BIT_TIMER4_RE (1<<22)
- #define BIT_SYS_TIMER_EN BIT_TIMER0_EN
- #define BIT_SYS_TIMER_MU BIT_TIMER0_MU
- #define BIT_SYS_TIMER_IV BIT_TIMER0_IV
- #define BIT_SYS_TIMER_RE BIT_TIMER0_RE
- #define BIT_AUX_TIMER_EN BIT_TIMER1_EN
- #define BIT_AUX_TIMER_MU BIT_TIMER1_MU
- #define BIT_AUX_TIMER_IV BIT_TIMER1_IV
- #define BIT_AUX_TIMER_RE BIT_TIMER1_RE
- #define MASTER_TIMER_BASE s3c2410x_TIMER_BASE
- /*------------------------------------------------------------------------------------------------*/
- /* Bit field definitions */
- #define BIT0 0x00000001
- #define BIT1 0x00000002
- #define BIT2 0x00000004
- #define BIT3 0x00000008
- #define BIT4 0x00000010
- #define BIT5 0x00000020
- #define BIT6 0x00000040
- #define BIT7 0x00000080
- #define BIT8 0x00000100
- #define BIT9 0x00000200
- #define BIT10 0x00000400
- #define BIT11 0x00000800
- #define BIT12 0x00001000
- #define BIT13 0x00002000
- #define BIT14 0x00004000
- #define BIT15 0x00008000
- #define BIT16 0x00010000
- #define BIT17 0x00020000
- #define BIT18 0x00040000
- #define BIT19 0x00080000
- #define BIT20 0x00100000
- #define BIT21 0x00200000
- #define BIT22 0x00400000
- #define BIT23 0x00800000
- #define BIT24 0x01000000
- #define BIT25 0x02000000
- #define BIT26 0x04000000
- #define BIT27 0x08000000
- #define BIT28 0x10000000
- #define BIT29 0x20000000
- #define BIT30 0x40000000
- #define BIT31 0x80000000
- /* Handy sizes */
- #define SZ_1K 0x00000400
- #define SZ_4K 0x00001000
- #define SZ_8K 0x00002000
- #define SZ_16K 0x00004000
- #define SZ_64K 0x00010000
- #define SZ_128K 0x00020000
- #define SZ_256K 0x00040000
- #define SZ_512K 0x00080000
- #define SZ_1M 0x00100000
- #define SZ_2M 0x00200000
- #define SZ_4M 0x00400000
- #define SZ_8M 0x00800000
- #define SZ_16M 0x01000000
- #define SZ_32M 0x02000000
- #define SZ_64M 0x04000000
- #define SZ_128M 0x08000000
- #define SZ_256M 0x10000000
- #define SZ_512M 0x20000000
- #define SZ_1G 0x40000000
- #define SZ_2G 0x80000000
- #ifdef __cplusplus
- }
- #endif
- #endif /* INCs3c2410xh */