Add support for mapping a small range of the SoC devices for debugging
purposes early in boot.
This commit is contained in:
parent
26fbe13c56
commit
88b842d215
@ -258,9 +258,13 @@ mmu_init_table:
|
||||
/* fill all table VA==PA */
|
||||
/* map SDRAM VA==PA, WT cacheable */
|
||||
#if !defined(SMP)
|
||||
MMU_INIT(PHYSADDR, PHYSADDR , 64, L1_TYPE_S|L1_S_C|L1_S_AP(AP_KRW))
|
||||
MMU_INIT(PHYSADDR, PHYSADDR, 64, L1_TYPE_S|L1_S_C|L1_S_AP(AP_KRW))
|
||||
/* map VA 0xc0000000..0xc3ffffff to PA */
|
||||
MMU_INIT(KERNBASE, PHYSADDR, 64, L1_TYPE_S|L1_S_C|L1_S_AP(AP_KRW))
|
||||
#if defined(SOCDEV_PA) && defined(SOCKDEV_VA)
|
||||
/* Map in 0x04000000 worth of the SoC's devices for bootstrap debugging */
|
||||
MMU_INIT(SOCKDEV_VA, SOCDEV_PA, 64, L1_TYPE_S|L1_S_C|L1_S_AP(AP_KRW))
|
||||
#endif
|
||||
#else
|
||||
MMU_INIT(PHYSADDR, PHYSADDR , 64, L1_TYPE_S|L1_SHARED|L1_S_C|L1_S_AP(AP_KRW))
|
||||
/* map VA 0xc0000000..0xc3ffffff to PA */
|
||||
|
@ -35,6 +35,8 @@ LINUX_BOOT_ABI opt_global.h
|
||||
LOADERRAMADDR opt_global.h
|
||||
NO_EVENTTIMERS opt_timer.h
|
||||
PHYSADDR opt_global.h
|
||||
SOCDEV_PA opt_global.h
|
||||
SOCDEV_VA opt_global.h
|
||||
PV_STATS opt_pmap.h
|
||||
QEMU_WORKAROUNDS opt_global.h
|
||||
SOC_MV_ARMADAXP opt_global.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user