?? ep7312.h
字號:
/* * linux/include/asm-arm/arch-ep7211/ep7211.h * * Written 1998,1999 by Werner Almesberger * Modified 1999 by Ben Williamson, from clps7110.h * * This file contains the hardware definitions of the EP7211 chip */#ifndef _ASM_ARCH_EP7211_H#define _ASM_ARCH_EP7211_H/* * EP7211 internal registers * * The names will almost certainly clash with something else ... so we'll * probably have to prefix them with EP7211_ or something equally ugly later. */#define PADR 0x0000 /* Port A Data register ---------------------------- */#define PBDR 0x0001 /* Port B Data register ---------------------------- */#define PDDR 0x0003 /* Port D Data register ---------------------------- */#define PADDR 0x0040 /* Port A Data Direction register ------------------ */#define PBDDR 0x0041 /* Port B Data Direction register ------------------ */#define PDDDR 0x0043 /* Port D Data Direction register ------------------ */#define PEDR 0x0080 /* Port E Data register ---------------------------- */ #define PEDDR 0x00c0 /* Port E Data Direction register ------------------ */#define SYSCON1 0x0100 /* System Control register ------------------------- */#define KBDSCAN 0x0000000f /* Keyboard scan */#define KBSC_HI 0x0 /* All driven high */#define KBSC_LO 0x1 /* All driven low */#define KBSC_X 0x2 /* All high impedance */#define KBSC_COL0 0x8 /* Column 0 high, others high impedance */#define KBSC_COL1 0x9 /* Column 1 high, others high impedance */#define KBSC_COL2 0xa /* Column 2 high, others high impedance */#define KBSC_COL3 0xb /* Column 3 high, others high impedance */#define KBSC_COL4 0xc /* Column 4 high, others high impedance */#define KBSC_COL5 0xd /* Column 5 high, others high impedance */#define KBSC_COL6 0xe /* Column 6 high, others high impedance */#define KBSC_COL7 0xf /* Column 7 high, others high impedance */#define TC1M 0x00000010 /* TC1 mode (0: free-running, 1: prescale) */#define TC1S 0x00000020 /* TC1 clock source (0: 2 kHz, 1: 512 kHz) */#define TC2M 0x00000040 /* TC2 mode (0: free-running, 1: prescale) */#define TC2S 0x00000080 /* TC2 clock source (0: 2 kHz, 1: 512 kHz) */#define UART1EN 0x00000100 /* Internal UART enable */#define BZTOG 0x00000200 /* Drive buzzer directly */#define BZMOD 0x00000400 /* Buzzer drive mode (0: BZTOG, 1: TC1 under-flow)*/#define DBGEN 0x00000800 /* Debug mode */#define LCDEN 0x00001000 /* LCD enable */#define CDENTX 0x00002000 /* Codec interface enable Tx */#define CDENRX 0x00004000 /* Codec interface enable Rx */#define SIREN 0x00008000 /* HP SIR protocol encoding enable */#define ADCKSEL 0x00030000 /* Microwire/SPI peripheral clock speed select */#define ADCKSEL_SHIFT 16#define ADCS_8 0x0 /* Sample 8 kHz, interface 4 kHz */#define ADCS_32 0x1 /* 32/16 kHz */#define ADCS_128 0x2 /* 128/64 kHz */#define ADCS_256 0x3 /* 256/128 kHz */#define EXCKEN 0x00040000 /* External expansion clock enable */#define WAKEDIS 0x00080000 /* Disable switch-on through wake-up */#define IRTXM 0x00100000 /* IrDA Tx mode (0: 3/16 of rate, 1: 1.63 us) */#define SYSFLG1 0x0140 /* System Status Flags register -------------------- */#define MCDR 0x00000001 /* Media changed direct read */#define DCDET 0x00000002 /* Main adapter is powering the system */#define WUDR 0x00000004 /* Wake-up direct read */#define WUON 0x00000008 /* Left standby on wake-up */#define DID 0x000000f0 /* Display ID nibble */#define DID_SHIFT 4#define CTS 0x00000100 /* UART CTS */#define DSR 0x00000200 /* UART DSR */#define DCD 0x00000400 /* UART DCD */#define UBUSY1 0x00000800 /* UART transmitter busy */#define NBFLG 0x00001000 /* New battery flag */#define RSTFLG 0x00002000 /* Reset flag */#define PFFLG 0x00004000 /* Power fail flag */#define CLDFLG 0x00008000 /* Cold start flag */#define RTCDIV 0x003f0000 /* 64 Hz ticks since last RTC increment */#define RTCDIV_SHIFT 16#define URXFE1 0x00400000 /* UART receiver FIFO empty */#define UTXFF1 0x00800000 /* UART transmit FIFO full */#define CRXFE 0x01000000 /* Codec Rx FIFO empty */#define CTXFF 0x02000000 /* Codec Tx FIFO full */#define SSIBUSY 0x04000000 /* Synchronous serial interface busy */#define BOOTBIT 0x18000000 /* Initial bus width from PE[1:0] */#define BOOTBIT_32 0x00000000 /* 32 bits */#define BOOTBIT_8 0x08000000 /* 8 bits */#define BOOTBIT_16 0x10000000 /* 16 bits */#define ID 0x20000000 /* Always read '1' for the EP7312 Device */#define VERID 0xc0000000 /* Version ID, will read '01' */#define VERID_SHIFT 30#define MEMCFG1 0x0180 /* Memory Configuration register 1 ----------------- */#define MEMCFG2 0x01c0 /* Memory Configuration register 2 ----------------- */#define CS_BW 0x03 /* Bus width */#define CS_BW_BUS32_E0 0 /* 32 bit if E=0 */#define CS_BW_BUS16_E0 1 /* 16 bit if E=0 */#define CS_BW_BUS8_E0 2 /* 8 bit if E=0 */#define CS_BW_BUS8_E1 0 /* 8 bit if E=1 */#define CS_BW_BUS32_E1 2 /* 32 bit if E=1 */#define CS_BW_BUS16_E1 3 /* 16 bit if E=1 */#define CS_BW_BUS16_E2 0 /* 16 bit if E=2 */#define CS_BW_BUS32_E2 1 /* 32 bit if E=2 */#define CS_BW_BUS8_E2 3 /* 8 bit if E=2 */#define CS_RAWT 0x0c /* Random Access Wait State */#define CS_RAWT_SHIFT 2 /* WS = 4-N; speed = 50+50*WS ns */#define CS_SAWR 0x30 /* Sequential Access Wait State */#define CS_SAWR_SHIFT 4 /* WS = 3-N; speed[WS] = 40,80,120,150 ns */#define CS_SQAEN 0x40 /* Sequential Access Enable */#define CS_CLKEN 0x80 /* Expansion Clock Enable */#define DRFPR 0x0200#define INTSR1 0x0240 /* Interrupt Status register ----------------------- */#define EXTFIQ 0x00000001 /* External fast interrupt */#define BLINT 0x00000002 /* Battery low interrupt */#define WEINT 0x00000004 /* Watch dog expired interrupt */#define MCINT 0x00000008 /* Media changed interrupt */#define CSINT 0x00000010 /* Codec sound interrupt */#define EINT1 0x00000020 /* External interrupt 1 */#define EINT2 0x00000040 /* External interrupt 2 */#define EINT3 0x00000080 /* External interrupt 3 */#define TC1OI 0x00000100 /* TC1 under-flow interrupt */#define TC2OI 0x00000200 /* TC2 under-flow interrupt */#define RTCMI 0x00000400 /* RTC compare match interrupt */#define TINT 0x00000800 /* 64-Hz tick interrupt */#define UTXINT1 0x00001000 /* Internal UART transmit FIFO half-empty intr. */#define URXINT1 0x00002000 /* Internal UART receive FIFO half-full interrupt */#define UMSINT 0x00004000 /* Internal UART modem status changed interrupt */#define SSEOTI 0x00008000 /* Synchronous serial interface end-of-transfer */#define INTMR1 0x0280 /* Interrupt Mask register ------------------------- */#define LCDCON 0x02c0 /* LCD Control register ---------------------------- */#define VBUFSIZ 0x00001fff /* Video buffer size (bits/128-1) */#define LINELEN 0x0007e000 /* Line length (pix/16-1) */#define LINELEN_SHIFT 13#define PIXPSC 0x01f80000 /* Pixel prescale (526628/pixels-1) */#define PIXPSC_SHIFT 19#define ACPSC 0x3e000000 /* AC prescale */#define ACPSC_SHIFT 25#define GSEN 0x40000000 /* Grayscale enable (0: monochrome) */#define GSMD 0x80000000 /* Grayscale mode (0: 2 bit, 1: 4 bit) */#define TC1D 0x0300 /* Timer Counter 1 Data register ------------------- */#define TC_MASK 0x0000ffff#define TC2D 0x0340 /* Timer Counter 2 Data register ------------------- */#define RTCDR 0x0380 /* Realtime Clock Data register -------------------- */#define RTCMR 0x03c0 /* Realtime Clock Match register ------------------- */#define PMPCON 0x0400#define CODR 0x0440 /* Codec Interface Data register ------------------- */#define UARTDR1 0x0480 /* UART FIFO Data register ------------------------- */#define RX_DATA 0x000000ff /* Rx data */#define FRMERR 0x00000100 /* UART framing error */#define PARERR 0x00000200 /* UART parity error */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -