mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-08 06:04:34 +00:00
03585d52fc
At the moment the "stemmy" board attempts to detect the RAM size with a simple memory test (get_ram_size()). Unfortunately, this does not work correctly for devices with 768 MiB RAM (e.g. Samsung Galaxy Ace 2 (GT-I8160), "codina"). Reading/writing memory after the 768 MiB RAM succeeds but actually overwrites some earlier parts of the memory. For U-Boot this does not result in any major problems, but on Linux this will eventually lead to strange crashes because of the memory corruption. Since the "stemmy" U-Boot port is designed to be chainloaded from the original Samsung bootloader, the most reliable way to get the available amount of RAM is to look at the ATAGS passed by the Samsung bootloader. Fortunately, the header used to generate ATAGS in U-Boot (asm/setup.h) can also be easily used to parse them. Also clarify and simplify stemmy.h a bit to make it more clear where some of the magic values in there are actually coming from. Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
18 lines
442 B
Text
18 lines
442 B
Text
CONFIG_ARM=y
|
|
CONFIG_ARCH_U8500=y
|
|
CONFIG_SYS_TEXT_BASE=0x100000
|
|
CONFIG_NR_DRAM_BANKS=2
|
|
CONFIG_DEFAULT_DEVICE_TREE="ste-ux500-samsung-stemmy"
|
|
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
|
CONFIG_HUSH_PARSER=y
|
|
CONFIG_CMD_CONFIG=y
|
|
CONFIG_CMD_LICENSE=y
|
|
CONFIG_CMD_DM=y
|
|
CONFIG_CMD_GPIO=y
|
|
CONFIG_CMD_MMC=y
|
|
CONFIG_CMD_PART=y
|
|
CONFIG_CMD_GETTIME=y
|
|
CONFIG_EFI_PARTITION=y
|
|
# CONFIG_NET is not set
|
|
# CONFIG_MMC_HW_PARTITIONING is not set
|
|
# CONFIG_EFI_LOADER is not set
|