From: Jaehoon Chung Date: Wed, 14 Aug 2024 03:52:51 +0000 (+0900) Subject: configs: tizen_bpif3: Replace BOOT_TARGET_DEVICE to use MMC X-Git-Tag: accepted/tizen/unified/x/20240819.072048~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F316140%2F1;p=platform%2Fkernel%2Fu-boot-spacemit.git configs: tizen_bpif3: Replace BOOT_TARGET_DEVICE to use MMC Replace BOOT_TARGET_DEVICE to use MMC device, not QEMU. Change-Id: Ib2fa3d4d06193b384dca60e5ca3c369310b8d5ef Signed-off-by: Jaehoon Chung --- diff --git a/include/configs/k1-x.h b/include/configs/k1-x.h index df3a57dc43..999a65c12e 100644 --- a/include/configs/k1-x.h +++ b/include/configs/k1-x.h @@ -8,10 +8,6 @@ #include -#ifdef CONFIG_TIZEN_K1_X -#include -#endif - #define SYS_DRAM_OFFS 0x00000000 #define SZ_1MB 0x00100000 #define SZ_2GB 0x80000000 @@ -129,6 +125,9 @@ struct boot_storage_op func(QEMU, qemu, na) #include +#ifdef CONFIG_TIZEN_K1_X +#include +#endif #define BOOTENV_DEV_QEMU(devtypeu, devtypel, instance) \ "bootcmd_qemu=" \ diff --git a/include/samsung/tizen_bpif3.h b/include/samsung/tizen_bpif3.h index 12c36dc9ae..0d59cec922 100644 --- a/include/samsung/tizen_bpif3.h +++ b/include/samsung/tizen_bpif3.h @@ -21,6 +21,20 @@ "mw.l ${rebootparam_addr} ${normal_val} ; " \ "ext4write ${devtype} ${devnum}:${informpart} ${rebootparam_addr} /${rebootparamfile} 8; " +#if CONFIG_IS_ENABLED(CMD_MMC) + #define BOOT_TARGET_MMC(func) \ + func(MMC, mmc, 0) \ + func(MMC, mmc, 2) +#else + #define BOOT_TARGET_MMC(func) +#endif + +#ifdef BOOT_TARGET_DEVICES +#undef BOOT_TARGET_DEVICES +#endif + +#define BOOT_TARGET_DEVICES(func) \ + BOOT_TARGET_MMC(func) /* SD/MMC configuration */ #define CONFIG_MMC_DEFAULT_DEV 0