diff options
author | Aisheng.Dong <b29396@freescale.com> | 2010-06-01 19:49:50 +0800 |
---|---|---|
committer | Aisheng.Dong <b29396@freescale.com> | 2010-06-08 13:36:33 +0800 |
commit | 3ee9d15fd8d836cdc6469c042ccc2c2c36875144 (patch) | |
tree | f4e6dbc127291c3b5ae0dcf24ba846c66acd71ea /include/configs | |
parent | ddb3f2723eaa7ad9e6c7e3cb57c3cdcc6c635f95 (diff) | |
download | u-boot-imx-3ee9d15fd8d836cdc6469c042ccc2c2c36875144.zip u-boot-imx-3ee9d15fd8d836cdc6469c042ccc2c2c36875144.tar.gz u-boot-imx-3ee9d15fd8d836cdc6469c042ccc2c2c36875144.tar.bz2 |
ENGR00123484 mx28:support saving environment into sd1
Original uboot did not support sd1 and can only save environment
into sd0 even actually you're booting from sd1.
This patch adds the capability of saving environment into sd1
when you're booting from sd1.
Signed-off-by: Aisheng.Dong <b29396@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/mx28_evk.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/configs/mx28_evk.h b/include/configs/mx28_evk.h index 8f0b31a..5da0b05 100644 --- a/include/configs/mx28_evk.h +++ b/include/configs/mx28_evk.h @@ -119,7 +119,6 @@ #define CONFIG_BOOTP_GATEWAY #define CONFIG_BOOTP_DNS - /* * MMC Driver */ @@ -130,6 +129,7 @@ #define CONFIG_SYS_MMC_ENV_DEV 0 #define CONFIG_DOS_PARTITION #define CONFIG_CMD_FAT +#define CONFIG_SYS_SSP_MMC_NUM 2 /* * Environments on MMC @@ -140,5 +140,13 @@ /* Assoiated with the MMC layout defined in mmcops.c */ #define CONFIG_ENV_OFFSET (0x400) /* 1 KB */ #define CONFIG_ENV_SIZE (0x20000 - 0x400) /* 127 KB */ +#define CONFIG_DYNAMIC_MMC_DEVNO + +/* The global boot mode has been detected by Boot ROM and a boot mode value + * is stored at address of 0x0001a7f0. + */ +#define GLOBAL_BOOT_MODE_ADDR 0x0001a7f0 +#define BOOT_MODE_SD0 0x9 +#define BOOT_MODE_SD1 0xa #endif /* __MX28_EVK_H */ |