summaryrefslogtreecommitdiff
path: root/src/cpu/samsung
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/samsung')
-rw-r--r--src/cpu/samsung/exynos5250/Kconfig77
-rw-r--r--src/cpu/samsung/exynos5250/bootblock.c3
2 files changed, 55 insertions, 25 deletions
diff --git a/src/cpu/samsung/exynos5250/Kconfig b/src/cpu/samsung/exynos5250/Kconfig
index 206df9260b..f5beddcdb4 100644
--- a/src/cpu/samsung/exynos5250/Kconfig
+++ b/src/cpu/samsung/exynos5250/Kconfig
@@ -14,43 +14,72 @@ config SATA_AHCI
bool
default n
-config SPL_BUILD
- bool
- default n
+# Example SRAM/iRAM map for Exynos5250 platform:
+#
+# 0x0202_0000: vendor-provided BL1
+# 0x0202_3400: bootblock, assume up to 32KB in size
+# 0x0202_2600: ID section, assume 2KB in size. This will be
+# within the bootblock section.
+# 0x0203_0000: romstage, assume up to 128KB in size.
+# 0x0207_7f00: stack pointer
-config SYS_TEXT_BASE
- hex "Executable code section"
- default 0x43e00000
+# this may be used to calculate offsets
+config IRAM_BOTTOM
+ hex
+ default 0x02020000
-config SYS_SDRAM_BASE
- hex "SDRAM base address"
- default 0x40000000
+config IRAM_TOP
+ hex
+ default 0x02077fff
-#FIXME(dhendrix, reinauer): re-visit this RAMBASE/RAMTOP stuff...
-config RAMBASE
+config BOOTBLOCK_BASE
hex
- default SYS_SDRAM_BASE
-# according to stefan, this is RAMBASE + 1M.
-config RAMTOP
+ default 0x02023400
+
+config ID_SECTION_BASE
hex
- default 0x40100000
+ default 0x02026000
-config IRAM_BOTTOM
+config ROMSTAGE_BASE
hex
- default 0x02020000
+ default 0x02030000
-config IRAM_TOP
+config ROMSTAGE_SIZE
hex
- default 0x02077fff
+ default 0x10000
-config SYS_INIT_SP_ADDR
+# FIXME: This is for copying SPI content into SRAM temporarily and
+# will be removed when we have the SPI streaming driver implemented.
+config SPI_IMAGE_HACK
hex
- default 0x02058000
+ default 0x02060000
config IRAM_STACK
hex
- default SYS_INIT_SP_ADDR
+ default 0x02077f00
+# FIXME: other magic numbers that should probably go away
config XIP_ROM_SIZE
- hex "ROM stage (BL2) size"
- default 0x20000
+ hex
+ default ROMSTAGE_SIZE
+
+config SYS_SDRAM_BASE
+ hex "SDRAM base address"
+ default 0x40000000
+
+config SPL_BUILD
+ bool
+ default n
+
+config SYS_TEXT_BASE
+ hex "Executable code section"
+ default 0x43e00000
+
+config RAMBASE
+ hex
+ default SYS_SDRAM_BASE
+# according to stefan, this is RAMBASE + 1M.
+config RAMTOP
+ hex
+ default 0x40100000
+
diff --git a/src/cpu/samsung/exynos5250/bootblock.c b/src/cpu/samsung/exynos5250/bootblock.c
index 0d65676bb5..2852764577 100644
--- a/src/cpu/samsung/exynos5250/bootblock.c
+++ b/src/cpu/samsung/exynos5250/bootblock.c
@@ -36,5 +36,6 @@ static int config_branch_prediction(int set_cr_z)
void bootblock_cpu_init(void);
void bootblock_cpu_init(void)
{
- /* FIXME: this is a stub for now */
+ volatile unsigned long *pshold = (unsigned long *)0x1004330c;
+ *pshold |= 0x100;
}