m5206e.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:17k
源码类别:
VxWorks
开发平台:
C/C++
- /* m5206e.h - Motorola MCF5206e CPU control registers */
- /* Copyright 1994-2001 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01a,05mar01,hjg Created from m5206.h
- */
- /*
- This file contains I/O addresses and related constants for the MCF5206e
- */
- #ifndef __INCm5206eh
- #define __INCm5206eh
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*
- Need to use a distinct cast macro in order to not conflict with other
- include files.
- */
- #ifdef _ASMLANGUAGE
- #define CAST_M5206E(x)
- #else /* _ASMLANGUAGE */
- #define CAST_M5206E(x) (x)
- #endif /* _ASMLANGUAGE */
- /* Size of internal SRAM */
- #define M5206E_SRAM_SIZE 8192 /* size of internal SRAM */
- /* System Integration Module register addresses */
- #define M5206E_SIM_SIMR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x003))
- /* External IP1-7 */
- #define M5206E_SIM_ICR1(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x014))
- #define M5206E_SIM_ICR2(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x015))
- #define M5206E_SIM_ICR3(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x016))
- #define M5206E_SIM_ICR4(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x017))
- #define M5206E_SIM_ICR5(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x018))
- #define M5206E_SIM_ICR6(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x019))
- #define M5206E_SIM_ICR7(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x01a))
- /* SWT */
- #define M5206E_SIM_ICR8(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x01b))
- /* Timer 1 INT */
- #define M5206E_SIM_ICR9(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x01c))
- /* Timer 2 INT */
- #define M5206E_SIM_ICR10(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x01d))
- /* MBUS interrupt */
- #define M5206E_SIM_ICR11(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x01e))
- /* UART 1 INT */
- #define M5206E_SIM_ICR12(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x01f))
- /* UART 2 INT */
- #define M5206E_SIM_ICR13(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x020))
- /* DMA Channel 0 Interrupt */
- #define M5206E_SIM_ICR14(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x021))
- /* DMA Channel 1 Interrupt */
- #define M5206E_SIM_ICR15(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x022))
- /* Interrupt Mask Register */
- #define M5206E_SIM_IMR(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x036))
- /* Interrupt Pending Register */
- #define M5206E_SIM_IPR(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x03a))
- /* Reset Status Register */
- #define M5206E_SIM_RSR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x040))
- /* System Protection Control Register */
- #define M5206E_SIM_SYPCR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x041))
- /* Software Watchdog Interrupt Vector Register */
- #define M5206E_SIM_SWIVR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x042))
- /* Software Watchdog Service Register */
- #define M5206E_SIM_SWSR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x043))
- /* DRAM */
- /* DRAM Controller Refresh */
- #define M5206E_DCRR(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x046))
- /* DRAM Controller Timing Register */
- #define M5206E_DCTR(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x04a))
- /* DRAM Controller Address Register - Bank 0 */
- #define M5206E_DCAR0(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x04c))
- /* DRAM Controller Mask Register - Bank 0 */
- #define M5206E_DCMR0(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x050))
- /* DRAM Controller Control Register - Bank 0 */
- #define M5206E_DCCR0(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x057))
- /* DRAM Controller Address Register - Bank 1 */
- #define M5206E_DCAR1(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x058))
- /* DRAM Controller Mask Register - Bank 1 */
- #define M5206E_DCMR1(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x05c))
- /* DRAM Controller Control Register - Bank 1 */
- #define M5206E_DCCR1(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x063))
- /* Chip-Select Address Register - Bank 0 */
- #define M5206E_SIM_CSAR0(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x064))
- /* Chip-Select Mask Register - Bank 0 */
- #define M5206E_SIM_CSMR0(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x068))
- /* Chip-Select Control Register - Bank 0 */
- #define M5206E_SIM_CSCR0(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x06e))
- /* Chip-Select Address Register - Bank 1 */
- #define M5206E_SIM_CSAR1(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x070))
- /* Chip-Select Mask Register - Bank 1 */
- #define M5206E_SIM_CSMR1(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x074))
- /* Chip-Select Control Register - Bank 1 */
- #define M5206E_SIM_CSCR1(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x07a))
- /* Chip-Select Address Register - Bank 2 */
- #define M5206E_SIM_CSAR2(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x07c))
- /* Chip-Select Mask Register - Bank 2 */
- #define M5206E_SIM_CSMR2(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x080))
- /* Chip-Select Control Register - Bank 2 */
- #define M5206E_SIM_CSCR2(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x086))
- /* Chip-Select Address Register - Bank 3 */
- #define M5206E_SIM_CSAR3(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x088))
- /* Chip-Select Mask Register - Bank 3 */
- #define M5206E_SIM_CSMR3(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x08c))
- /* Chip-Select Control Register - Bank 3 */
- #define M5206E_SIM_CSCR3(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x092))
- /* Chip-Select Address Register - Bank 4 */
- #define M5206E_SIM_CSAR4(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x094))
- /* Chip-Select Mask Register - Bank 4 */
- #define M5206E_SIM_CSMR4(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x098))
- /* Chip-Select Control Register - Bank 4 */
- #define M5206E_SIM_CSCR4(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x09e))
- /* Chip-Select Address Register - Bank 5 */
- #define M5206E_SIM_CSAR5(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x0a0))
- /* Chip-Select Mask Register - Bank 5 */
- #define M5206E_SIM_CSMR5(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x0a4))
- /* Chip-Select Control Register - Bank 5 */
- #define M5206E_SIM_CSCR5(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x0aa))
- /* Chip-Select Address Register - Bank 6 */
- #define M5206E_SIM_CSAR6(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x0ac))
- /* Chip-Select Mask Register - Bank 6 */
- #define M5206E_SIM_CSMR6(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x0b0))
- /* Chip-Select Control Register - Bank 6 */
- #define M5206E_SIM_CSCR6(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x0b6))
- /* Chip-Select Address Register - Bank 7 */
- #define M5206E_SIM_CSAR7(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x0b8))
- /* Chip-Select Mask Register - Bank 7 */
- #define M5206E_SIM_CSMR7(base) (CAST_M5206E(volatile UINT32 *)((base) + 0x0bc))
- /* Chip-Select Control Register - Bank 7 */
- #define M5206E_SIM_CSCR7(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x0c2))
- /* Default Memory Control Register */
- #define M5206E_SIM_DMCR(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x0c6))
- /* Pin Assignment Register */
- #define M5206E_SIM_PAR(base) (CAST_M5206E(volatile UINT16 *)((base) + 0x0ca))
- /* Port A Data Direction Register */
- #define M5206E_SIM_PADDR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x1c5))
- /* Port A Data Register */
- #define M5206E_SIM_PADAT(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x1c9))
- /* Timers 1 and 2. */
- #define M5206E_TIMER_REG(base, offset, timer)
- ((base) + ((timer) * 0x20) + (offset))
- /* Timer 1/2 Mode Register */
- #define M5206E_TIMER_TMR(base, n)
- (CAST_M5206E(volatile UINT16 *) M5206E_TIMER_REG(base, 0x100, n))
- /* Timer 1/2 Reference Register */
- #define M5206E_TIMER_TRR(base, n)
- (CAST_M5206E(volatile UINT16 *) M5206E_TIMER_REG(base, 0x104, n))
- /* Timer 1/2 Capture Register */
- #define M5206E_TIMER_TCR(base, n)
- (CAST_M5206E(volatile UINT16 *) M5206E_TIMER_REG(base, 0x108, n))
- /* Timer 1/2 Counter */
- #define M5206E_TIMER_TCN(base, n)
- (CAST_M5206E(volatile UINT16 *) M5206E_TIMER_REG(base, 0x10c, n))
- /* Timer 1/2 Event Register */
- #define M5206E_TIMER_TER(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_TIMER_REG(base, 0x111, n))
- /* UART 1 & 2 */
- #define M5206E_UART_REG(base, offset, chan)
- ((base) + (offset) + ((chan) * 0x40))
- /* UART 1/2 Mode Registers */
- #define M5206E_UART_MR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x140, n))
- /* UART 1/2 Status Register */
- #define M5206E_UART_SR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x144, n))
- /* UART 1/2 Clock-Select Register */
- #define M5206E_UART_CSR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x144, n))
- /* UART 1/2 Command Register */
- #define M5206E_UART_CR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x148, n))
- /* UART 1/2 Receive Buffer */
- #define M5206E_UART_RB(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x14c, n))
- /* UART 1/2 Transmit Buffer */
- #define M5206E_UART_TB(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x14c, n))
- /* UART 1/2 Input Port Change Register */
- #define M5206E_UART_IPCR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x150, n))
- /* UART 1/2 Input Auxilary Control Register */
- #define M5206E_UART_ACR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x150, n))
- /* UART 1/2 Interrupt Status Register */
- #define M5206E_UART_ISR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x154, n))
- /* UART 1/2 Interrupt Mask Register */
- #define M5206E_UART_IMR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x154, n))
- /* UART 1/2 Baud Rate Generator Prescale MSB */
- #define M5206E_UART_BG1(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x158, n))
- /* UART 1/2 Baud Rate Generator Prescale LSB */
- #define M5206E_UART_BG2(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x15c, n))
- /* UART 1/2 Interrupt Vector Register */
- #define M5206E_UART_IVR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x170, n))
- /* UART 1/2 Interrupt Port Register */
- #define M5206E_UART_IP(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x174, n))
- /* UART 1/2 Output Port Bit Set CMD */
- #define M5206E_UART_OP1(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x178, n))
- /* UART 1/2 Output Port Bit Reset CMD */
- #define M5206E_UART_OP2(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_UART_REG((base), 0x17c, n))
- /* MBUS regs */
- /* M-Bus Address Register */
- #define M5206E_MADR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x1e0))
- /* M-Bus Frequency Divider Register */
- #define M5206E_MFDR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x1e4))
- /* M-Bus Control Register */
- #define M5206E_MBCR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x1e8))
- /* M-Bus Control Register */
- #define M5206E_MBSR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x1ec))
- /* M-Bus Data I/O Register */
- #define M5206E_MBDR(base) (CAST_M5206E(volatile UINT8 *)((base) + 0x1f0))
- /* DMA 0 & 1 */
- #define M5206E_DMA_REG(base, offset, chan)
- ((base) + (offset) + ((chan) * 0x40))
- /* Source Address Registers */
- #define M5206E_DMA_DMASAR(base, n)
- (CAST_M5206E(volatile UINT32 *) M5206E_DMA_REG((base), 0x200, n))
- /* Destination Address Registers */
- #define M5206E_DMA_DMADAR(base, n)
- (CAST_M5206E(volatile UINT32 *) M5206E_DMA_REG((base), 0x204, n))
- /* DMA Control Registers */
- #define M5206E_DMA_DCR(base, n)
- (CAST_M5206E(volatile UINT16 *) M5206E_DMA_REG((base), 0x208, n))
- /* Byte Count Registers */
- #define M5206E_DMA_BCR(base, n)
- (CAST_M5206E(volatile UINT16 *) M5206E_DMA_REG((base), 0x20c, n))
- /* Status Registers */
- #define M5206E_DMA_DSR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_DMA_REG((base), 0x210, n))
- /* Interrupt Vector Registers */
- #define M5206E_DMA_DIVR(base, n)
- (CAST_M5206E(volatile UINT8 *) M5206E_DMA_REG((base), 0x214, n))
- /* SIM Module Configuration Register definitions */
- /* ICR - encode bits for ICR_xx registers */
- #define M5206E_SIM_ICR_BITS(auto, level, priority)
- ((((auto) & 0x01) << 7)
- | (((level) & 0x07) << 2)
- | ((priority) & 0x03))
- /* IMR - Interrupt Mask Register bit definitions */
- #define M5206E_IMR_IRQ1 (1 << 1)
- #define M5206E_IMR_IRQ2 (1 << 2)
- #define M5206E_IMR_IRQ3 (1 << 3)
- #define M5206E_IMR_IRQ4 (1 << 4)
- #define M5206E_IMR_IRQ5 (1 << 5)
- #define M5206E_IMR_IRQ6 (1 << 6)
- #define M5206E_IMR_IRQ7 (1 << 7)
- #define M5206E_IMR_SWT (1 << 8)
- #define M5206E_IMR_TIMER1 (1 << 9)
- #define M5206E_IMR_TIMER2 (1 << 10)
- #define M5206E_IMR_MBUS (1 << 11)
- #define M5206E_IMR_UART1 (1 << 12)
- #define M5206E_IMR_UART2 (1 << 13)
- #define M5206E_IMR_DMA0 (1 << 14)
- #define M5206E_IMR_DMA1 (1 << 15)
- /* chip select mask registers */
- #define M5206E_CS_CSMR_MASK_64k 0x00000000
- #define M5206E_CS_CSMR_MASK_128k 0x00010000
- #define M5206E_CS_CSMR_MASK_256k 0x00030000
- #define M5206E_CS_CSMR_MASK_512k 0x00070000
- #define M5206E_CS_CSMR_MASK_1M 0x000f0000
- #define M5206E_CS_CSMR_MASK_2M 0x001f0000
- #define M5206E_CS_CSMR_MASK_4M 0x003f0000
- #define M5206E_CS_CSMR_MASK_8M 0x007f0000
- #define M5206E_CS_CSMR_MASK_16M 0x00ff0000
- #define M5206E_CS_CSMR_MASK_32M 0x01ff0000
- #define M5206E_CS_CSMR_MASK_64M 0x03ff0000
- #define M5206E_CS_CSMR_MASK_128M 0x07ff0000
- #define M5206E_CS_CSMR_MASK_256M 0x0fff0000
- #define M5206E_CS_CSMR_MASK_512M 0x1fff0000
- #define M5206E_CS_CSMR_MASK_1G 0x3fff0000
- #define M5206E_CS_CSMR_MASK_2G 0x7fff0000
- #define M5206E_CS_CSMR_MASK_4G 0xffff0000
- #define M5206E_CS_CSMR_CI (1 << 5) /* /CS1 only */
- #define M5206E_CS_CSMR_SC (1 << 4)
- #define M5206E_CS_CSMR_SD (1 << 3)
- #define M5206E_CS_CSMR_UC (1 << 2)
- #define M5206E_CS_CSMR_UD (1 << 1)
- /* chip select control regs (CSCR) & default mem control reg (DMCR) */
- #define M5206E_CS_CSCR_WS(n) ((n) << 10) /* wait-states */
- #define M5206E_CS_CSCR_WS_15 M5206E_CS_CSCR_WS(15)
- #define M5206E_CS_CSCR_WS_14 M5206E_CS_CSCR_WS(14)
- #define M5206E_CS_CSCR_WS_13 M5206E_CS_CSCR_WS(13)
- #define M5206E_CS_CSCR_WS_12 M5206E_CS_CSCR_WS(12)
- #define M5206E_CS_CSCR_WS_11 M5206E_CS_CSCR_WS(11)
- #define M5206E_CS_CSCR_WS_10 M5206E_CS_CSCR_WS(10)
- #define M5206E_CS_CSCR_WS_9 M5206E_CS_CSCR_WS(9)
- #define M5206E_CS_CSCR_WS_8 M5206E_CS_CSCR_WS(8)
- #define M5206E_CS_CSCR_WS_7 M5206E_CS_CSCR_WS(7)
- #define M5206E_CS_CSCR_WS_6 M5206E_CS_CSCR_WS(6)
- #define M5206E_CS_CSCR_WS_5 M5206E_CS_CSCR_WS(5)
- #define M5206E_CS_CSCR_WS_4 M5206E_CS_CSCR_WS(4)
- #define M5206E_CS_CSCR_WS_3 M5206E_CS_CSCR_WS(3)
- #define M5206E_CS_CSCR_WS_2 M5206E_CS_CSCR_WS(2)
- #define M5206E_CS_CSCR_WS_1 M5206E_CS_CSCR_WS(1)
- #define M5206E_CS_CSCR_WS_0 M5206E_CS_CSCR_WS(0)
- #define M5206E_CS_CSCR_BRST (1 << 9) /* allow burst access */
- #define M5206E_CS_CSCR_AA (1 << 8) /* auto-acknowledge */
- #define M5206E_CS_CSCR_PS_32 (0 << 6) /* 32-bit port size */
- #define M5206E_CS_CSCR_PS_8 (1 << 6) /* 8-bit port size */
- #define M5206E_CS_CSCR_PS_16 (2 << 6) /* 16-bit port size */
- #define M5206E_CS_CSCR_EMAA (1 << 5) /* alternate master auto-ack */
- #define M5206E_CS_CSCR_ASET (1 << 4) /* address setup enable */
- #define M5206E_CS_CSCR_WRAH (1 << 3) /* write address hold enable */
- #define M5206E_CS_CSCR_RDAH (1 << 2) /* read address hold enable */
- #define M5206E_CS_CSCR_WR (1 << 1) /* write enable */
- #define M5206E_CS_CSCR_RD (1 << 0) /* read enable */
- /* DRAM Controller Timing Register (DCTR) */
- #define M5206E_DCTR_DAEM (1 << 15) /* drive multiplexed addr */
- #define M5206E_DCTR_EDO (1 << 14) /* EDO enable */
- #define M5206E_DCTR_RCD (1 << 12) /* RAS-to-CAS delay */
- #define M5206E_DCTR_RSH1 (1 << 10) /* RAS hold time */
- #define M5206E_DCTR_RSH0 (1 << 9) /* RAS hold time */
- #define M5206E_DCTR_RP1 (1 << 6) /* RAS precharge time */
- #define M5206E_DCTR_RP0 (1 << 5) /* RAS prechange time */
- #define M5206E_DCTR_CAS (1 << 3) /* CAS time */
- #define M5206E_DCTR_CP (1 << 1) /* CAS precharge time */
- #define M5206E_DCTR_CSR (1 << 0) /* CAS setup time */
- /* dram controller mask registers */
- #define M5206E_DCMR_MASK_128k 0x00000000
- #define M5206E_DCMR_MASK_256k 0x00020000
- #define M5206E_DCMR_MASK_512k 0x00060000
- #define M5206E_DCMR_MASK_1M 0x000e0000
- #define M5206E_DCMR_MASK_2M 0x001e0000
- #define M5206E_DCMR_MASK_4M 0x003e0000
- #define M5206E_DCMR_MASK_8M 0x007e0000
- #define M5206E_DCMR_MASK_16M 0x00fe0000
- #define M5206E_DCMR_MASK_32M 0x01fe0000
- #define M5206E_DCMR_MASK_64M 0x03fe0000
- #define M5206E_DCMR_MASK_128M 0x07fe0000
- #define M5206E_DCMR_MASK_256M 0x0ffe0000
- #define M5206E_DCMR_MASK_512M 0x1ffe0000
- #define M5206E_DCMR_MASK_1G 0x3ffe0000
- #define M5206E_DCMR_MASK_2G 0x7ffe0000
- #define M5206E_DCMR_MASK_4G 0xfffe0000
- #define M5206E_DCMR_SC (1 << 4)
- #define M5206E_DCMR_SD (1 << 3)
- #define M5206E_DCMR_UC (1 << 2)
- #define M5206E_DCMR_UD (1 << 1)
- /* DRAM Controller Control Register */
- #define M5206E_DCCR_PS_32 (0 << 6) /* 32-bit port size */
- #define M5206E_DCCR_PS_8 (1 << 6) /* 8-bit port size */
- #define M5206E_DCCR_PS_16 (3 << 6) /* 16-bit port size */
- #define M5206E_DCCR_BPS_512B (0 << 4) /* 512byte bank page size */
- #define M5206E_DCCR_BPS_1K (1 << 4) /* 1Kb bank page size */
- #define M5206E_DCCR_BPS_2K (2 << 4) /* 2Kb bank page size */
- #define M5206E_DCCR_MODE_NORMAL (0 << 2) /* normal page mode */
- #define M5206E_DCCR_MODE_BURST (1 << 2) /* burst page mode */
- #define M5206E_DCCR_MODE_FAST (3 << 2) /* fast page mode */
- #define M5206E_DCCR_WR (1 << 1) /* Signal on write xfer */
- #define M5206E_DCCR_RD (1 << 0) /* Signal on read xfer */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCm5206eh */