From a798864ecd866924c33a373e1b32d10f918cc95a Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Tue, 1 Nov 2022 19:06:43 +0100 Subject: ARM: i.MX8M: implement bootrom log viewing command The ROM event log[1] of the i.MX8M* can help with debugging boot failures as it lists various information about boot mode, image, fallback and recovery as well as timestamps when some actions along the boot process occurred. Add a new bootrom -l command that supports reading this out. A generic name is intentionally chosen, as other SoCs also provide similar functionality and it would be nice if they can just reuse the name and command line arguments in future. [1]: NXP AN12853 "i.MX ROMs Log Events" Rev. 0 - May 2020 Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20221101180643.244270-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- commands/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'commands') diff --git a/commands/Kconfig b/commands/Kconfig index a59616ad14..555ae401a0 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -60,6 +60,14 @@ config CMD_RISCV_CPUINFO help Show info about RISC-V CPU +config CMD_BOOTROM + bool "bootrom command" + depends on ARCH_IMX8M + help + Interact with bootrom on i.MX8M + + bootrom [-la] + config CMD_DEVINFO tristate default y -- cgit v1.2.3