0001-arm-imx-imx8m-soc-fix-the-macro-name.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From f7cddc4c6f4e4da57c6500cd0d88ea06e937b239 Mon Sep 17 00:00:00 2001
  2. From: Michael Trimarchi <michael@amarulasolutions.com>
  3. Date: Thu, 15 May 2025 17:09:51 +0200
  4. Subject: [PATCH] arm: imx: imx8m: soc: fix the macro name
  5. The function arch_spl_mmc_get_uboot_raw_sector() was never compiled,
  6. even when the option CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION was
  7. enabled. So rename the macro SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION to
  8. CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION.
  9. Fixes: 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options")
  10. Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
  11. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
  12. Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
  13. Reviewed-by: Peng Fan <peng.fan@nxp.com>
  14. Upstream: https://source.denx.de/u-boot/u-boot/-/commit/f7cddc4c6f4e4da57c6500cd0d88ea06e937b239
  15. ---
  16. arch/arm/mach-imx/imx8m/soc.c | 4 ++--
  17. 1 file changed, 2 insertions(+), 2 deletions(-)
  18. diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
  19. index 567e8e9e81a0..806adcf145fa 100644
  20. --- a/arch/arm/mach-imx/imx8m/soc.c
  21. +++ b/arch/arm/mach-imx/imx8m/soc.c
  22. @@ -791,7 +791,7 @@ int boot_mode_getprisec(void)
  23. #endif
  24. #if defined(CONFIG_IMX8MN) || defined(CONFIG_IMX8MP)
  25. -#ifdef SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  26. +#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  27. #define IMG_CNTN_SET1_OFFSET GENMASK(22, 19)
  28. unsigned long arch_spl_mmc_get_uboot_raw_sector(struct mmc *mmc,
  29. unsigned long raw_sect)
  30. @@ -826,7 +826,7 @@ unsigned long arch_spl_mmc_get_uboot_raw_sector(struct mmc *mmc,
  31. return raw_sect;
  32. }
  33. -#endif /* SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION */
  34. +#endif /* CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION */
  35. #endif
  36. bool is_usb_boot(void)
  37. --
  38. 2.43.0