|
@@ -1646,3 +1646,178 @@
|
|
|
/* Bit masks for EBIU_AMBCTL0 */
|
|
|
|
|
|
#define B0RDYEN 0x1 /* Bank 0 ARDY Enable */
|
|
|
+#define B0RDYPOL 0x2 /* Bank 0 ARDY Polarity */
|
|
|
+#define B0TT 0xc /* Bank 0 transition time */
|
|
|
+#define B0ST 0x30 /* Bank 0 Setup time */
|
|
|
+#define B0HT 0xc0 /* Bank 0 Hold time */
|
|
|
+#define B0RAT 0xf00 /* Bank 0 Read access time */
|
|
|
+#define B0WAT 0xf000 /* Bank 0 write access time */
|
|
|
+#define B1RDYEN 0x10000 /* Bank 1 ARDY Enable */
|
|
|
+#define B1RDYPOL 0x20000 /* Bank 1 ARDY Polarity */
|
|
|
+#define B1TT 0xc0000 /* Bank 1 transition time */
|
|
|
+#define B1ST 0x300000 /* Bank 1 Setup time */
|
|
|
+#define B1HT 0xc00000 /* Bank 1 Hold time */
|
|
|
+#define B1RAT 0xf000000 /* Bank 1 Read access time */
|
|
|
+#define B1WAT 0xf0000000 /* Bank 1 write access time */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_AMBCTL1 */
|
|
|
+
|
|
|
+#define B2RDYEN 0x1 /* Bank 2 ARDY Enable */
|
|
|
+#define B2RDYPOL 0x2 /* Bank 2 ARDY Polarity */
|
|
|
+#define B2TT 0xc /* Bank 2 transition time */
|
|
|
+#define B2ST 0x30 /* Bank 2 Setup time */
|
|
|
+#define B2HT 0xc0 /* Bank 2 Hold time */
|
|
|
+#define B2RAT 0xf00 /* Bank 2 Read access time */
|
|
|
+#define B2WAT 0xf000 /* Bank 2 write access time */
|
|
|
+#define B3RDYEN 0x10000 /* Bank 3 ARDY Enable */
|
|
|
+#define B3RDYPOL 0x20000 /* Bank 3 ARDY Polarity */
|
|
|
+#define B3TT 0xc0000 /* Bank 3 transition time */
|
|
|
+#define B3ST 0x300000 /* Bank 3 Setup time */
|
|
|
+#define B3HT 0xc00000 /* Bank 3 Hold time */
|
|
|
+#define B3RAT 0xf000000 /* Bank 3 Read access time */
|
|
|
+#define B3WAT 0xf0000000 /* Bank 3 write access time */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_MBSCTL */
|
|
|
+
|
|
|
+#define AMSB0CTL 0x3 /* Async Memory Bank 0 select */
|
|
|
+#define AMSB1CTL 0xc /* Async Memory Bank 1 select */
|
|
|
+#define AMSB2CTL 0x30 /* Async Memory Bank 2 select */
|
|
|
+#define AMSB3CTL 0xc0 /* Async Memory Bank 3 select */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_MODE */
|
|
|
+
|
|
|
+#define B0MODE 0x3 /* Async Memory Bank 0 Access Mode */
|
|
|
+#define B1MODE 0xc /* Async Memory Bank 1 Access Mode */
|
|
|
+#define B2MODE 0x30 /* Async Memory Bank 2 Access Mode */
|
|
|
+#define B3MODE 0xc0 /* Async Memory Bank 3 Access Mode */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_FCTL */
|
|
|
+
|
|
|
+#define TESTSETLOCK 0x1 /* Test set lock */
|
|
|
+#define BCLK 0x6 /* Burst clock frequency */
|
|
|
+#define PGWS 0x38 /* Page wait states */
|
|
|
+#define PGSZ 0x40 /* Page size */
|
|
|
+#define RDDL 0x380 /* Read data delay */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_ARBSTAT */
|
|
|
+
|
|
|
+#define ARBSTAT 0x1 /* Arbitration status */
|
|
|
+#define BGSTAT 0x2 /* Bus grant status */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_DDRCTL0 */
|
|
|
+
|
|
|
+#define TREFI 0x3fff /* Refresh Interval */
|
|
|
+#define TRFC 0x3c000 /* Auto-refresh command period */
|
|
|
+#define TRP 0x3c0000 /* Pre charge-to-active command period */
|
|
|
+#define TRAS 0x3c00000 /* Min Active-to-pre charge time */
|
|
|
+#define TRC 0x3c000000 /* Active-to-active time */
|
|
|
+#define DDR_TRAS(x) ((x<<22)&TRAS) /* DDR tRAS = (1~15) cycles */
|
|
|
+#define DDR_TRP(x) ((x<<18)&TRP) /* DDR tRP = (1~15) cycles */
|
|
|
+#define DDR_TRC(x) ((x<<26)&TRC) /* DDR tRC = (1~15) cycles */
|
|
|
+#define DDR_TRFC(x) ((x<<14)&TRFC) /* DDR tRFC = (1~15) cycles */
|
|
|
+#define DDR_TREFI(x) (x&TREFI) /* DDR tRFC = (1~15) cycles */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_DDRCTL1 */
|
|
|
+
|
|
|
+#define TRCD 0xf /* Active-to-Read/write delay */
|
|
|
+#define TMRD 0xf0 /* Mode register set to active */
|
|
|
+#define TWR 0x300 /* Write Recovery time */
|
|
|
+#define DDRDATWIDTH 0x3000 /* DDR data width */
|
|
|
+#define EXTBANKS 0xc000 /* External banks */
|
|
|
+#define DDRDEVWIDTH 0x30000 /* DDR device width */
|
|
|
+#define DDRDEVSIZE 0xc0000 /* DDR device size */
|
|
|
+#define TWTR 0xf0000000 /* Write-to-read delay */
|
|
|
+#define DDR_TWTR(x) ((x<<28)&TWTR) /* DDR tWTR = (1~15) cycles */
|
|
|
+#define DDR_TMRD(x) ((x<<4)&TMRD) /* DDR tMRD = (1~15) cycles */
|
|
|
+#define DDR_TWR(x) ((x<<8)&TWR) /* DDR tWR = (1~15) cycles */
|
|
|
+#define DDR_TRCD(x) (x&TRCD) /* DDR tRCD = (1~15) cycles */
|
|
|
+#define DDR_DATWIDTH 0x2000 /* DDR data width */
|
|
|
+#define EXTBANK_1 0 /* 1 external bank */
|
|
|
+#define EXTBANK_2 0x4000 /* 2 external banks */
|
|
|
+#define DEVSZ_64 0x40000 /* DDR External Bank Size = 64MB */
|
|
|
+#define DEVSZ_128 0x80000 /* DDR External Bank Size = 128MB */
|
|
|
+#define DEVSZ_256 0xc0000 /* DDR External Bank Size = 256MB */
|
|
|
+#define DEVSZ_512 0 /* DDR External Bank Size = 512MB */
|
|
|
+#define DEVWD_4 0 /* DDR Device Width = 4 Bits */
|
|
|
+#define DEVWD_8 0x10000 /* DDR Device Width = 8 Bits */
|
|
|
+#define DEVWD_16 0x20000 /* DDR Device Width = 16 Bits */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_DDRCTL2 */
|
|
|
+
|
|
|
+#define BURSTLENGTH 0x7 /* Burst length */
|
|
|
+#define CASLATENCY 0x70 /* CAS latency */
|
|
|
+#define DLLRESET 0x100 /* DLL Reset */
|
|
|
+#define REGE 0x1000 /* Register mode enable */
|
|
|
+#define CL_1_5 0x50 /* DDR CAS Latency = 1.5 cycles */
|
|
|
+#define CL_2 0x20 /* DDR CAS Latency = 2 cycles */
|
|
|
+#define CL_2_5 0x60 /* DDR CAS Latency = 2.5 cycles */
|
|
|
+#define CL_3 0x30 /* DDR CAS Latency = 3 cycles */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_DDRCTL3 */
|
|
|
+
|
|
|
+#define PASR 0x7 /* Partial array self-refresh */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_DDRQUE */
|
|
|
+
|
|
|
+#define DEB1_PFLEN 0x3 /* Pre fetch length for DEB1 accesses */
|
|
|
+#define DEB2_PFLEN 0xc /* Pre fetch length for DEB2 accesses */
|
|
|
+#define DEB3_PFLEN 0x30 /* Pre fetch length for DEB3 accesses */
|
|
|
+#define DEB_ARB_PRIORITY 0x700 /* Arbitration between DEB busses */
|
|
|
+#define DEB1_URGENT 0x1000 /* DEB1 Urgent */
|
|
|
+#define DEB2_URGENT 0x2000 /* DEB2 Urgent */
|
|
|
+#define DEB3_URGENT 0x4000 /* DEB3 Urgent */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_ERRMST */
|
|
|
+
|
|
|
+#define DEB1_ERROR 0x1 /* DEB1 Error */
|
|
|
+#define DEB2_ERROR 0x2 /* DEB2 Error */
|
|
|
+#define DEB3_ERROR 0x4 /* DEB3 Error */
|
|
|
+#define CORE_ERROR 0x8 /* Core error */
|
|
|
+#define DEB_MERROR 0x10 /* DEB1 Error (2nd) */
|
|
|
+#define DEB2_MERROR 0x20 /* DEB2 Error (2nd) */
|
|
|
+#define DEB3_MERROR 0x40 /* DEB3 Error (2nd) */
|
|
|
+#define CORE_MERROR 0x80 /* Core Error (2nd) */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_RSTCTL */
|
|
|
+
|
|
|
+#define DDRSRESET 0x1 /* DDR soft reset */
|
|
|
+#define PFTCHSRESET 0x4 /* DDR prefetch reset */
|
|
|
+#define SRREQ 0x8 /* Self-refresh request */
|
|
|
+#define SRACK 0x10 /* Self-refresh acknowledge */
|
|
|
+#define MDDRENABLE 0x20 /* Mobile DDR enable */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_DDRMCEN */
|
|
|
+
|
|
|
+#define B0WCENABLE 0x1 /* Bank 0 write count enable */
|
|
|
+#define B1WCENABLE 0x2 /* Bank 1 write count enable */
|
|
|
+#define B2WCENABLE 0x4 /* Bank 2 write count enable */
|
|
|
+#define B3WCENABLE 0x8 /* Bank 3 write count enable */
|
|
|
+#define B4WCENABLE 0x10 /* Bank 4 write count enable */
|
|
|
+#define B5WCENABLE 0x20 /* Bank 5 write count enable */
|
|
|
+#define B6WCENABLE 0x40 /* Bank 6 write count enable */
|
|
|
+#define B7WCENABLE 0x80 /* Bank 7 write count enable */
|
|
|
+#define B0RCENABLE 0x100 /* Bank 0 read count enable */
|
|
|
+#define B1RCENABLE 0x200 /* Bank 1 read count enable */
|
|
|
+#define B2RCENABLE 0x400 /* Bank 2 read count enable */
|
|
|
+#define B3RCENABLE 0x800 /* Bank 3 read count enable */
|
|
|
+#define B4RCENABLE 0x1000 /* Bank 4 read count enable */
|
|
|
+#define B5RCENABLE 0x2000 /* Bank 5 read count enable */
|
|
|
+#define B6RCENABLE 0x4000 /* Bank 6 read count enable */
|
|
|
+#define B7RCENABLE 0x8000 /* Bank 7 read count enable */
|
|
|
+#define ROWACTCENABLE 0x10000 /* DDR Row activate count enable */
|
|
|
+#define RWTCENABLE 0x20000 /* DDR R/W Turn around count enable */
|
|
|
+#define ARCENABLE 0x40000 /* DDR Auto-refresh count enable */
|
|
|
+#define GC0ENABLE 0x100000 /* DDR Grant count 0 enable */
|
|
|
+#define GC1ENABLE 0x200000 /* DDR Grant count 1 enable */
|
|
|
+#define GC2ENABLE 0x400000 /* DDR Grant count 2 enable */
|
|
|
+#define GC3ENABLE 0x800000 /* DDR Grant count 3 enable */
|
|
|
+#define GCCONTROL 0x3000000 /* DDR Grant Count Control */
|
|
|
+
|
|
|
+/* Bit masks for EBIU_DDRMCCL */
|
|
|
+
|
|
|
+#define CB0WCOUNT 0x1 /* Clear write count 0 */
|
|
|
+#define CB1WCOUNT 0x2 /* Clear write count 1 */
|
|
|
+#define CB2WCOUNT 0x4 /* Clear write count 2 */
|
|
|
+#define CB3WCOUNT 0x8 /* Clear write count 3 */
|
|
|
+#define CB4WCOUNT 0x10 /* Clear write count 4 */
|
|
|
+#define CB5WCOUNT 0x20 /* Clear write count 5 */
|