From 8f993784ef71f451995dd67fc709b88399c8a7e9 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 9 Sep 2013 14:37:03 -0700 Subject: ARMv7/Exynos: Fix memory location assumptions This patch cleans out a lot of unused variables in the ARM Kconfig files and introduces CONFIG_RAMSTAGE_BASE which is similar to CONFIG_RAMBASE on x86. This gets rid of the hard coded assumption that on ARM coreboot is always executed at the lowest DRAM address. But in fact, this might not be true because we might want coreboot to live at the end of RAM, or in SRAM Change-Id: I03e992645f9eb730e39a521aa21f702959311f74 Signed-off-by: Stefan Reinauer Reviewed-on: https://chromium-review.googlesource.com/168645 Reviewed-by: David Hendrix Tested-by: David Hendrix (cherry picked from commit 15b87892eb2d5e27759c49dc6c8c7e626f651d77) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6634 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Paul Menzel --- src/mainboard/emulation/qemu-armv7/Kconfig | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/emulation/qemu-armv7/Kconfig b/src/mainboard/emulation/qemu-armv7/Kconfig index 01f3baad99..fad20c62db 100644 --- a/src/mainboard/emulation/qemu-armv7/Kconfig +++ b/src/mainboard/emulation/qemu-armv7/Kconfig @@ -33,7 +33,7 @@ config MAINBOARD_DIR config MAINBOARD_PART_NUMBER string - default "QEMU ARMV7" + default "QEMU ARMv7" config MAX_CPUS int @@ -43,6 +43,10 @@ config MAINBOARD_VENDOR string default "ARM Ltd." +config SYS_SDRAM_BASE + hex "SDRAM base address" + default 0x01000000 + config DRAM_SIZE_MB int default 1024 @@ -62,17 +66,13 @@ config BOOTBLOCK_BASE hex default 0x00010000 -config ID_SECTION_BASE - hex - default 0x0001f000 - config ROMSTAGE_BASE hex default 0x00020000 -config ROMSTAGE_SIZE +config RAMSTAGE_BASE hex - default 0x20000 + default SYS_SDRAM_BASE config BOOTBLOCK_ROM_OFFSET hex @@ -98,8 +98,4 @@ config STACK_SIZE hex default 0x0003ff00 -config SYS_SDRAM_BASE - hex "SDRAM base address" - default 0x01000000 - endif # BOARD_EMULATION_QEMU_ARMV7 -- cgit v1.2.3