# 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
