|
@@ -948,3 +948,154 @@
|
|
#define B3WAT_1 0x10000000 /* B3 Write Access Time = 1 cycle */
|
|
#define B3WAT_1 0x10000000 /* B3 Write Access Time = 1 cycle */
|
|
#define B3WAT_2 0x20000000 /* B3 Write Access Time = 2 cycles */
|
|
#define B3WAT_2 0x20000000 /* B3 Write Access Time = 2 cycles */
|
|
#define B3WAT_3 0x30000000 /* B3 Write Access Time = 3 cycles */
|
|
#define B3WAT_3 0x30000000 /* B3 Write Access Time = 3 cycles */
|
|
|
|
+#define B3WAT_4 0x40000000 /* B3 Write Access Time = 4 cycles */
|
|
|
|
+#define B3WAT_5 0x50000000 /* B3 Write Access Time = 5 cycles */
|
|
|
|
+#define B3WAT_6 0x60000000 /* B3 Write Access Time = 6 cycles */
|
|
|
|
+#define B3WAT_7 0x70000000 /* B3 Write Access Time = 7 cycles */
|
|
|
|
+#define B3WAT_8 0x80000000 /* B3 Write Access Time = 8 cycles */
|
|
|
|
+#define B3WAT_9 0x90000000 /* B3 Write Access Time = 9 cycles */
|
|
|
|
+#define B3WAT_10 0xA0000000 /* B3 Write Access Time = 10 cycles */
|
|
|
|
+#define B3WAT_11 0xB0000000 /* B3 Write Access Time = 11 cycles */
|
|
|
|
+#define B3WAT_12 0xC0000000 /* B3 Write Access Time = 12 cycles */
|
|
|
|
+#define B3WAT_13 0xD0000000 /* B3 Write Access Time = 13 cycles */
|
|
|
|
+#define B3WAT_14 0xE0000000 /* B3 Write Access Time = 14 cycles */
|
|
|
|
+#define B3WAT_15 0xF0000000 /* B3 Write Access Time = 15 cycles */
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/* ********************** SDRAM CONTROLLER MASKS **********************************************/
|
|
|
|
+/* EBIU_SDGCTL Masks */
|
|
|
|
+#define SCTLE 0x00000001 /* Enable SDRAM Signals */
|
|
|
|
+#define CL_2 0x00000008 /* SDRAM CAS Latency = 2 cycles */
|
|
|
|
+#define CL_3 0x0000000C /* SDRAM CAS Latency = 3 cycles */
|
|
|
|
+#define PASR_ALL 0x00000000 /* All 4 SDRAM Banks Refreshed In Self-Refresh */
|
|
|
|
+#define PASR_B0_B1 0x00000010 /* SDRAM Banks 0 and 1 Are Refreshed In Self-Refresh */
|
|
|
|
+#define PASR_B0 0x00000020 /* Only SDRAM Bank 0 Is Refreshed In Self-Refresh */
|
|
|
|
+#define TRAS_1 0x00000040 /* SDRAM tRAS = 1 cycle */
|
|
|
|
+#define TRAS_2 0x00000080 /* SDRAM tRAS = 2 cycles */
|
|
|
|
+#define TRAS_3 0x000000C0 /* SDRAM tRAS = 3 cycles */
|
|
|
|
+#define TRAS_4 0x00000100 /* SDRAM tRAS = 4 cycles */
|
|
|
|
+#define TRAS_5 0x00000140 /* SDRAM tRAS = 5 cycles */
|
|
|
|
+#define TRAS_6 0x00000180 /* SDRAM tRAS = 6 cycles */
|
|
|
|
+#define TRAS_7 0x000001C0 /* SDRAM tRAS = 7 cycles */
|
|
|
|
+#define TRAS_8 0x00000200 /* SDRAM tRAS = 8 cycles */
|
|
|
|
+#define TRAS_9 0x00000240 /* SDRAM tRAS = 9 cycles */
|
|
|
|
+#define TRAS_10 0x00000280 /* SDRAM tRAS = 10 cycles */
|
|
|
|
+#define TRAS_11 0x000002C0 /* SDRAM tRAS = 11 cycles */
|
|
|
|
+#define TRAS_12 0x00000300 /* SDRAM tRAS = 12 cycles */
|
|
|
|
+#define TRAS_13 0x00000340 /* SDRAM tRAS = 13 cycles */
|
|
|
|
+#define TRAS_14 0x00000380 /* SDRAM tRAS = 14 cycles */
|
|
|
|
+#define TRAS_15 0x000003C0 /* SDRAM tRAS = 15 cycles */
|
|
|
|
+#define TRP_1 0x00000800 /* SDRAM tRP = 1 cycle */
|
|
|
|
+#define TRP_2 0x00001000 /* SDRAM tRP = 2 cycles */
|
|
|
|
+#define TRP_3 0x00001800 /* SDRAM tRP = 3 cycles */
|
|
|
|
+#define TRP_4 0x00002000 /* SDRAM tRP = 4 cycles */
|
|
|
|
+#define TRP_5 0x00002800 /* SDRAM tRP = 5 cycles */
|
|
|
|
+#define TRP_6 0x00003000 /* SDRAM tRP = 6 cycles */
|
|
|
|
+#define TRP_7 0x00003800 /* SDRAM tRP = 7 cycles */
|
|
|
|
+#define TRCD_1 0x00008000 /* SDRAM tRCD = 1 cycle */
|
|
|
|
+#define TRCD_2 0x00010000 /* SDRAM tRCD = 2 cycles */
|
|
|
|
+#define TRCD_3 0x00018000 /* SDRAM tRCD = 3 cycles */
|
|
|
|
+#define TRCD_4 0x00020000 /* SDRAM tRCD = 4 cycles */
|
|
|
|
+#define TRCD_5 0x00028000 /* SDRAM tRCD = 5 cycles */
|
|
|
|
+#define TRCD_6 0x00030000 /* SDRAM tRCD = 6 cycles */
|
|
|
|
+#define TRCD_7 0x00038000 /* SDRAM tRCD = 7 cycles */
|
|
|
|
+#define TWR_1 0x00080000 /* SDRAM tWR = 1 cycle */
|
|
|
|
+#define TWR_2 0x00100000 /* SDRAM tWR = 2 cycles */
|
|
|
|
+#define TWR_3 0x00180000 /* SDRAM tWR = 3 cycles */
|
|
|
|
+#define PUPSD 0x00200000 /* Power-Up Start Delay (15 SCLK Cycles Delay) */
|
|
|
|
+#define PSM 0x00400000 /* Power-Up Sequence (Mode Register Before/After* Refresh) */
|
|
|
|
+#define PSS 0x00800000 /* Enable Power-Up Sequence on Next SDRAM Access */
|
|
|
|
+#define SRFS 0x01000000 /* Enable SDRAM Self-Refresh Mode */
|
|
|
|
+#define EBUFE 0x02000000 /* Enable External Buffering Timing */
|
|
|
|
+#define FBBRW 0x04000000 /* Enable Fast Back-To-Back Read To Write */
|
|
|
|
+#define EMREN 0x10000000 /* Extended Mode Register Enable */
|
|
|
|
+#define TCSR 0x20000000 /* Temp-Compensated Self-Refresh Value (85/45* Deg C) */
|
|
|
|
+#define CDDBG 0x40000000 /* Tristate SDRAM Controls During Bus Grant */
|
|
|
|
+
|
|
|
|
+/* EBIU_SDBCTL Masks */
|
|
|
|
+#define EBE 0x0001 /* Enable SDRAM External Bank */
|
|
|
|
+#define EBSZ_16 0x0000 /* SDRAM External Bank Size = 16MB */
|
|
|
|
+#define EBSZ_32 0x0002 /* SDRAM External Bank Size = 32MB */
|
|
|
|
+#define EBSZ_64 0x0004 /* SDRAM External Bank Size = 64MB */
|
|
|
|
+#define EBSZ_128 0x0006 /* SDRAM External Bank Size = 128MB */
|
|
|
|
+#define EBSZ_256 0x0008 /* SDRAM External Bank Size = 256MB */
|
|
|
|
+#define EBSZ_512 0x000A /* SDRAM External Bank Size = 512MB */
|
|
|
|
+#define EBCAW_8 0x0000 /* SDRAM External Bank Column Address Width = 8 Bits */
|
|
|
|
+#define EBCAW_9 0x0010 /* SDRAM External Bank Column Address Width = 9 Bits */
|
|
|
|
+#define EBCAW_10 0x0020 /* SDRAM External Bank Column Address Width = 10 Bits */
|
|
|
|
+#define EBCAW_11 0x0030 /* SDRAM External Bank Column Address Width = 11 Bits */
|
|
|
|
+
|
|
|
|
+/* EBIU_SDSTAT Masks */
|
|
|
|
+#define SDCI 0x0001 /* SDRAM Controller Idle */
|
|
|
|
+#define SDSRA 0x0002 /* SDRAM Self-Refresh Active */
|
|
|
|
+#define SDPUA 0x0004 /* SDRAM Power-Up Active */
|
|
|
|
+#define SDRS 0x0008 /* SDRAM Will Power-Up On Next Access */
|
|
|
|
+#define SDEASE 0x0010 /* SDRAM EAB Sticky Error Status */
|
|
|
|
+#define BGSTAT 0x0020 /* Bus Grant Status */
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/* ************************** DMA CONTROLLER MASKS ********************************/
|
|
|
|
+
|
|
|
|
+/* DMAx_PERIPHERAL_MAP, MDMA_yy_PERIPHERAL_MAP Masks */
|
|
|
|
+#define CTYPE 0x0040 /* DMA Channel Type Indicator (Memory/Peripheral*) */
|
|
|
|
+#define PMAP 0xF000 /* Peripheral Mapped To This Channel */
|
|
|
|
+#define PMAP_PPI 0x0000 /* PPI Port DMA */
|
|
|
|
+#define PMAP_EMACRX 0x1000 /* Ethernet Receive DMA */
|
|
|
|
+#define PMAP_EMACTX 0x2000 /* Ethernet Transmit DMA */
|
|
|
|
+#define PMAP_SPORT0RX 0x3000 /* SPORT0 Receive DMA */
|
|
|
|
+#define PMAP_SPORT0TX 0x4000 /* SPORT0 Transmit DMA */
|
|
|
|
+#define PMAP_SPORT1RX 0x5000 /* SPORT1 Receive DMA */
|
|
|
|
+#define PMAP_SPORT1TX 0x6000 /* SPORT1 Transmit DMA */
|
|
|
|
+#define PMAP_SPI 0x7000 /* SPI Port DMA */
|
|
|
|
+#define PMAP_UART0RX 0x8000 /* UART0 Port Receive DMA */
|
|
|
|
+#define PMAP_UART0TX 0x9000 /* UART0 Port Transmit DMA */
|
|
|
|
+#define PMAP_UART1RX 0xA000 /* UART1 Port Receive DMA */
|
|
|
|
+#define PMAP_UART1TX 0xB000 /* UART1 Port Transmit DMA */
|
|
|
|
+
|
|
|
|
+/* ************ PARALLEL PERIPHERAL INTERFACE (PPI) MASKS *************/
|
|
|
|
+/* PPI_CONTROL Masks */
|
|
|
|
+#define PORT_EN 0x0001 /* PPI Port Enable */
|
|
|
|
+#define PORT_DIR 0x0002 /* PPI Port Direction */
|
|
|
|
+#define XFR_TYPE 0x000C /* PPI Transfer Type */
|
|
|
|
+#define PORT_CFG 0x0030 /* PPI Port Configuration */
|
|
|
|
+#define FLD_SEL 0x0040 /* PPI Active Field Select */
|
|
|
|
+#define PACK_EN 0x0080 /* PPI Packing Mode */
|
|
|
|
+#define DMA32 0x0100 /* PPI 32-bit DMA Enable */
|
|
|
|
+#define SKIP_EN 0x0200 /* PPI Skip Element Enable */
|
|
|
|
+#define SKIP_EO 0x0400 /* PPI Skip Even/Odd Elements */
|
|
|
|
+#define DLEN_8 0x0000 /* Data Length = 8 Bits */
|
|
|
|
+#define DLEN_10 0x0800 /* Data Length = 10 Bits */
|
|
|
|
+#define DLEN_11 0x1000 /* Data Length = 11 Bits */
|
|
|
|
+#define DLEN_12 0x1800 /* Data Length = 12 Bits */
|
|
|
|
+#define DLEN_13 0x2000 /* Data Length = 13 Bits */
|
|
|
|
+#define DLEN_14 0x2800 /* Data Length = 14 Bits */
|
|
|
|
+#define DLEN_15 0x3000 /* Data Length = 15 Bits */
|
|
|
|
+#define DLEN_16 0x3800 /* Data Length = 16 Bits */
|
|
|
|
+#define DLENGTH 0x3800 /* PPI Data Length */
|
|
|
|
+#define POLC 0x4000 /* PPI Clock Polarity */
|
|
|
|
+#define POLS 0x8000 /* PPI Frame Sync Polarity */
|
|
|
|
+
|
|
|
|
+/* PPI_STATUS Masks */
|
|
|
|
+#define FLD 0x0400 /* Field Indicator */
|
|
|
|
+#define FT_ERR 0x0800 /* Frame Track Error */
|
|
|
|
+#define OVR 0x1000 /* FIFO Overflow Error */
|
|
|
|
+#define UNDR 0x2000 /* FIFO Underrun Error */
|
|
|
|
+#define ERR_DET 0x4000 /* Error Detected Indicator */
|
|
|
|
+#define ERR_NCOR 0x8000 /* Error Not Corrected Indicator */
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/* Omit CAN masks from defBF534.h */
|
|
|
|
+
|
|
|
|
+/* ******************* PIN CONTROL REGISTER MASKS ************************/
|
|
|
|
+/* PORT_MUX Masks */
|
|
|
|
+#define PJSE 0x0001 /* Port J SPI/SPORT Enable */
|
|
|
|
+#define PJSE_SPORT 0x0000 /* Enable TFS0/DT0PRI */
|
|
|
|
+#define PJSE_SPI 0x0001 /* Enable SPI_SSEL3:2 */
|
|
|
|
+
|
|
|
|
+#define PJCE(x) (((x)&0x3)<<1) /* Port J CAN/SPI/SPORT Enable */
|
|
|
|
+#define PJCE_SPORT 0x0000 /* Enable DR0SEC/DT0SEC */
|
|
|
|
+#define PJCE_CAN 0x0002 /* Enable CAN RX/TX */
|
|
|
|
+#define PJCE_SPI 0x0004 /* Enable SPI_SSEL7 */
|
|
|
|
+
|
|
|
|
+#define PFDE 0x0008 /* Port F DMA Request Enable */
|
|
|
|
+#define PFDE_UART 0x0000 /* Enable UART0 RX/TX */
|