diff options
author | Adrian Alonso <aalonso@freescale.com> | 2012-11-20 18:44:15 -0600 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2012-11-29 11:48:15 +0800 |
commit | 657ffee871fc26de7d31b29d03140ed39efb385f (patch) | |
tree | 91f38d5ce542c3bedc2501623239e997b5adda2d | |
parent | 27fafe05c365dd6306317b6d5aef38a9354117c5 (diff) | |
download | u-boot-imx-657ffee871fc26de7d31b29d03140ed39efb385f.zip u-boot-imx-657ffee871fc26de7d31b29d03140ed39efb385f.tar.gz u-boot-imx-657ffee871fc26de7d31b29d03140ed39efb385f.tar.bz2 |
ENGR00234353-1: mx6_sabreauto fix weim-nor boot
* Fix weim-nor boot failure
* Group weim-nor conflict modules
If not defined CONFIG_CMD_WEIMNOR
enable SPI-NOR and I2C (default)
else enable weim-nor
* Remove FLASH_SIZE macro, size is query by
CFI driver
* Enable flash empty information
Signed-off-by: Adrian Alonso <aalonso@freescale.com>
-rw-r--r-- | include/configs/mx6dl_sabreauto.h | 15 | ||||
-rw-r--r-- | include/configs/mx6q_sabreauto.h | 18 | ||||
-rw-r--r-- | include/configs/mx6solo_sabreauto.h | 15 |
3 files changed, 27 insertions, 21 deletions
diff --git a/include/configs/mx6dl_sabreauto.h b/include/configs/mx6dl_sabreauto.h index 8b447c7..2f6c963 100644 --- a/include/configs/mx6dl_sabreauto.h +++ b/include/configs/mx6dl_sabreauto.h @@ -91,8 +91,6 @@ #define CONFIG_BOOTP_GATEWAY #define CONFIG_BOOTP_DNS -#define CONFIG_CMD_SPI -#define CONFIG_CMD_I2C #define CONFIG_CMD_IMXOTP /*Uncomment if wish to view Parallel NOR as device. *If you want to use it as Boot device you need @@ -100,8 +98,13 @@ */ /*#define CONFIG_CMD_WEIMNOR*/ -/* Enable below configure when supporting nand */ + +#ifndef CONFIG_CMD_WEIMNOR +#define CONFIG_CMD_SPI +#define CONFIG_CMD_I2C #define CONFIG_CMD_SF +#endif + #define CONFIG_CMD_MMC #define CONFIG_CMD_ENV #define CONFIG_CMD_REGUL @@ -221,13 +224,13 @@ #define CONFIG_SYS_FLASH_CFI /* use the Common Flash Interface */ #define CONFIG_FLASH_CFI_DRIVER /* use the CFI driver */ #define CONFIG_SYS_FLASH_BASE 0x08000000 /* start of FLASH */ - #define CONFIG_SYS_FLASH_SIZE 0x08000000 /* max flash size in bytes */ - #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE + #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE} #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */ #define CONFIG_SYS_MAX_FLASH_SECT 256 /* max sectors per device */ - #define CONFIG_SYS_FLASH_PROTECTION + #define CONFIG_SYS_FLASH_PROTECTION 1 + #define CONFIG_SYS_FLASH_EMPTY_INFO #endif /* Regulator Configs */ diff --git a/include/configs/mx6q_sabreauto.h b/include/configs/mx6q_sabreauto.h index a04529e..195b7e8 100644 --- a/include/configs/mx6q_sabreauto.h +++ b/include/configs/mx6q_sabreauto.h @@ -90,8 +90,6 @@ #define CONFIG_BOOTP_GATEWAY #define CONFIG_BOOTP_DNS -#define CONFIG_CMD_SPI -#define CONFIG_CMD_I2C #define CONFIG_CMD_IMXOTP /*Uncomment if wish to view Parallel NOR as device. *If you want to use it as Boot device you need @@ -99,8 +97,13 @@ */ /*#define CONFIG_CMD_WEIMNOR*/ -/* Enable below configure when supporting nand */ + +#ifndef CONFIG_CMD_WEIMNOR +#define CONFIG_CMD_SPI +#define CONFIG_CMD_I2C #define CONFIG_CMD_SF +#endif + #define CONFIG_CMD_MMC #define CONFIG_CMD_ENV #define CONFIG_CMD_REGUL @@ -201,8 +204,6 @@ #define CONFIG_SYS_I2C_SLAVE 0x30 #endif - - /* * SPI Configs * SPI NOR AND WEIM NOR share PINs, so cannot be enabled both at sametime @@ -223,16 +224,15 @@ #define CONFIG_SYS_FLASH_CFI /* use the Common Flash Interface */ #define CONFIG_FLASH_CFI_DRIVER /* use the CFI driver */ #define CONFIG_SYS_FLASH_BASE 0x08000000 /* start of FLASH */ - #define CONFIG_SYS_FLASH_SIZE 0x08000000 /* max flash size in bytes */ - #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE + #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE} #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */ #define CONFIG_SYS_MAX_FLASH_SECT 256 /* max sectors per device */ - #define CONFIG_SYS_FLASH_PROTECTION + #define CONFIG_SYS_FLASH_PROTECTION 1 + #define CONFIG_SYS_FLASH_EMPTY_INFO #endif - /* Regulator Configs */ #ifdef CONFIG_CMD_REGUL #define CONFIG_ANATOP_REGULATOR diff --git a/include/configs/mx6solo_sabreauto.h b/include/configs/mx6solo_sabreauto.h index 57e5ee7..ee00385 100644 --- a/include/configs/mx6solo_sabreauto.h +++ b/include/configs/mx6solo_sabreauto.h @@ -92,8 +92,6 @@ #define CONFIG_BOOTP_GATEWAY #define CONFIG_BOOTP_DNS -#define CONFIG_CMD_SPI -#define CONFIG_CMD_I2C #define CONFIG_CMD_IMXOTP /*Uncomment if wish to view Parallel NOR as device. *If you want to use it as Boot device you need @@ -101,8 +99,13 @@ */ /*#define CONFIG_CMD_WEIMNOR*/ -/* Enable below configure when supporting nand */ + +#ifndef CONFIG_CMD_WEIMNOR +#define CONFIG_CMD_SPI +#define CONFIG_CMD_I2C #define CONFIG_CMD_SF +#endif + #define CONFIG_CMD_MMC #define CONFIG_CMD_ENV #define CONFIG_CMD_REGUL @@ -222,13 +225,13 @@ #define CONFIG_SYS_FLASH_CFI /* use the Common Flash Interface */ #define CONFIG_FLASH_CFI_DRIVER /* use the CFI driver */ #define CONFIG_SYS_FLASH_BASE 0x08000000 /* start of FLASH */ - #define CONFIG_SYS_FLASH_SIZE 0x08000000 /* max flash size in bytes */ - #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE + #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE} #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */ #define CONFIG_SYS_MAX_FLASH_SECT 256 /* max sectors per device */ - #define CONFIG_SYS_FLASH_PROTECTION + #define CONFIG_SYS_FLASH_PROTECTION 1 + #define CONFIG_SYS_FLASH_EMPTY_INFO #endif /* Regulator Configs */ |