arm: K3: Avoid use of MCU_PSRAM0 before SYSFW is loaded
authorAndrew F. Davis <afd@ti.com>
Fri, 12 Apr 2019 16:54:42 +0000 (12:54 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 26 Apr 2019 21:51:51 +0000 (17:51 -0400)
commit407a219261ecb949ff0048b7854861c0948e3ac5
treee0daad41c5ca7982a0a7d23b5603f19d23edb7e7
parentb07cc48ca16f54f51c28f9fa352a68da58ee5881
arm: K3: Avoid use of MCU_PSRAM0 before SYSFW is loaded

On HS devices the 512b region of reset isolated memory called
MCU_PSRAM0 is firewalled by default. Until SYSFW is loaded we
cannot use this memory. It is only used to store a single value
left at the end of SRAM by ROM that will be needed later. Save
that value to a global variable stored in the .data section.
This section is used as .bss will be cleared between saving
this value and using it.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/mach-k3/am6_init.c
arch/arm/mach-k3/include/mach/am6_hardware.h