thunderx: Calculate TCR dynamically
Based on the memory map we can determine a lot of hard coded fields of TCR, like the maximum VA and max PA we want to support. Calculate those dynamically to reduce the chance for pit falls. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
@@ -50,9 +50,6 @@
|
||||
#define CONFIG_SYS_PGTABLE_SIZE \
|
||||
((CONFIG_SYS_PTL1_ENTRIES + \
|
||||
CONFIG_SYS_MEM_MAP_SIZE * CONFIG_SYS_PTL2_ENTRIES) * 8)
|
||||
#define CONFIG_SYS_TCR_EL1_IPS_BITS (5UL << 32)
|
||||
#define CONFIG_SYS_TCR_EL2_IPS_BITS (5 << 16)
|
||||
#define CONFIG_SYS_TCR_EL3_IPS_BITS (5 << 16)
|
||||
|
||||
/* Link Definitions */
|
||||
#define CONFIG_SYS_TEXT_BASE 0x00500000
|
||||
|
||||
Reference in New Issue
Block a user