|
|
@ -67,7 +67,7 @@ DIMM infor: |
|
|
|
|[15:15]| SDRAM_WIDTH | 1'b1 | x16 | |
|
|
|
| | | 1'b0 | x8 | |
|
|
|
------------------------------------------------------------ |
|
|
|
|[63:47]| MC1--like s1[31:16] for MC0 |
|
|
|
|[63:48]| MC1--like s1[31:16] for MC0 |
|
|
|
temparary used in PROBE_DIMM |
|
|
|
|[38:32]| DIMM_MEMSIZE | 7'b0000 | 0M | |
|
|
|
| | | 7'b0001 | 512M | |
|
|
@ -292,6 +292,7 @@ temparary used in PROBE_DIMM |
|
|
|
#define ADDR_MIRROR_OFFSET 22 |
|
|
|
#define COL_SIZE_OFFSET 20 |
|
|
|
#define MC_CS_MAP_OFFSET 16 |
|
|
|
#define MC1_CS_MAP_OFFSET 48 |
|
|
|
#define SDRAM_WIDTH_OFFSET 15 |
|
|
|
#define MC_CS_MAP_MASK (0xf) |
|
|
|
#define MC1_MEMSIZE_OFFSET 40 |
|
|
@ -350,6 +351,11 @@ dli a1, MC_CS_MAP_MASK;\ |
|
|
|
dsll a1, a1, MC_CS_MAP_OFFSET;\ |
|
|
|
and a1, s1, a1;\ |
|
|
|
dsrl a1, a1, MC_CS_MAP_OFFSET; |
|
|
|
#define GET_MC1_CS_MAP \ |
|
|
|
dli a1, MC_CS_MAP_MASK;\ |
|
|
|
dsll a1, a1, MC1_CS_MAP_OFFSET;\ |
|
|
|
and a1, s1, a1;\ |
|
|
|
dsrl a1, a1, MC1_CS_MAP_OFFSET; |
|
|
|
#define GET_DIMM_MEMSIZE \ |
|
|
|
dli a1, DIMM_MEMSIZE_MASK;\ |
|
|
|
dsll a1, a1, DIMM_MEMSIZE_OFFSET;\ |
|
|
|