From 812e7c7fc743afb08cbbf1be1709795c21909efa Mon Sep 17 00:00:00 2001 From: Joao Paulo Goncalves Date: Wed, 6 Sep 2023 11:34:35 -0300 Subject: toradex: imx8mp: Enable serial number for fastboot Fix build error when enabling fastboot support. FSL fastboot use serial number value when CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG is enabled. Upstream-Status: Inappropriate [other] This is a downstream only fix. In upstream fsl fastboot is not implemented. Signed-off-by: Joao Paulo Goncalves --- arch/arm/mach-imx/imx8m/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 74e0c1d199..abda062776 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -747,7 +747,7 @@ bool is_usb_boot(void) { return get_boot_device() == USB_BOOT; } -#ifdef CONFIG_SERIAL_TAG +#if defined(CONFIG_SERIAL_TAG) || defined(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG) void get_board_serial(struct tag_serialnr *serialnr) { struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; -- cgit v1.2.3