Replace BOOT_TARGET_DEVICE to use MMC device, not QEMU.
Change-Id: Ib2fa3d4d06193b384dca60e5ca3c369310b8d5ef
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
#include <linux/sizes.h>
-#ifdef CONFIG_TIZEN_K1_X
-#include <samsung/tizen_bpif3.h>
-#endif
-
#define SYS_DRAM_OFFS 0x00000000
#define SZ_1MB 0x00100000
#define SZ_2GB 0x80000000
func(QEMU, qemu, na)
#include <config_distro_bootcmd.h>
+#ifdef CONFIG_TIZEN_K1_X
+#include <samsung/tizen_bpif3.h>
+#endif
#define BOOTENV_DEV_QEMU(devtypeu, devtypel, instance) \
"bootcmd_qemu=" \
"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