public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] board: ti: Use Extension framework
@ 2023-07-10 14:50 Roger Quadros
  2023-07-10 14:50 ` [RFC PATCH 1/2] board: ti: common: Add CONFIG_TI_CAPE_DETECT for cape detection Roger Quadros
  2023-07-10 14:50 ` [RFC PATCH 2/2] board: ti: am65x: Move to using Extension framework Roger Quadros
  0 siblings, 2 replies; 11+ messages in thread
From: Roger Quadros @ 2023-07-10 14:50 UTC (permalink / raw)
  To: nm, vigneshr, trini; +Cc: srk, robertcnelson, u-boot, Roger Quadros

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-01-11 14:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-10 14:50 [RFC PATCH 0/2] board: ti: Use Extension framework Roger Quadros
2023-07-10 14:50 ` [RFC PATCH 1/2] board: ti: common: Add CONFIG_TI_CAPE_DETECT for cape detection Roger Quadros
2023-07-10 14:50 ` [RFC PATCH 2/2] board: ti: am65x: Move to using Extension framework Roger Quadros
2023-07-10 19:45   ` Simon Glass
2023-07-11 12:29     ` Roger Quadros
2023-07-13 18:44       ` Nishanth Menon
2023-10-04 12:39         ` Roger Quadros
2023-10-06 13:26           ` Köry Maincent
2023-10-06 15:48             ` Roger Quadros
2023-10-06 16:47             ` Simon Glass
2024-01-11 14:14               ` Roger Quadros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox