am335x: Clean up/fix some settings in the am335x Kconfig.
Some settings in the am335x Kconfig weren't actually used for anything, some where place holders, and some where left over from another CPU. The memory addresses are in the internal RAM in the SOC as described in the reference manual. The stack is put where the internal ROM had its stack, and the bootblock is put at the bottom of that region as the manual suggests. The ROM stage offset is set to 10K which is a bit bigger than the ~7.5K the bootblock currently takes up. Change-Id: I1a117d789a791d7e3db1118823f8216b3361433c Signed-off-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/3327 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
29a4355973
commit
3aa58162e1
|
@ -6,25 +6,9 @@ config BOOTBLOCK_CPU_INIT
|
||||||
bootblock must load microcode or copy data from ROM before
|
bootblock must load microcode or copy data from ROM before
|
||||||
searching for the bootblock.
|
searching for the bootblock.
|
||||||
|
|
||||||
# Example SRAM/iRAM map for Exynos5250 platform:
|
|
||||||
#
|
|
||||||
# 0x0202_3400: bootblock, assume up to 32KB in size
|
|
||||||
# 0x0203_0000: romstage, assume up to 128KB in size.
|
|
||||||
# 0x0207_8000: stack pointer
|
|
||||||
|
|
||||||
# FIXME: find out where romboot places ml0/coreboot
|
|
||||||
config BOOTBLOCK_BASE
|
config BOOTBLOCK_BASE
|
||||||
hex
|
hex
|
||||||
default 0xdeadbeef
|
default 0x402f0400
|
||||||
|
|
||||||
#config ROMSTAGE_BASE
|
|
||||||
# hex
|
|
||||||
# default 0x02030000
|
|
||||||
#
|
|
||||||
# FIXME: this is bullshit.
|
|
||||||
config ROMSTAGE_SIZE
|
|
||||||
hex
|
|
||||||
default 0xa000
|
|
||||||
|
|
||||||
# Stack may reside in either IRAM or DRAM. We will define it to live
|
# Stack may reside in either IRAM or DRAM. We will define it to live
|
||||||
# at the top of IRAM for now.
|
# at the top of IRAM for now.
|
||||||
|
@ -33,11 +17,11 @@ config ROMSTAGE_SIZE
|
||||||
# consecutive memory locations ending just below SP
|
# consecutive memory locations ending just below SP
|
||||||
config STACK_TOP
|
config STACK_TOP
|
||||||
hex
|
hex
|
||||||
default 0x02078000
|
default 0x4030ce00
|
||||||
|
|
||||||
config STACK_BOTTOM
|
config STACK_BOTTOM
|
||||||
hex
|
hex
|
||||||
default 0x02077000
|
default 0x4030be00
|
||||||
|
|
||||||
config STACK_SIZE
|
config STACK_SIZE
|
||||||
hex
|
hex
|
||||||
|
@ -46,7 +30,7 @@ config STACK_SIZE
|
||||||
config CBFS_ROM_OFFSET
|
config CBFS_ROM_OFFSET
|
||||||
# Calculated by BL1 + max bootblock size.
|
# Calculated by BL1 + max bootblock size.
|
||||||
hex "offset of CBFS data in ROM"
|
hex "offset of CBFS data in ROM"
|
||||||
default 0x0A000
|
default 0x2800
|
||||||
|
|
||||||
## TODO Change this to some better address not overlapping bootblock when
|
## TODO Change this to some better address not overlapping bootblock when
|
||||||
## cbfstool supports creating header in arbitrary location.
|
## cbfstool supports creating header in arbitrary location.
|
||||||
|
@ -54,21 +38,6 @@ config CBFS_HEADER_ROM_OFFSET
|
||||||
hex "offset of master CBFS header in ROM"
|
hex "offset of master CBFS header in ROM"
|
||||||
default 0x40
|
default 0x40
|
||||||
|
|
||||||
## TODO We may probably move this to board-specific implementation files instead
|
|
||||||
## of KConfig values.
|
|
||||||
#config CBFS_CACHE_ADDRESS
|
|
||||||
# hex "memory address to put CBFS cache data"
|
|
||||||
# default 0x02060000
|
|
||||||
#
|
|
||||||
#config CBFS_CACHE_SIZE
|
|
||||||
# hex "size of CBFS cache data"
|
|
||||||
# default 0x000017000
|
|
||||||
|
|
||||||
# FIXME: other magic numbers that should probably go away
|
|
||||||
config XIP_ROM_SIZE
|
|
||||||
hex
|
|
||||||
default ROMSTAGE_SIZE
|
|
||||||
|
|
||||||
config SYS_SDRAM_BASE
|
config SYS_SDRAM_BASE
|
||||||
hex
|
hex
|
||||||
default 0x40000000
|
default 0x40000000
|
||||||
|
|
Loading…
Reference in New Issue