diff options
author | David Hendricks <dhendrix@chromium.org> | 2013-03-12 20:16:44 -0700 |
---|---|---|
committer | David Hendricks <dhendrix@chromium.org> | 2013-03-14 00:04:13 +0100 |
commit | 0f5a3fc36794fa23210ada7abf671495e4a98226 (patch) | |
tree | 6fafff4cedef324042f3e31c4d740af94d731e2e | |
parent | 7bc153c6aef0f2615e3dadb274b9fed56ed15732 (diff) |
exynos5250: add RAM resource beginning at physical address
The original code attempted to reserve a space in RAM for coreboot to
remain resident. This turns out not to be needed, and breaks things
for the kernel since the exynos5250-smdk5250 kernel device tree starts
RAM at 0x40000000.
(This patch was originally by Gabe, I'm just uploading it)
Change-Id: I4536edaf8785d81a3ea008216a2d57549ce5edfb
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/2698
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
-rw-r--r-- | src/cpu/samsung/exynos5250/cpu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cpu/samsung/exynos5250/cpu.c b/src/cpu/samsung/exynos5250/cpu.c index 0a49e1edc9..bcf4d22dbd 100644 --- a/src/cpu/samsung/exynos5250/cpu.c +++ b/src/cpu/samsung/exynos5250/cpu.c @@ -1,13 +1,12 @@ #include <console/console.h> #include <device/device.h> -#define RAM_BASE ((CONFIG_SYS_SDRAM_BASE >> 10) + (CONFIG_COREBOOT_ROMSIZE_KB)) -#define RAM_SIZE (((CONFIG_DRAM_SIZE_MB << 10UL) * CONFIG_NR_DRAM_BANKS) \ - - CONFIG_COREBOOT_ROMSIZE_KB) +#define RAM_BASE_KB (CONFIG_SYS_SDRAM_BASE >> 10) +#define RAM_SIZE_KB (CONFIG_DRAM_SIZE_MB << 10UL) static void domain_read_resources(device_t dev) { - ram_resource(dev, 0, RAM_BASE, RAM_SIZE); + ram_resource(dev, 0, RAM_BASE_KB, RAM_SIZE_KB); } static void domain_set_resources(device_t dev) |