Lines Matching +full:0 +full:xfffffd00
29 * 0xFFFFF0xx -- System Control
36 #define SCR_ADDR 0xfffff000
39 #define SCR_WDTH8 0x01 /* 8-Bit Width Select */
40 #define SCR_DMAP 0x04 /* Double Map */
41 #define SCR_SO 0x08 /* Supervisor Only */
42 #define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */
43 #define SCR_PRV 0x20 /* Privilege Violation */
44 #define SCR_WPV 0x40 /* Write Protect Violation */
45 #define SCR_BETO 0x80 /* Bus-Error TimeOut */
50 #define MRR_ADDR 0xfffff004
55 * 0xFFFFF1xx -- Chip-Select logic
62 #define CSGBA_ADDR 0xfffff100
63 #define CSGBB_ADDR 0xfffff102
65 #define CSGBC_ADDR 0xfffff104
66 #define CSGBD_ADDR 0xfffff106
76 #define CSA_ADDR 0xfffff110
77 #define CSB_ADDR 0xfffff112
78 #define CSC_ADDR 0xfffff114
79 #define CSD_ADDR 0xfffff116
86 #define CSA_EN 0x0001 /* Chip-Select Enable */
87 #define CSA_SIZ_MASK 0x000e /* Chip-Select Size */
89 #define CSA_WS_MASK 0x0070 /* Wait State */
91 #define CSA_BSW 0x0080 /* Data Bus Width */
92 #define CSA_FLASH 0x0100 /* FLASH Memory Support */
93 #define CSA_RO 0x8000 /* Read-Only */
95 #define CSB_EN 0x0001 /* Chip-Select Enable */
96 #define CSB_SIZ_MASK 0x000e /* Chip-Select Size */
98 #define CSB_WS_MASK 0x0070 /* Wait State */
100 #define CSB_BSW 0x0080 /* Data Bus Width */
101 #define CSB_FLASH 0x0100 /* FLASH Memory Support */
102 #define CSB_UPSIZ_MASK 0x1800 /* Unprotected memory block size */
104 #define CSB_ROP 0x2000 /* Readonly if protected */
105 #define CSB_SOP 0x4000 /* Supervisor only if protected */
106 #define CSB_RO 0x8000 /* Read-Only */
108 #define CSC_EN 0x0001 /* Chip-Select Enable */
109 #define CSC_SIZ_MASK 0x000e /* Chip-Select Size */
111 #define CSC_WS_MASK 0x0070 /* Wait State */
113 #define CSC_BSW 0x0080 /* Data Bus Width */
114 #define CSC_FLASH 0x0100 /* FLASH Memory Support */
115 #define CSC_UPSIZ_MASK 0x1800 /* Unprotected memory block size */
117 #define CSC_ROP 0x2000 /* Readonly if protected */
118 #define CSC_SOP 0x4000 /* Supervisor only if protected */
119 #define CSC_RO 0x8000 /* Read-Only */
121 #define CSD_EN 0x0001 /* Chip-Select Enable */
122 #define CSD_SIZ_MASK 0x000e /* Chip-Select Size */
124 #define CSD_WS_MASK 0x0070 /* Wait State */
126 #define CSD_BSW 0x0080 /* Data Bus Width */
127 #define CSD_FLASH 0x0100 /* FLASH Memory Support */
128 #define CSD_DRAM 0x0200 /* Dram Selection */
129 #define CSD_COMB 0x0400 /* Combining */
130 #define CSD_UPSIZ_MASK 0x1800 /* Unprotected memory block size */
132 #define CSD_ROP 0x2000 /* Readonly if protected */
133 #define CSD_SOP 0x4000 /* Supervisor only if protected */
134 #define CSD_RO 0x8000 /* Read-Only */
139 #define EMUCS_ADDR 0xfffff118
142 #define EMUCS_WS_MASK 0x0070
147 * 0xFFFFF2xx -- Phase Locked Loop (PLL) & Power Control
154 #define PLLCR_ADDR 0xfffff200
157 #define PLLCR_DISPLL 0x0008 /* Disable PLL */
158 #define PLLCR_CLKEN 0x0010 /* Clock (CLKO pin) enable */
159 #define PLLCR_PRESC 0x0020 /* VCO prescaler */
160 #define PLLCR_SYSCLK_SEL_MASK 0x0700 /* System Clock Selection */
162 #define PLLCR_LCDCLK_SEL_MASK 0x3800 /* LCD Clock Selection */
172 #define PLLFSR_ADDR 0xfffff202
175 #define PLLFSR_PC_MASK 0x00ff /* P Count */
176 #define PLLFSR_PC_SHIFT 0
177 #define PLLFSR_QC_MASK 0x0f00 /* Q Count */
179 #define PLLFSR_PROT 0x4000 /* Protect P & Q */
180 #define PLLFSR_CLK32 0x8000 /* Clock 32 (kHz) */
185 #define PCTRL_ADDR 0xfffff207
188 #define PCTRL_WIDTH_MASK 0x1f /* CPU Clock bursts width */
189 #define PCTRL_WIDTH_SHIFT 0
190 #define PCTRL_PCEN 0x80 /* Power Control Enable */
194 * 0xFFFFF3xx -- Interrupt Controller
201 #define IVR_ADDR 0xfffff300
204 #define IVR_VECTOR_MASK 0xF8
209 #define ICR_ADDR 0xfffff302
212 #define ICR_POL5 0x0080 /* Polarity Control for IRQ5 */
213 #define ICR_ET6 0x0100 /* Edge Trigger Select for IRQ6 */
214 #define ICR_ET3 0x0200 /* Edge Trigger Select for IRQ3 */
215 #define ICR_ET2 0x0400 /* Edge Trigger Select for IRQ2 */
216 #define ICR_ET1 0x0800 /* Edge Trigger Select for IRQ1 */
217 #define ICR_POL6 0x1000 /* Polarity Control for IRQ6 */
218 #define ICR_POL3 0x2000 /* Polarity Control for IRQ3 */
219 #define ICR_POL2 0x4000 /* Polarity Control for IRQ2 */
220 #define ICR_POL1 0x8000 /* Polarity Control for IRQ1 */
225 #define IMR_ADDR 0xfffff304
232 #define SPI2_IRQ_NUM 0 /* SPI 2 interrupt */
291 #define ISR_ADDR 0xfffff30c
320 #define IPR_ADDR 0xfffff30c
348 * 0xFFFFF4xx -- Parallel Ports
355 #define PADIR_ADDR 0xfffff400 /* Port A direction reg */
356 #define PADATA_ADDR 0xfffff401 /* Port A data register */
357 #define PAPUEN_ADDR 0xfffff402 /* Port A Pull-Up enable reg */
368 #define PBDIR_ADDR 0xfffff408 /* Port B direction reg */
369 #define PBDATA_ADDR 0xfffff409 /* Port B data register */
370 #define PBPUEN_ADDR 0xfffff40a /* Port B Pull-Up enable reg */
371 #define PBSEL_ADDR 0xfffff40b /* Port B Select Register */
380 #define PB_CSB0 0x01 /* Use CSB0 as PB[0] */
381 #define PB_CSB1 0x02 /* Use CSB1 as PB[1] */
382 #define PB_CSC0_RAS0 0x04 /* Use CSC0/RAS0 as PB[2] */
383 #define PB_CSC1_RAS1 0x08 /* Use CSC1/RAS1 as PB[3] */
384 #define PB_CSD0_CAS0 0x10 /* Use CSD0/CAS0 as PB[4] */
385 #define PB_CSD1_CAS1 0x20 /* Use CSD1/CAS1 as PB[5] */
386 #define PB_TIN_TOUT 0x40 /* Use TIN/TOUT as PB[6] */
387 #define PB_PWMO 0x80 /* Use PWMO as PB[7] */
392 #define PCDIR_ADDR 0xfffff410 /* Port C direction reg */
393 #define PCDATA_ADDR 0xfffff411 /* Port C data register */
394 #define PCPDEN_ADDR 0xfffff412 /* Port C Pull-Down enb. reg */
395 #define PCSEL_ADDR 0xfffff413 /* Port C Select Register */
404 #define PC_LD0 0x01 /* Use LD0 as PC[0] */
405 #define PC_LD1 0x02 /* Use LD1 as PC[1] */
406 #define PC_LD2 0x04 /* Use LD2 as PC[2] */
407 #define PC_LD3 0x08 /* Use LD3 as PC[3] */
408 #define PC_LFLM 0x10 /* Use LFLM as PC[4] */
409 #define PC_LLP 0x20 /* Use LLP as PC[5] */
410 #define PC_LCLK 0x40 /* Use LCLK as PC[6] */
411 #define PC_LACD 0x80 /* Use LACD as PC[7] */
416 #define PDDIR_ADDR 0xfffff418 /* Port D direction reg */
417 #define PDDATA_ADDR 0xfffff419 /* Port D data register */
418 #define PDPUEN_ADDR 0xfffff41a /* Port D Pull-Up enable reg */
419 #define PDSEL_ADDR 0xfffff41b /* Port D Select Register */
420 #define PDPOL_ADDR 0xfffff41c /* Port D Polarity Register */
421 #define PDIRQEN_ADDR 0xfffff41d /* Port D IRQ enable register */
422 #define PDKBEN_ADDR 0xfffff41e /* Port D Keyboard Enable reg */
423 #define PDIQEG_ADDR 0xfffff41f /* Port D IRQ Edge Register */
436 #define PD_INT0 0x01 /* Use INT0 as PD[0] */
437 #define PD_INT1 0x02 /* Use INT1 as PD[1] */
438 #define PD_INT2 0x04 /* Use INT2 as PD[2] */
439 #define PD_INT3 0x08 /* Use INT3 as PD[3] */
440 #define PD_IRQ1 0x10 /* Use IRQ1 as PD[4] */
441 #define PD_IRQ2 0x20 /* Use IRQ2 as PD[5] */
442 #define PD_IRQ3 0x40 /* Use IRQ3 as PD[6] */
443 #define PD_IRQ6 0x80 /* Use IRQ6 as PD[7] */
448 #define PEDIR_ADDR 0xfffff420 /* Port E direction reg */
449 #define PEDATA_ADDR 0xfffff421 /* Port E data register */
450 #define PEPUEN_ADDR 0xfffff422 /* Port E Pull-Up enable reg */
451 #define PESEL_ADDR 0xfffff423 /* Port E Select Register */
460 #define PE_SPMTXD 0x01 /* Use SPMTXD as PE[0] */
461 #define PE_SPMRXD 0x02 /* Use SPMRXD as PE[1] */
462 #define PE_SPMCLK 0x04 /* Use SPMCLK as PE[2] */
463 #define PE_DWE 0x08 /* Use DWE as PE[3] */
464 #define PE_RXD 0x10 /* Use RXD as PE[4] */
465 #define PE_TXD 0x20 /* Use TXD as PE[5] */
466 #define PE_RTS 0x40 /* Use RTS as PE[6] */
467 #define PE_CTS 0x80 /* Use CTS as PE[7] */
472 #define PFDIR_ADDR 0xfffff428 /* Port F direction reg */
473 #define PFDATA_ADDR 0xfffff429 /* Port F data register */
474 #define PFPUEN_ADDR 0xfffff42a /* Port F Pull-Up enable reg */
475 #define PFSEL_ADDR 0xfffff42b /* Port F Select Register */
484 #define PF_LCONTRAST 0x01 /* Use LCONTRAST as PF[0] */
485 #define PF_IRQ5 0x02 /* Use IRQ5 as PF[1] */
486 #define PF_CLKO 0x04 /* Use CLKO as PF[2] */
487 #define PF_A20 0x08 /* Use A20 as PF[3] */
488 #define PF_A21 0x10 /* Use A21 as PF[4] */
489 #define PF_A22 0x20 /* Use A22 as PF[5] */
490 #define PF_A23 0x40 /* Use A23 as PF[6] */
491 #define PF_CSA1 0x80 /* Use CSA1 as PF[7] */
496 #define PGDIR_ADDR 0xfffff430 /* Port G direction reg */
497 #define PGDATA_ADDR 0xfffff431 /* Port G data register */
498 #define PGPUEN_ADDR 0xfffff432 /* Port G Pull-Up enable reg */
499 #define PGSEL_ADDR 0xfffff433 /* Port G Select Register */
508 #define PG_BUSW_DTACK 0x01 /* Use BUSW/DTACK as PG[0] */
509 #define PG_A0 0x02 /* Use A0 as PG[1] */
510 #define PG_EMUIRQ 0x04 /* Use EMUIRQ as PG[2] */
511 #define PG_HIZ_P_D 0x08 /* Use HIZ/P/D as PG[3] */
512 #define PG_EMUCS 0x10 /* Use EMUCS as PG[4] */
513 #define PG_EMUBRK 0x20 /* Use EMUBRK as PG[5] */
518 #define PJDIR_ADDR 0xfffff438 /* Port J direction reg */
519 #define PJDATA_ADDR 0xfffff439 /* Port J data register */
520 #define PJPUEN_ADDR 0xfffff43A /* Port J Pull-Up enb. reg */
521 #define PJSEL_ADDR 0xfffff43B /* Port J Select Register */
533 #define PKDIR_ADDR 0xfffff440 /* Port K direction reg */
534 #define PKDATA_ADDR 0xfffff441 /* Port K data register */
535 #define PKPUEN_ADDR 0xfffff442 /* Port K Pull-Up enb. reg */
536 #define PKSEL_ADDR 0xfffff443 /* Port K Select Register */
545 #define PK_DATAREADY 0x01 /* Use ~DATA_READY as PK[0] */
546 #define PK_PWM2 0x01 /* Use PWM2 as PK[0] */
547 #define PK_R_W 0x02 /* Use R/W as PK[1] */
548 #define PK_LDS 0x04 /* Use /LDS as PK[2] */
549 #define PK_UDS 0x08 /* Use /UDS as PK[3] */
550 #define PK_LD4 0x10 /* Use LD4 as PK[4] */
551 #define PK_LD5 0x20 /* Use LD5 as PK[5] */
552 #define PK_LD6 0x40 /* Use LD6 as PK[6] */
553 #define PK_LD7 0x80 /* Use LD7 as PK[7] */
555 #define PJDIR_ADDR 0xfffff438 /* Port J direction reg */
556 #define PJDATA_ADDR 0xfffff439 /* Port J data register */
557 #define PJPUEN_ADDR 0xfffff43A /* Port J Pull-Up enable reg */
558 #define PJSEL_ADDR 0xfffff43B /* Port J Select Register */
567 #define PJ_MOSI 0x01 /* Use MOSI as PJ[0] */
568 #define PJ_MISO 0x02 /* Use MISO as PJ[1] */
569 #define PJ_SPICLK1 0x04 /* Use SPICLK1 as PJ[2] */
570 #define PJ_SS 0x08 /* Use SS as PJ[3] */
571 #define PJ_RXD2 0x10 /* Use RXD2 as PJ[4] */
572 #define PJ_TXD2 0x20 /* Use TXD2 as PJ[5] */
573 #define PJ_RTS2 0x40 /* Use RTS2 as PJ[5] */
574 #define PJ_CTS2 0x80 /* Use CTS2 as PJ[5] */
579 #define PMDIR_ADDR 0xfffff448 /* Port M direction reg */
580 #define PMDATA_ADDR 0xfffff449 /* Port M data register */
581 #define PMPUEN_ADDR 0xfffff44a /* Port M Pull-Up enable reg */
582 #define PMSEL_ADDR 0xfffff44b /* Port M Select Register */
591 #define PM_SDCLK 0x01 /* Use SDCLK as PM[0] */
592 #define PM_SDCE 0x02 /* Use SDCE as PM[1] */
593 #define PM_DQMH 0x04 /* Use DQMH as PM[2] */
594 #define PM_DQML 0x08 /* Use DQML as PM[3] */
595 #define PM_SDA10 0x10 /* Use SDA10 as PM[4] */
596 #define PM_DMOE 0x20 /* Use DMOE as PM[5] */
600 * 0xFFFFF5xx -- Pulse-Width Modulator (PWM)
607 #define PWMC_ADDR 0xfffff500
610 #define PWMC_CLKSEL_MASK 0x0003 /* Clock Selection */
611 #define PWMC_CLKSEL_SHIFT 0
612 #define PWMC_REPEAT_MASK 0x000c /* Sample Repeats */
614 #define PWMC_EN 0x0010 /* Enable PWM */
615 #define PMNC_FIFOAV 0x0020 /* FIFO Available */
616 #define PWMC_IRQEN 0x0040 /* Interrupt Request Enable */
617 #define PWMC_IRQ 0x0080 /* Interrupt Request (FIFO empty) */
618 #define PWMC_PRESCALER_MASK 0x7f00 /* Incoming Clock prescaler */
620 #define PWMC_CLKSRC 0x8000 /* Clock Source Select */
628 #define PWMS_ADDR 0xfffff502
634 #define PWMP_ADDR 0xfffff504
640 #define PWMCNT_ADDR 0xfffff505
645 * 0xFFFFF6xx -- General-Purpose Timer
652 #define TCTL_ADDR 0xfffff600
655 #define TCTL_TEN 0x0001 /* Timer Enable */
656 #define TCTL_CLKSOURCE_MASK 0x000e /* Clock Source: */
657 #define TCTL_CLKSOURCE_STOP 0x0000 /* Stop count (disabled) */
658 #define TCTL_CLKSOURCE_SYSCLK 0x0002 /* SYSCLK to prescaler */
659 #define TCTL_CLKSOURCE_SYSCLK_16 0x0004 /* SYSCLK/16 to prescaler */
660 #define TCTL_CLKSOURCE_TIN 0x0006 /* TIN to prescaler */
661 #define TCTL_CLKSOURCE_32KHZ 0x0008 /* 32kHz clock to prescaler */
662 #define TCTL_IRQEN 0x0010 /* IRQ Enable */
663 #define TCTL_OM 0x0020 /* Output Mode */
664 #define TCTL_CAP_MASK 0x00c0 /* Capture Edge: */
665 #define TCTL_CAP_RE 0x0040 /* Capture on rizing edge */
666 #define TCTL_CAP_FE 0x0080 /* Capture on falling edge */
667 #define TCTL_FRR 0x0010 /* Free-Run Mode */
676 #define TPRER_ADDR 0xfffff602
686 #define TCMP_ADDR 0xfffff604
696 #define TCR_ADDR 0xfffff606
706 #define TCN_ADDR 0xfffff608
716 #define TSTAT_ADDR 0xfffff60a
719 #define TSTAT_COMP 0x0001 /* Compare Event occurred */
720 #define TSTAT_CAPT 0x0001 /* Capture Event occurred */
728 * 0xFFFFF8xx -- Serial Peripheral Interface Master (SPIM)
735 #define SPIMDATA_ADDR 0xfffff800
741 #define SPIMCONT_ADDR 0xfffff802
744 #define SPIMCONT_BIT_COUNT_MASK 0x000f /* Transfer Length in Bytes */
745 #define SPIMCONT_BIT_COUNT_SHIFT 0
746 #define SPIMCONT_POL 0x0010 /* SPMCLK Signel Polarity */
747 #define SPIMCONT_PHA 0x0020 /* Clock/Data phase relationship */
748 #define SPIMCONT_IRQEN 0x0040 /* IRQ Enable */
749 #define SPIMCONT_IRQ 0x0080 /* Interrupt Request */
750 #define SPIMCONT_XCH 0x0100 /* Exchange */
751 #define SPIMCONT_ENABLE 0x0200 /* Enable SPIM */
752 #define SPIMCONT_DATA_RATE_MASK 0xe000 /* SPIM Data Rate */
761 * 0xFFFFF9xx -- UART
769 #define USTCNT_ADDR 0xfffff900
772 #define USTCNT_TXAE 0x0001 /* Transmitter Available Interrupt Enable */
773 #define USTCNT_TXHE 0x0002 /* Transmitter Half Empty Enable */
774 #define USTCNT_TXEE 0x0004 /* Transmitter Empty Interrupt Enable */
775 #define USTCNT_RXRE 0x0008 /* Receiver Ready Interrupt Enable */
776 #define USTCNT_RXHE 0x0010 /* Receiver Half-Full Interrupt Enable */
777 #define USTCNT_RXFE 0x0020 /* Receiver Full Interrupt Enable */
778 #define USTCNT_CTSD 0x0040 /* CTS Delta Interrupt Enable */
779 #define USTCNT_ODEN 0x0080 /* Old Data Interrupt Enable */
780 #define USTCNT_8_7 0x0100 /* Eight or seven-bit transmission */
781 #define USTCNT_STOP 0x0200 /* Stop bit transmission */
782 #define USTCNT_ODD 0x0400 /* Odd Parity */
783 #define USTCNT_PEN 0x0800 /* Parity Enable */
784 #define USTCNT_CLKM 0x1000 /* Clock Mode Select */
785 #define USTCNT_TXEN 0x2000 /* Transmitter Enable */
786 #define USTCNT_RXEN 0x4000 /* Receiver Enable */
787 #define USTCNT_UEN 0x8000 /* UART Enable */
805 #define UBAUD_ADDR 0xfffff902
808 #define UBAUD_PRESCALER_MASK 0x003f /* Actual divisor is 65 - PRESCALER */
809 #define UBAUD_PRESCALER_SHIFT 0
810 #define UBAUD_DIVIDE_MASK 0x0700 /* Baud Rate freq. divisor */
812 #define UBAUD_BAUD_SRC 0x0800 /* Baud Rate Source */
813 #define UBAUD_UCLKDIR 0x2000 /* UCLK Direction */
818 #define URX_ADDR 0xfffff904
821 #define URX_RXDATA_ADDR 0xfffff905
824 #define URX_RXDATA_MASK 0x00ff /* Received data */
825 #define URX_RXDATA_SHIFT 0
826 #define URX_PARITY_ERROR 0x0100 /* Parity Error */
827 #define URX_BREAK 0x0200 /* Break Detected */
828 #define URX_FRAME_ERROR 0x0400 /* Framing Error */
829 #define URX_OVRUN 0x0800 /* Serial Overrun */
830 #define URX_OLD_DATA 0x1000 /* Old data in FIFO */
831 #define URX_DATA_READY 0x2000 /* Data Ready (FIFO not empty) */
832 #define URX_FIFO_HALF 0x4000 /* FIFO is Half-Full */
833 #define URX_FIFO_FULL 0x8000 /* FIFO is Full */
838 #define UTX_ADDR 0xfffff906
841 #define UTX_TXDATA_ADDR 0xfffff907
844 #define UTX_TXDATA_MASK 0x00ff /* Data to be transmitted */
845 #define UTX_TXDATA_SHIFT 0
846 #define UTX_CTS_DELTA 0x0100 /* CTS changed */
847 #define UTX_CTS_STAT 0x0200 /* CTS State */
848 #define UTX_BUSY 0x0400 /* FIFO is busy, sending a character */
849 #define UTX_NOCTS 0x0800 /* Ignore CTS */
850 #define UTX_SEND_BREAK 0x1000 /* Send a BREAK */
851 #define UTX_TX_AVAIL 0x2000 /* Transmit FIFO has a slot available */
852 #define UTX_FIFO_HALF 0x4000 /* Transmit FIFO is half empty */
853 #define UTX_FIFO_EMPTY 0x8000 /* Transmit FIFO is empty */
862 #define UMISC_ADDR 0xfffff908
865 #define UMISC_TX_POL 0x0004 /* Transmit Polarity */
866 #define UMISC_RX_POL 0x0008 /* Receive Polarity */
867 #define UMISC_IRDA_LOOP 0x0010 /* IrDA Loopback Enable */
868 #define UMISC_IRDA_EN 0x0020 /* Infra-Red Enable */
869 #define UMISC_RTS 0x0040 /* Set RTS status */
870 #define UMISC_RTSCONT 0x0080 /* Choose RTS control */
871 #define UMISC_IR_TEST 0x0400 /* IRDA Test Enable */
872 #define UMISC_BAUD_RESET 0x0800 /* Reset Baud Rate Generation Counters */
873 #define UMISC_LOOP 0x1000 /* Serial Loopback Enable */
874 #define UMISC_FORCE_PERR 0x2000 /* Force Parity Error */
875 #define UMISC_CLKSRC 0x4000 /* Clock Source */
876 #define UMISC_BAUD_TEST 0x8000 /* Enable Baud Test Mode */
881 #define NIPR_ADDR 0xfffff90a
884 #define NIPR_STEP_VALUE_MASK 0x00ff /* NI prescaler step value */
885 #define NIPR_STEP_VALUE_SHIFT 0
886 #define NIPR_SELECT_MASK 0x0700 /* Tap Selection */
888 #define NIPR_PRE_SEL 0x8000 /* Non-integer prescaler select */
920 * 0xFFFFFAxx -- LCD Controller
927 #define LSSA_ADDR 0xfffffa00
930 #define LSSA_SSA_MASK 0x1ffffffe /* Bits 0 and 29-31 are reserved */
935 #define LVPW_ADDR 0xfffffa05
941 #define LXMAX_ADDR 0xfffffa08
944 #define LXMAX_XM_MASK 0x02f0 /* Bits 0-3 and 10-15 are reserved */
949 #define LYMAX_ADDR 0xfffffa0a
952 #define LYMAX_YM_MASK 0x01ff /* Bits 9-15 are reserved */
957 #define LCXP_ADDR 0xfffffa18
960 #define LCXP_CC_MASK 0xc000 /* Cursor Control */
961 #define LCXP_CC_TRAMSPARENT 0x0000
962 #define LCXP_CC_BLACK 0x4000
963 #define LCXP_CC_REVERSED 0x8000
964 #define LCXP_CC_WHITE 0xc000
965 #define LCXP_CXP_MASK 0x02ff /* Cursor X position */
970 #define LCYP_ADDR 0xfffffa1a
973 #define LCYP_CYP_MASK 0x01ff /* Cursor Y Position */
978 #define LCWCH_ADDR 0xfffffa1c
981 #define LCWCH_CH_MASK 0x001f /* Cursor Height */
982 #define LCWCH_CH_SHIFT 0
983 #define LCWCH_CW_MASK 0x1f00 /* Cursor Width */
989 #define LBLKC_ADDR 0xfffffa1f
992 #define LBLKC_BD_MASK 0x7f /* Blink Divisor */
993 #define LBLKC_BD_SHIFT 0
994 #define LBLKC_BKEN 0x80 /* Blink Enabled */
999 #define LPICF_ADDR 0xfffffa20
1002 #define LPICF_GS_MASK 0x03 /* Gray-Scale Mode */
1003 #define LPICF_GS_BW 0x00
1004 #define LPICF_GS_GRAY_4 0x01
1005 #define LPICF_GS_GRAY_16 0x02
1006 #define LPICF_PBSIZ_MASK 0x0c /* Panel Bus Width */
1007 #define LPICF_PBSIZ_1 0x00
1008 #define LPICF_PBSIZ_2 0x04
1009 #define LPICF_PBSIZ_4 0x08
1014 #define LPOLCF_ADDR 0xfffffa21
1017 #define LPOLCF_PIXPOL 0x01 /* Pixel Polarity */
1018 #define LPOLCF_LPPOL 0x02 /* Line Pulse Polarity */
1019 #define LPOLCF_FLMPOL 0x04 /* Frame Marker Polarity */
1020 #define LPOLCF_LCKPOL 0x08 /* LCD Shift Lock Polarity */
1025 #define LACDRC_ADDR 0xfffffa23
1028 #define LACDRC_ACDSLT 0x80 /* Signal Source Select */
1029 #define LACDRC_ACD_MASK 0x0f /* Alternate Crystal Direction Control */
1030 #define LACDRC_ACD_SHIFT 0
1035 #define LPXCD_ADDR 0xfffffa25
1038 #define LPXCD_PCD_MASK 0x3f /* Pixel Clock Divider */
1039 #define LPXCD_PCD_SHIFT 0
1044 #define LCKCON_ADDR 0xfffffa27
1047 #define LCKCON_DWS_MASK 0x0f /* Display Wait-State */
1048 #define LCKCON_DWS_SHIFT 0
1049 #define LCKCON_DWIDTH 0x40 /* Display Memory Width */
1050 #define LCKCON_LCDON 0x80 /* Enable LCD Controller */
1059 #define LRRA_ADDR 0xfffffa29
1065 #define LPOSR_ADDR 0xfffffa2d
1068 #define LPOSR_POS_MASK 0x0f /* Pixel Offset Code */
1069 #define LPOSR_POS_SHIFT 0
1074 #define LFRCM_ADDR 0xfffffa31
1077 #define LFRCM_YMOD_MASK 0x0f /* Vertical Modulation */
1078 #define LFRCM_YMOD_SHIFT 0
1079 #define LFRCM_XMOD_MASK 0xf0 /* Horizontal Modulation */
1085 #define LGPMR_ADDR 0xfffffa33
1088 #define LGPMR_G1_MASK 0x0f
1089 #define LGPMR_G1_SHIFT 0
1090 #define LGPMR_G2_MASK 0xf0
1096 #define PWMR_ADDR 0xfffffa36
1099 #define PWMR_PW_MASK 0x00ff /* Pulse Width */
1100 #define PWMR_PW_SHIFT 0
1101 #define PWMR_CCPEN 0x0100 /* Contrast Control Enable */
1102 #define PWMR_SRC_MASK 0x0600 /* Input Clock Source */
1103 #define PWMR_SRC_LINE 0x0000 /* Line Pulse */
1104 #define PWMR_SRC_PIXEL 0x0200 /* Pixel Clock */
1105 #define PWMR_SRC_LCD 0x4000 /* LCD clock */
1109 * 0xFFFFFBxx -- Real-Time Clock (RTC)
1116 #define RTCTIME_ADDR 0xfffffb00
1119 #define RTCTIME_SECONDS_MASK 0x0000003f /* Seconds */
1120 #define RTCTIME_SECONDS_SHIFT 0
1121 #define RTCTIME_MINUTES_MASK 0x003f0000 /* Minutes */
1123 #define RTCTIME_HOURS_MASK 0x1f000000 /* Hours */
1129 #define RTCALRM_ADDR 0xfffffb04
1132 #define RTCALRM_SECONDS_MASK 0x0000003f /* Seconds */
1133 #define RTCALRM_SECONDS_SHIFT 0
1134 #define RTCALRM_MINUTES_MASK 0x003f0000 /* Minutes */
1136 #define RTCALRM_HOURS_MASK 0x1f000000 /* Hours */
1142 #define WATCHDOG_ADDR 0xfffffb0a
1145 #define WATCHDOG_EN 0x0001 /* Watchdog Enabled */
1146 #define WATCHDOG_ISEL 0x0002 /* Select the watchdog interrupt */
1147 #define WATCHDOG_INTF 0x0080 /* Watchdog interrupt occurred */
1148 #define WATCHDOG_CNT_MASK 0x0300 /* Watchdog Counter */
1154 #define RTCCTL_ADDR 0xfffffb0c
1157 #define RTCCTL_XTL 0x0020 /* Crystal Selection */
1158 #define RTCCTL_EN 0x0080 /* RTC Enable */
1167 #define RTCISR_ADDR 0xfffffb0e
1170 #define RTCISR_SW 0x0001 /* Stopwatch timed out */
1171 #define RTCISR_MIN 0x0002 /* 1-minute interrupt has occurred */
1172 #define RTCISR_ALM 0x0004 /* Alarm interrupt has occurred */
1173 #define RTCISR_DAY 0x0008 /* 24-hour rollover interrupt has occurred */
1174 #define RTCISR_1HZ 0x0010 /* 1Hz interrupt has occurred */
1175 #define RTCISR_HR 0x0020 /* 1-hour interrupt has occurred */
1176 #define RTCISR_SAM0 0x0100 /* 4Hz / 4.6875Hz interrupt has occurred */
1177 #define RTCISR_SAM1 0x0200 /* 8Hz / 9.3750Hz interrupt has occurred */
1178 #define RTCISR_SAM2 0x0400 /* 16Hz / 18.7500Hz interrupt has occurred */
1179 #define RTCISR_SAM3 0x0800 /* 32Hz / 37.5000Hz interrupt has occurred */
1180 #define RTCISR_SAM4 0x1000 /* 64Hz / 75.0000Hz interrupt has occurred */
1181 #define RTCISR_SAM5 0x2000 /* 128Hz / 150.0000Hz interrupt has occurred */
1182 #define RTCISR_SAM6 0x4000 /* 256Hz / 300.0000Hz interrupt has occurred */
1183 #define RTCISR_SAM7 0x8000 /* 512Hz / 600.0000Hz interrupt has occurred */
1188 #define RTCIENR_ADDR 0xfffffb10
1191 #define RTCIENR_SW 0x0001 /* Stopwatch interrupt enable */
1192 #define RTCIENR_MIN 0x0002 /* 1-minute interrupt enable */
1193 #define RTCIENR_ALM 0x0004 /* Alarm interrupt enable */
1194 #define RTCIENR_DAY 0x0008 /* 24-hour rollover interrupt enable */
1195 #define RTCIENR_1HZ 0x0010 /* 1Hz interrupt enable */
1196 #define RTCIENR_HR 0x0020 /* 1-hour interrupt enable */
1197 #define RTCIENR_SAM0 0x0100 /* 4Hz / 4.6875Hz interrupt enable */
1198 #define RTCIENR_SAM1 0x0200 /* 8Hz / 9.3750Hz interrupt enable */
1199 #define RTCIENR_SAM2 0x0400 /* 16Hz / 18.7500Hz interrupt enable */
1200 #define RTCIENR_SAM3 0x0800 /* 32Hz / 37.5000Hz interrupt enable */
1201 #define RTCIENR_SAM4 0x1000 /* 64Hz / 75.0000Hz interrupt enable */
1202 #define RTCIENR_SAM5 0x2000 /* 128Hz / 150.0000Hz interrupt enable */
1203 #define RTCIENR_SAM6 0x4000 /* 256Hz / 300.0000Hz interrupt enable */
1204 #define RTCIENR_SAM7 0x8000 /* 512Hz / 600.0000Hz interrupt enable */
1209 #define STPWCH_ADDR 0xfffffb12
1212 #define STPWCH_CNT_MASK 0x003f /* Stopwatch countdown value */
1213 #define SPTWCH_CNT_SHIFT 0
1218 #define DAYR_ADDR 0xfffffb1a
1221 #define DAYR_DAYS_MASK 0x1ff /* Day Setting */
1222 #define DAYR_DAYS_SHIFT 0
1227 #define DAYALARM_ADDR 0xfffffb1c
1230 #define DAYALARM_DAYSAL_MASK 0x01ff /* Day Setting of the Alarm */
1231 #define DAYALARM_DAYSAL_SHIFT 0
1235 * 0xFFFFFCxx -- DRAM Controller
1242 #define DRAMMC_ADDR 0xfffffc00
1245 #define DRAMMC_ROW12_MASK 0xc000 /* Row address bit for MD12 */
1246 #define DRAMMC_ROW12_PA10 0x0000
1247 #define DRAMMC_ROW12_PA21 0x4000
1248 #define DRAMMC_ROW12_PA23 0x8000
1249 #define DRAMMC_ROW0_MASK 0x3000 /* Row address bit for MD0 */
1250 #define DRAMMC_ROW0_PA11 0x0000
1251 #define DRAMMC_ROW0_PA22 0x1000
1252 #define DRAMMC_ROW0_PA23 0x2000
1253 #define DRAMMC_ROW11 0x0800 /* Row address bit for MD11 PA20/PA22 */
1254 #define DRAMMC_ROW10 0x0400 /* Row address bit for MD10 PA19/PA21 */
1255 #define DRAMMC_ROW9 0x0200 /* Row address bit for MD9 PA9/PA19 */
1256 #define DRAMMC_ROW8 0x0100 /* Row address bit for MD8 PA10/PA20 */
1257 #define DRAMMC_COL10 0x0080 /* Col address bit for MD10 PA11/PA0 */
1258 #define DRAMMC_COL9 0x0040 /* Col address bit for MD9 PA10/PA0 */
1259 #define DRAMMC_COL8 0x0020 /* Col address bit for MD8 PA9/PA0 */
1260 #define DRAMMC_REF_MASK 0x001f /* Refresh Cycle */
1261 #define DRAMMC_REF_SHIFT 0
1266 #define DRAMC_ADDR 0xfffffc02
1269 #define DRAMC_DWE 0x0001 /* DRAM Write Enable */
1270 #define DRAMC_RST 0x0002 /* Reset Burst Refresh Enable */
1271 #define DRAMC_LPR 0x0004 /* Low-Power Refresh Enable */
1272 #define DRAMC_SLW 0x0008 /* Slow RAM */
1273 #define DRAMC_LSP 0x0010 /* Light Sleep */
1274 #define DRAMC_MSW 0x0020 /* Slow Multiplexing */
1275 #define DRAMC_WS_MASK 0x00c0 /* Wait-states */
1277 #define DRAMC_PGSZ_MASK 0x0300 /* Page Size for fast page mode */
1279 #define DRAMC_PGSZ_256K 0x0000
1280 #define DRAMC_PGSZ_512K 0x0100
1281 #define DRAMC_PGSZ_1024K 0x0200
1282 #define DRAMC_PGSZ_2048K 0x0300
1283 #define DRAMC_EDO 0x0400 /* EDO DRAM */
1284 #define DRAMC_CLK 0x0800 /* Refresh Timer Clock source select */
1285 #define DRAMC_BC_MASK 0x3000 /* Page Access Clock Cycle (FP mode) */
1287 #define DRAMC_RM 0x4000 /* Refresh Mode */
1288 #define DRAMC_EN 0x8000 /* DRAM Controller enable */
1293 * 0xFFFFFDxx -- In-Circuit Emulation (ICE)
1300 #define ICEMACR_ADDR 0xfffffd00
1306 #define ICEMAMR_ADDR 0xfffffd04
1312 #define ICEMCCR_ADDR 0xfffffd08
1315 #define ICEMCCR_PD 0x0001 /* Program/Data Cycle Selection */
1316 #define ICEMCCR_RW 0x0002 /* Read/Write Cycle Selection */
1321 #define ICEMCMR_ADDR 0xfffffd0a
1324 #define ICEMCMR_PDM 0x0001 /* Program/Data Cycle Mask */
1325 #define ICEMCMR_RWM 0x0002 /* Read/Write Cycle Mask */
1330 #define ICEMCR_ADDR 0xfffffd0c
1333 #define ICEMCR_CEN 0x0001 /* Compare Enable */
1334 #define ICEMCR_PBEN 0x0002 /* Program Break Enable */
1335 #define ICEMCR_SB 0x0004 /* Single Breakpoint */
1336 #define ICEMCR_HMDIS 0x0008 /* HardMap disable */
1337 #define ICEMCR_BBIEN 0x0010 /* Bus Break Interrupt Enable */
1342 #define ICEMSR_ADDR 0xfffffd0e
1345 #define ICEMSR_EMUEN 0x0001 /* Emulation Enable */
1346 #define ICEMSR_BRKIRQ 0x0002 /* A-Line Vector Fetch Detected */
1347 #define ICEMSR_BBIRQ 0x0004 /* Bus Break Interrupt Detected */
1348 #define ICEMSR_EMIRQ 0x0008 /* EMUIRQ Falling Edge Detected */