03facc7271
The TI AM654x EVM base board and the associated daughtercards have on- board I2C-based EEPROMs containing board configuration data. Use the board detection infrastructure introduced earlier to do the following: 1) Parse the AM654x EVM base board EEPROM and populate items like board name and MAC addresses into the TI common EEPROM data structure residing in SRAM scratch space 2) Check for presence of daughter card(s) by probing the associated presence signals via an I2C-based GPIO expander. Then, if such a card is found, parse the data such as additional Ethernet MAC addresses from its on-board EEPROM and populate into U-Boot accordingly 3) Dynamically create an U-Boot ENV variable called overlay_files containing a list of daugherboard-specific DTB overlays based on daughercards found. This patch adds support for the AM654x base board ("AM6-COMPROCEVM") as well as for the IDK ("AM6-IDKAPPEVM"), OLDI LCD ("OLDI-LCD1EVM") PCIe/USB3.0 ("SER-PCIEUSBEVM"), 2 Lane PCIe/USB2.0 ("SER-PCIE2LEVM"), and general purpuse ("AM6-GPAPPEVM") daughtercards. Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
62 lines
1.1 KiB
Plaintext
62 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
|
|
# Lokesh Vutla <lokeshvutla@ti.com>
|
|
|
|
choice
|
|
prompt "K3 AM65 based boards"
|
|
optional
|
|
|
|
config TARGET_AM654_A53_EVM
|
|
bool "TI K3 based AM654 EVM running on A53"
|
|
select ARM64
|
|
select SOC_K3_AM6
|
|
select SYS_DISABLE_DCACHE_OPS
|
|
select BOARD_LATE_INIT
|
|
imply TI_I2C_BOARD_DETECT
|
|
|
|
config TARGET_AM654_R5_EVM
|
|
bool "TI K3 based AM654 EVM running on R5"
|
|
select CPU_V7R
|
|
select SYS_THUMB_BUILD
|
|
select SOC_K3_AM6
|
|
select K3_LOAD_SYSFW
|
|
select K3_AM654_DDRSS
|
|
imply SYS_K3_SPL_ATF
|
|
imply TI_I2C_BOARD_DETECT
|
|
|
|
endchoice
|
|
|
|
if TARGET_AM654_A53_EVM
|
|
|
|
config SYS_BOARD
|
|
default "am65x"
|
|
|
|
config SYS_VENDOR
|
|
default "ti"
|
|
|
|
config SYS_CONFIG_NAME
|
|
default "am65x_evm"
|
|
|
|
source "board/ti/common/Kconfig"
|
|
|
|
endif
|
|
|
|
if TARGET_AM654_R5_EVM
|
|
|
|
config SYS_BOARD
|
|
default "am65x"
|
|
|
|
config SYS_VENDOR
|
|
default "ti"
|
|
|
|
config SYS_CONFIG_NAME
|
|
default "am65x_evm"
|
|
|
|
config SPL_LDSCRIPT
|
|
default "arch/arm/mach-omap2/u-boot-spl.lds"
|
|
|
|
source "board/ti/common/Kconfig"
|
|
|
|
endif
|