mirror of
https://github.com/smaeul/u-boot.git
synced 2025-11-01 12:38:22 +00:00
Use content of EEPROM to detect the actual RAM size and adjust DDR timings, size and banks accordingly. Also enable the SoM detection per default in the defconfigs. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Tested-by: John Ma <jma@phytec.com>
68 lines
1.4 KiB
Plaintext
68 lines
1.4 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (C) 2022 - 2023 PHYTEC Messtechnik GmbH
|
|
# Author: Wadim Egorov <w.egorov@phytec.de>
|
|
|
|
if TARGET_PHYCORE_AM62X_A53
|
|
|
|
config SYS_BOARD
|
|
default "phycore_am62x"
|
|
|
|
config SYS_VENDOR
|
|
default "phytec"
|
|
|
|
config SYS_CONFIG_NAME
|
|
default "phycore_am62x"
|
|
|
|
source "board/phytec/common/Kconfig"
|
|
|
|
endif
|
|
|
|
if TARGET_PHYCORE_AM62X_R5
|
|
|
|
config SYS_BOARD
|
|
default "phycore_am62x"
|
|
|
|
config SYS_VENDOR
|
|
default "phytec"
|
|
|
|
config SYS_CONFIG_NAME
|
|
default "phycore_am62x"
|
|
|
|
config SPL_LDSCRIPT
|
|
default "arch/arm/mach-omap2/u-boot-spl.lds"
|
|
|
|
source "board/phytec/common/Kconfig"
|
|
|
|
endif
|
|
|
|
config PHYCORE_AM62X_RAM_SIZE_FIX
|
|
bool "Set phyCORE-AM62x RAM size fix instead of detecting"
|
|
default false
|
|
help
|
|
RAM size is automatic being detected with the help of
|
|
the EEPROM introspection data. Set RAM size to a fix value
|
|
instead.
|
|
|
|
choice
|
|
prompt "phyCORE-AM62x RAM size"
|
|
depends on PHYCORE_AM62X_RAM_SIZE_FIX
|
|
default PHYCORE_AM62X_RAM_SIZE_2GB
|
|
|
|
config PHYCORE_AM62X_RAM_SIZE_1GB
|
|
bool "1GB RAM"
|
|
help
|
|
Set RAM size fix to 1GB for phyCORE-AM62x.
|
|
|
|
config PHYCORE_AM62X_RAM_SIZE_2GB
|
|
bool "2GB RAM"
|
|
help
|
|
Set RAM size fix to 2GB for phyCORE-AM62x.
|
|
|
|
config PHYCORE_AM62X_RAM_SIZE_4GB
|
|
bool "4GB RAM"
|
|
help
|
|
Set RAM size fix to 4GB for phyCORE-AM62x.
|
|
|
|
endchoice
|