Add a prompt to MTK_BROM_HEADER_INFO so that a configuration can
override the per-SoC default. Some SoCs can boot from more than one type
of storage, and the BootROM image header has to name the one that the
image is written to.

Signed-off-by: David Lechner <[email protected]>
---
 arch/arm/mach-mediatek/Kconfig | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
index fec9601e80c..4f7bedcb28b 100644
--- a/arch/arm/mach-mediatek/Kconfig
+++ b/arch/arm/mach-mediatek/Kconfig
@@ -221,11 +221,16 @@ config SYS_CONFIG_NAME
        default "mt8518" if TARGET_MT8518
 
 config MTK_BROM_HEADER_INFO
-       string
+       string "MediaTek BootROM image header options"
        default "media=nor" if TARGET_MT8518 || TARGET_MT8512 || TARGET_MT7629
        default "media=emmc;arm64=1" if TARGET_MT8188 || TARGET_MT8189
        default "media=emmc" if TARGET_MT8516 || TARGET_MT8365 || TARGET_MT8366 
|| TARGET_MT8183 || TARGET_MT8195
        default "lk=1" if TARGET_MT7623
+       help
+         Option string passed to mkimage -n when generating the MediaTek
+         BootROM image (mtk_image). The media key must name the storage
+         that the image is written to, for example "media=emmc" or
+         "media=ufs". See doc/README.mediatek for the supported keys.
 
 config SPL_MTK_FIRMWARE_AB
        bool "MediaTek firmware A/B boot in SPL"

-- 
2.53.0

Reply via email to