armv7/snow: add BL1_SIZE_KB and get rid of magic constants
This adds a BL1_SIZE_KB config variable so that we can get rid of some magic constants. Change-Id: I9dbcfb407d3f8e367be5d943e95b032ce88b0ad0 Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2332 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
3001c5b69c
commit
b73d904cff
|
@ -36,7 +36,7 @@ _bl1:
|
|||
* on ARM, which is 8KB in size and it is prepended to the
|
||||
* reset vector
|
||||
*/
|
||||
.skip 8192
|
||||
.skip CONFIG_BL1_SIZE_KB
|
||||
|
||||
.globl _start
|
||||
_start: b reset
|
||||
|
|
|
@ -25,7 +25,7 @@ OUTPUT_ARCH(arm)
|
|||
TARGET(binary)
|
||||
SECTIONS
|
||||
{
|
||||
ROMLOC = 0x2023400 - 8192;
|
||||
ROMLOC = CONFIG_BOOTBLOCK_BASE - CONFIG_BL1_SIZE_KB;
|
||||
|
||||
/* This section might be better named .setup */
|
||||
.rom ROMLOC : {
|
||||
|
|
|
@ -14,6 +14,10 @@ config SATA_AHCI
|
|||
bool
|
||||
default n
|
||||
|
||||
config BL1_SIZE_KB
|
||||
int
|
||||
default 8192
|
||||
|
||||
# Example SRAM/iRAM map for Exynos5250 platform:
|
||||
#
|
||||
# 0x0202_0000: vendor-provided BL1
|
||||
|
|
Loading…
Reference in New Issue