Wadim Egorov a4287431ad board: phytec: phycore_am64x: Add support for 1 GB RAM variant and ECC
Detect RAM size via EEPROM and adjust DDR size and banks accordingly.
Include necessary fixups to handle ECC-enabled configurations.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Tested-by: Daniel Schultz <d.schultz@phytec.de>
2025-02-10 10:28:05 -06:00

63 lines
1.3 KiB
Plaintext

# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (C) 2021 PHYTEC America, LLC - https://www.phytec.com
# Author: Matt McKee <mmckee@phytec.com>
#
# Copyright (C) 2022 - 2024 PHYTEC Messtechnik GmbH
# Author: Wadim Egorov <w.egorov@phytec.de>
if TARGET_PHYCORE_AM64X_A53
config SYS_BOARD
default "phycore_am64x"
config SYS_VENDOR
default "phytec"
config SYS_CONFIG_NAME
default "phycore_am64x"
source "board/phytec/common/Kconfig"
endif
if TARGET_PHYCORE_AM64X_R5
config SYS_BOARD
default "phycore_am64x"
config SYS_VENDOR
default "phytec"
config SYS_CONFIG_NAME
default "phycore_am64x"
source "board/phytec/common/Kconfig"
endif
config PHYCORE_AM64X_RAM_SIZE_FIX
bool "Set phyCORE-AM64x 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-AM64x RAM size"
depends on PHYCORE_AM64X_RAM_SIZE_FIX
default PHYCORE_AM64X_RAM_SIZE_2GB
config PHYCORE_AM64X_RAM_SIZE_1GB
bool "1GB RAM"
help
Set RAM size fix to 1GB for phyCORE-AM64x.
config PHYCORE_AM64X_RAM_SIZE_2GB
bool "2GB RAM"
help
Set RAM size fix to 2GB for phyCORE-AM64x.
endchoice