bsp: a53: modified translation table for DDR size > 2GB
This patches modifies translation_table.S for 32bit and 64bit BSP to limit the DDR size to 2GB if hdf contains DDR greater than 2GB size at 0x0 to comply with the specifications. Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com> Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
parent
03ea09348d
commit
ed9789b2a9
2 changed files with 10 additions and 0 deletions
|
@ -66,7 +66,12 @@ MMUTable:
|
|||
.set DDR_START, XPAR_PSU_DDR_0_S_AXI_BASEADDR
|
||||
.set DDR_END, XPAR_PSU_DDR_0_S_AXI_HIGHADDR
|
||||
.set DDR_SIZE, (DDR_END - DDR_START)+1
|
||||
.if DDR_SIZE > 0x80000000
|
||||
/* If DDR size is larger than 2GB, truncate to 2GB */
|
||||
.set DDR_REG, 0x800
|
||||
.else
|
||||
.set DDR_REG, DDR_SIZE/0x100000
|
||||
.endif
|
||||
#else
|
||||
.set DDR_REG, 0
|
||||
#endif
|
||||
|
|
|
@ -126,7 +126,12 @@ MMUTableL2:
|
|||
.set DDR_START, XPAR_PSU_DDR_0_S_AXI_BASEADDR
|
||||
.set DDR_END, XPAR_PSU_DDR_0_S_AXI_HIGHADDR
|
||||
.set DDR_SIZE, (DDR_END - DDR_START)+1
|
||||
.if DDR_SIZE > 0x80000000
|
||||
/* If DDR size is larger than 2GB, truncate to 2GB */
|
||||
.set DDR_REG, 0x400
|
||||
.else
|
||||
.set DDR_REG, DDR_SIZE/0x200000
|
||||
.endif
|
||||
#else
|
||||
.set DDR_REG, 0
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue