diff --git a/plat/allwinner/common/include/platform_def.h b/plat/allwinner/common/include/platform_def.h index de44174b257961613efda7e552428acd9661ac50..56a2ad6f78e7bcb94376f6c0160978fe6ebc0ee4 100644 --- a/plat/allwinner/common/include/platform_def.h +++ b/plat/allwinner/common/include/platform_def.h @@ -13,9 +13,6 @@ #include -/* The SCP firmware is allocated the last 16KiB of SRAM A2. */ -#define SUNXI_SCP_SIZE 0x4000 - #ifdef SUNXI_BL31_IN_DRAM #define BL31_BASE SUNXI_DRAM_BASE @@ -31,7 +28,6 @@ #define BL31_BASE (SUNXI_SRAM_A2_BASE + 0x4000) #define BL31_LIMIT (SUNXI_SRAM_A2_BASE + \ SUNXI_SRAM_A2_SIZE - SUNXI_SCP_SIZE) -#define SUNXI_SCP_BASE BL31_LIMIT /* Overwrite U-Boot SPL, but reserve the first page for the SPL header. */ #define BL31_NOBITS_BASE (SUNXI_SRAM_A1_BASE + 0x1000) @@ -42,6 +38,10 @@ #define SUNXI_BL33_VIRT_BASE SUNXI_DRAM_VIRT_BASE +/* The SCP firmware is allocated the last 16KiB of SRAM A2. */ +#define SUNXI_SCP_BASE BL31_LIMIT +#define SUNXI_SCP_SIZE 0x4000 + #endif /* SUNXI_BL31_IN_DRAM */ /* How much DRAM to map (to map BL33, for fetching the DTB from U-Boot) */