Converting CONFIG_SPL_BOOT_DEVICE to Kconfig in U-Boot

Tom Rini trini at konsulko.com
Sat May 28 18:52:18 CEST 2022


Hey folks,

As part of converting outstanding CONFIG symbols to Kconfig, I've run in
to CONFIG_SPL_BOOT_DEVICE and while I think I see how to do it, it
would be better I think if someone that has the hardware and can test
the logic out, does it.

In short, I believe we need to:
- SPL_BOOT_SPI_NOR_FLASH / SPL_BOOT_SDIO_MMC_CARD become a choice
  section in arch/arm/mach-mvebu/Kconfig, guarded by !SECURED_MODE_IMAGE
- KWB_CFG_SEC_BOOT_DEV in arch/arm/mach-mvebu/Makefile gets updated
  based on how the Kconfig logic now works.
- In the case of CONFIG_SPL_BOOT_SDIO_MMC_CARD (or whatever it's named)
  and MMC_SDHCI we just have that value defined and drivers/mmc/sdhci.c
  is updated to check it for SPL.  Or if this is possibly useful outside
  of SPL, we make use of CONFIG_VAL and have
  'SPL_FIXED_SDHCI_ALIGNED_BUFFER' be set for the current case.
- CONFIG_SPL_BOOT_DEVICE is removed

I think that covers everything, but please let me know if I missed
something or I got the logic wrong or something.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220528/280348ed/attachment.sig>


More information about the U-Boot mailing list