summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnish Trivedi <anish@freescale.com>2010-06-15 18:01:10 -0500
committerAnish Trivedi <anish@freescale.com>2010-06-24 09:47:41 -0500
commit3bd50a46e4453ca2492169e7add9cde0752442e2 (patch)
treea33e0bfa7f917396a43c8b951f31f0ef64927863 /include
parent90bfe6af18c84a7e3ba424cba0c2602d883bd286 (diff)
downloadu-boot-imx-3bd50a46e4453ca2492169e7add9cde0752442e2.zip
u-boot-imx-3bd50a46e4453ca2492169e7add9cde0752442e2.tar.gz
u-boot-imx-3bd50a46e4453ca2492169e7add9cde0752442e2.tar.bz2
ENGR00123782 Fix boot partition problem for emmc
Enable boot partition in BOOT_CONFIG byte of EXT_CSD Signed-off-by: Anish Trivedi <anish@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/mx53_arm2.h2
-rw-r--r--include/configs/mx53_evk.h2
-rw-r--r--include/mmc.h5
3 files changed, 6 insertions, 3 deletions
diff --git a/include/configs/mx53_arm2.h b/include/configs/mx53_arm2.h
index c28f6d3..0af93c9 100644
--- a/include/configs/mx53_arm2.h
+++ b/include/configs/mx53_arm2.h
@@ -199,6 +199,8 @@
#define CONFIG_DOS_PARTITION 1
#define CONFIG_CMD_FAT 1
#define CONFIG_CMD_EXT2 1
+
+ #define CONFIG_BOOT_PARTITION_ACCESS
#endif
/*
diff --git a/include/configs/mx53_evk.h b/include/configs/mx53_evk.h
index 4fa66f2..e139840 100644
--- a/include/configs/mx53_evk.h
+++ b/include/configs/mx53_evk.h
@@ -198,6 +198,8 @@
#define CONFIG_DOS_PARTITION 1
#define CONFIG_CMD_FAT 1
#define CONFIG_CMD_EXT2 1
+
+ #define CONFIG_BOOT_PARTITION_ACCESS
#endif
/*
diff --git a/include/mmc.h b/include/mmc.h
index fe63ed7..b8d6871 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -137,7 +137,7 @@
#define EXT_CSD_CARD_TYPE 196 /* RO */
#define EXT_CSD_REV 192 /* RO */
#define EXT_CSD_SEC_CNT 212 /* RO, 4 bytes */
-#define EXT_CSD_BOOT_INFO 228 /* RO */
+#define EXT_CSD_BOOT_SIZE_MULT 226 /* RO */
/*
* EXT_CSD field definitions
@@ -185,7 +185,6 @@
#define MMC_RSP_R6 (MMC_RSP_PRESENT|MMC_RSP_CRC|MMC_RSP_OPCODE)
#define MMC_RSP_R7 (MMC_RSP_PRESENT|MMC_RSP_CRC|MMC_RSP_OPCODE)
-
struct mmc_cid {
unsigned long psn;
unsigned short oid;
@@ -293,7 +292,7 @@ int mmc_read(struct mmc *mmc, u64 src, uchar *dst, int size);
struct mmc *find_mmc_device(int dev_num);
void print_mmc_devices(char separator);
#ifdef CONFIG_BOOT_PARTITION_ACCESS
-int mmc_switch_partition(struct mmc *mmc, uint part);
+int mmc_switch_partition(struct mmc *mmc, uint part, uint enable_boot);
int sd_switch_partition(struct mmc *mmc, uint part);
#endif