From: Alexander Feilke <[email protected]> Probe the TQ-Eeprom sysinfo driver during boot to print its contents.
Signed-off-by: Alexander Feilke <[email protected]> --- arch/arm/dts/imx7s-tqma7-u-boot.dtsi | 7 +++++++ board/tq/tqma7/tqma7.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/dts/imx7s-tqma7-u-boot.dtsi b/arch/arm/dts/imx7s-tqma7-u-boot.dtsi index 2d1d614cd57..55b9556cb55 100644 --- a/arch/arm/dts/imx7s-tqma7-u-boot.dtsi +++ b/arch/arm/dts/imx7s-tqma7-u-boot.dtsi @@ -9,6 +9,13 @@ #include "imx7s-u-boot.dtsi" +/ { + sysinfo_mba7: sysinfo { + compatible = "tq,eeprom-sysinfo"; + i2c-eeprom = <&m24c64>; + }; +}; + &soc { bootph-pre-ram; }; diff --git a/board/tq/tqma7/tqma7.c b/board/tq/tqma7/tqma7.c index 30bd155713d..7542a081ea0 100644 --- a/board/tq/tqma7/tqma7.c +++ b/board/tq/tqma7/tqma7.c @@ -14,9 +14,11 @@ #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> #include <asm/arch/sys_proto.h> +#include <dm/uclass.h> #include "../common/tq_bb.h" #include "../common/tq_som.h" +#include "../common/tq_sysinfo.h" DECLARE_GLOBAL_DATA_PTR; @@ -65,6 +67,8 @@ int board_late_init(void) env_set_runtime("board_name", bname); + tq_common_sysinfo_setup(); + return tq_bb_board_late_init(); } -- 2.34.1

