[RFC PATCH 0/2] board: ti: Use Extension framework
Roger Quadros
rogerq at kernel.org
Mon Jul 10 16:50:24 CEST 2023
Hi,
RFC as only build tested. Need to get early feedback before I spend
more time on this.
Newer TI boards (AM6/J7) are using a custom logic to
detect expansion cards and set a 'name_overlays' environment
variable. Then DT overlays are applied by again custom
environment scripts during boot.
Instead of that migrate to using the Extension framework.
This allows the user to call 'extension scan' and 'extension apply'
commands to detect extension cards and apply the
DT overlays respectively.
For Booting, I expect distro boot scripts to already support
the extension framework via following environment
'extension_overlay_cmd' and 'extension_overlay_addr'.
i.e. include/config_distro_bootcmd.h
cheers,
-roger
Roger Quadros (2):
board: ti: common: Add CONFIG_TI_CAPE_DETECT for cape detection
board: ti: am65x: Move to using Extension framework
board/ti/am335x/board.c | 8 +
board/ti/am65x/evm.c | 264 ++++++++---------------------
board/ti/common/Kconfig | 16 ++
board/ti/common/Makefile | 3 +-
board/ti/common/cape_detect.c | 2 +-
board/ti/common/cape_detect.h | 2 +-
board/ti/common/ti_card_detect.c | 155 +++++++++++++++++
board/ti/common/ti_card_detect.h | 43 +++++
configs/am65x_evm_a53_defconfig | 2 +
configs/am65x_hs_evm_a53_defconfig | 2 +
10 files changed, 299 insertions(+), 198 deletions(-)
create mode 100644 board/ti/common/ti_card_detect.c
create mode 100644 board/ti/common/ti_card_detect.h
--
2.34.1
More information about the U-Boot
mailing list