Skip to content

Commit 84ac2b3

Browse files
committed
include:securam: shift SECURAM for backup mode
In the ed48d7a commit, SECURAM was shifted by 0x800 to account for ROM code in emulation mode, which is incorrect. When using emulated OTP, the OTP packet is copied to the beginning of the SECURAM memory section (starting at offset 0x800). This overwrites BCP.EMUL and after a reset it will not be possible to boot again (except for SD booting). In backup mode, if SECURAM is offset from 0xe0000800, kernel->PM will overwrite BCP.EMUL when kernel is loaded. so not only is it not necessary to shift SECURAM by 0x800, but also not necessary to shift SECURAM by 0x800 in Linux PM. Signed-off-by: Li Bin <bin.li@microchip.com>
1 parent ed4e564 commit 84ac2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/arch/sama7d65.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
/*
5454
* User Peripherals physical base addresses.
5555
*/
56-
#define AT91C_BASE_SECURAM 0xe0000800
56+
#define AT91C_BASE_SECURAM 0xe0000000
5757
#define AT91C_BASE_SECUMOD 0xe0004000
5858
#define AT91C_BASE_SFRBU 0xe0008000
5959
#define AT91C_BASE_PIOA 0xe0014000

0 commit comments

Comments
 (0)