|
@@ -492,3 +492,96 @@
|
|
|
|
|
|
|
|
|
/* General Purpose I/O Port H (0xFFC01700 - 0xFFC017FF) */
|
|
|
+#define PORTHIO 0xFFC01700 /* Port H I/O Pin State Specify Register */
|
|
|
+#define PORTHIO_CLEAR 0xFFC01704 /* Port H I/O Peripheral Interrupt Clear Register */
|
|
|
+#define PORTHIO_SET 0xFFC01708 /* Port H I/O Peripheral Interrupt Set Register */
|
|
|
+#define PORTHIO_TOGGLE 0xFFC0170C /* Port H I/O Pin State Toggle Register */
|
|
|
+#define PORTHIO_MASKA 0xFFC01710 /* Port H I/O Mask State Specify Interrupt A Register */
|
|
|
+#define PORTHIO_MASKA_CLEAR 0xFFC01714 /* Port H I/O Mask Disable Interrupt A Register */
|
|
|
+#define PORTHIO_MASKA_SET 0xFFC01718 /* Port H I/O Mask Enable Interrupt A Register */
|
|
|
+#define PORTHIO_MASKA_TOGGLE 0xFFC0171C /* Port H I/O Mask Toggle Enable Interrupt A Register */
|
|
|
+#define PORTHIO_MASKB 0xFFC01720 /* Port H I/O Mask State Specify Interrupt B Register */
|
|
|
+#define PORTHIO_MASKB_CLEAR 0xFFC01724 /* Port H I/O Mask Disable Interrupt B Register */
|
|
|
+#define PORTHIO_MASKB_SET 0xFFC01728 /* Port H I/O Mask Enable Interrupt B Register */
|
|
|
+#define PORTHIO_MASKB_TOGGLE 0xFFC0172C /* Port H I/O Mask Toggle Enable Interrupt B Register */
|
|
|
+#define PORTHIO_DIR 0xFFC01730 /* Port H I/O Direction Register */
|
|
|
+#define PORTHIO_POLAR 0xFFC01734 /* Port H I/O Source Polarity Register */
|
|
|
+#define PORTHIO_EDGE 0xFFC01738 /* Port H I/O Source Sensitivity Register */
|
|
|
+#define PORTHIO_BOTH 0xFFC0173C /* Port H I/O Set on BOTH Edges Register */
|
|
|
+#define PORTHIO_INEN 0xFFC01740 /* Port H I/O Input Enable Register */
|
|
|
+
|
|
|
+
|
|
|
+/* UART1 Controller (0xFFC02000 - 0xFFC020FF) */
|
|
|
+#define UART1_THR 0xFFC02000 /* Transmit Holding register */
|
|
|
+#define UART1_RBR 0xFFC02000 /* Receive Buffer register */
|
|
|
+#define UART1_DLL 0xFFC02000 /* Divisor Latch (Low-Byte) */
|
|
|
+#define UART1_IER 0xFFC02004 /* Interrupt Enable Register */
|
|
|
+#define UART1_DLH 0xFFC02004 /* Divisor Latch (High-Byte) */
|
|
|
+#define UART1_IIR 0xFFC02008 /* Interrupt Identification Register */
|
|
|
+#define UART1_LCR 0xFFC0200C /* Line Control Register */
|
|
|
+#define UART1_MCR 0xFFC02010 /* Modem Control Register */
|
|
|
+#define UART1_LSR 0xFFC02014 /* Line Status Register */
|
|
|
+#define UART1_MSR 0xFFC02018 /* Modem Status Register */
|
|
|
+#define UART1_SCR 0xFFC0201C /* SCR Scratch Register */
|
|
|
+#define UART1_GCTL 0xFFC02024 /* Global Control Register */
|
|
|
+
|
|
|
+
|
|
|
+/* Pin Control Registers (0xFFC03200 - 0xFFC032FF) */
|
|
|
+#define PORTF_FER 0xFFC03200 /* Port F Function Enable Register (Alternate/Flag*) */
|
|
|
+#define PORTG_FER 0xFFC03204 /* Port G Function Enable Register (Alternate/Flag*) */
|
|
|
+#define PORTH_FER 0xFFC03208 /* Port H Function Enable Register (Alternate/Flag*) */
|
|
|
+#define BFIN_PORT_MUX 0xFFC0320C /* Port Multiplexer Control Register */
|
|
|
+
|
|
|
+
|
|
|
+/* Handshake MDMA Registers (0xFFC03300 - 0xFFC033FF) */
|
|
|
+#define HMDMA0_CONTROL 0xFFC03300 /* Handshake MDMA0 Control Register */
|
|
|
+#define HMDMA0_ECINIT 0xFFC03304 /* HMDMA0 Initial Edge Count Register */
|
|
|
+#define HMDMA0_BCINIT 0xFFC03308 /* HMDMA0 Initial Block Count Register */
|
|
|
+#define HMDMA0_ECURGENT 0xFFC0330C /* HMDMA0 Urgent Edge Count Threshold Register */
|
|
|
+#define HMDMA0_ECOVERFLOW 0xFFC03310 /* HMDMA0 Edge Count Overflow Interrupt Register */
|
|
|
+#define HMDMA0_ECOUNT 0xFFC03314 /* HMDMA0 Current Edge Count Register */
|
|
|
+#define HMDMA0_BCOUNT 0xFFC03318 /* HMDMA0 Current Block Count Register */
|
|
|
+
|
|
|
+#define HMDMA1_CONTROL 0xFFC03340 /* Handshake MDMA1 Control Register */
|
|
|
+#define HMDMA1_ECINIT 0xFFC03344 /* HMDMA1 Initial Edge Count Register */
|
|
|
+#define HMDMA1_BCINIT 0xFFC03348 /* HMDMA1 Initial Block Count Register */
|
|
|
+#define HMDMA1_ECURGENT 0xFFC0334C /* HMDMA1 Urgent Edge Count Threshold Register */
|
|
|
+#define HMDMA1_ECOVERFLOW 0xFFC03350 /* HMDMA1 Edge Count Overflow Interrupt Register */
|
|
|
+#define HMDMA1_ECOUNT 0xFFC03354 /* HMDMA1 Current Edge Count Register */
|
|
|
+#define HMDMA1_BCOUNT 0xFFC03358 /* HMDMA1 Current Block Count Register */
|
|
|
+
|
|
|
+
|
|
|
+/* GPIO PIN mux (0xFFC03210 - OxFFC03288) */
|
|
|
+#define PORTF_MUX 0xFFC03210 /* Port F mux control */
|
|
|
+#define PORTG_MUX 0xFFC03214 /* Port G mux control */
|
|
|
+#define PORTH_MUX 0xFFC03218 /* Port H mux control */
|
|
|
+#define PORTF_DRIVE 0xFFC03220 /* Port F drive strength control */
|
|
|
+#define PORTG_DRIVE 0xFFC03224 /* Port G drive strength control */
|
|
|
+#define PORTH_DRIVE 0xFFC03228 /* Port H drive strength control */
|
|
|
+#define PORTF_SLEW 0xFFC03230 /* Port F slew control */
|
|
|
+#define PORTG_SLEW 0xFFC03234 /* Port G slew control */
|
|
|
+#define PORTH_SLEW 0xFFC03238 /* Port H slew control */
|
|
|
+#define PORTF_HYSTERESIS 0xFFC03240 /* Port F Schmitt trigger control */
|
|
|
+#define PORTG_HYSTERESIS 0xFFC03244 /* Port G Schmitt trigger control */
|
|
|
+#define PORTH_HYSTERESIS 0xFFC03248 /* Port H Schmitt trigger control */
|
|
|
+#define MISCPORT_DRIVE 0xFFC03280 /* Misc Port drive strength control */
|
|
|
+#define MISCPORT_SLEW 0xFFC03284 /* Misc Port slew control */
|
|
|
+#define MISCPORT_HYSTERESIS 0xFFC03288 /* Misc Port Schmitt trigger control */
|
|
|
+
|
|
|
+
|
|
|
+/***********************************************************************************
|
|
|
+** System MMR Register Bits And Macros
|
|
|
+**
|
|
|
+** Disclaimer: All macros are intended to make C and Assembly code more readable.
|
|
|
+** Use these macros carefully, as any that do left shifts for field
|
|
|
+** depositing will result in the lower order bits being destroyed. Any
|
|
|
+** macro that shifts left to properly position the bit-field should be
|
|
|
+** used as part of an OR to initialize a register and NOT as a dynamic
|
|
|
+** modifier UNLESS the lower order bits are saved and ORed back in when
|
|
|
+** the macro is used.
|
|
|
+*************************************************************************************/
|
|
|
+
|
|
|
+/* CHIPID Masks */
|
|
|
+#define CHIPID_VERSION 0xF0000000
|
|
|
+#define CHIPID_FAMILY 0x0FFFF000
|
|
|
+#define CHIPID_MANUFACTURE 0x00000FFE
|