board: phytec: imx93: Add eeprom-based hardware introspection
authorChristoph Stoidner <c.stoidner@phytec.de>
Wed, 20 Nov 2024 16:31:42 +0000 (17:31 +0100)
committerFabio Estevam <festevam@gmail.com>
Tue, 26 Nov 2024 02:08:02 +0000 (23:08 -0300)
commitd3b9b799688968d947200b75ea964144ddf1b984
tree3dbb504b7d27ff00ec63aec852028d6bc878852c
parent29d4a73bd06017e1bf653102ed35c7f04daca7a6
board: phytec: imx93: Add eeprom-based hardware introspection

The phyCORE-i.MX 93 is available in various variants. Relevant variant
options for the spl/u-boot are:
- with or without HS400 support for the eMMC
- with 1GB ram chip, or 2GB ram chip

The phyCORE's eeprom contains all information about the existing variant
options. Add evaluation of the eeprom data to the spl/u-boot to
enable/disable HS400 and to select the appropriate ram configuration at
startup.

Signed-off-by: Christoph Stoidner <c.stoidner@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
Reviewed-by: Yannic Moog <y.moog@phytec.de>
Tested-by: Primoz Fiser <primoz.fiser@norik.com>
arch/arm/dts/imx93-phyboard-segin-u-boot.dtsi
arch/arm/mach-imx/imx9/Kconfig
arch/arm/mach-imx/imx9/soc.c
board/phytec/common/Kconfig
board/phytec/common/Makefile
board/phytec/common/imx93_som_detection.c [new file with mode: 0644]
board/phytec/common/imx93_som_detection.h [new file with mode: 0644]
board/phytec/phycore_imx93/Kconfig
board/phytec/phycore_imx93/MAINTAINERS
board/phytec/phycore_imx93/phycore-imx93.c
board/phytec/phycore_imx93/spl.c