summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Paulo Goncalves <joao.goncalves@toradex.com>2023-09-06 11:34:35 -0300
committerJoao Paulo Goncalves <joao.goncalves@toradex.com>2023-09-12 15:36:16 -0300
commit812e7c7fc743afb08cbbf1be1709795c21909efa (patch)
tree50bd867118ea5968d2dcbbad140fc357c153baf4
parent3702ee4936c0250550a7022e076384e196c86d01 (diff)
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 <joao.goncalves@toradex.com>
-rw-r--r--arch/arm/mach-imx/imx8m/soc.c2
1 files changed, 1 insertions, 1 deletions
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;