diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2015-11-19 19:02:33 -0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-11-25 09:37:58 +0100 |
commit | 71bcdafe73255d6ef974e55f3d31cf27127871b5 (patch) | |
tree | 945c5e5de7b49aa0ec03e8fe1713f4ba3fa9e5b9 /include/configs/cgtqmx6eval.h | |
parent | fef438d76c08ba11f35b1257892bb3093d8e4caf (diff) | |
download | u-boot-71bcdafe73255d6ef974e55f3d31cf27127871b5.tar.gz |
cgtqmx6eval: Add SPI NOR flash support
Add SPI NOR support:
=> sf probe
SF: Detected SST25VF032B with page size 256 Bytes, erase size 4 KiB, total 4 MiB
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'include/configs/cgtqmx6eval.h')
-rw-r--r-- | include/configs/cgtqmx6eval.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/cgtqmx6eval.h b/include/configs/cgtqmx6eval.h index e0aa4b0894..9aa66c727d 100644 --- a/include/configs/cgtqmx6eval.h +++ b/include/configs/cgtqmx6eval.h @@ -29,6 +29,16 @@ /* MMC Configs */ #define CONFIG_SYS_FSL_ESDHC_ADDR 0 +/* SPI NOR */ +#define CONFIG_CMD_SF +#define CONFIG_SPI_FLASH +#define CONFIG_SPI_FLASH_STMICRO +#define CONFIG_SPI_FLASH_SST +#define CONFIG_MXC_SPI +#define CONFIG_SF_DEFAULT_BUS 0 +#define CONFIG_SF_DEFAULT_SPEED 20000000 +#define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0) + /* Miscellaneous commands */ #define CONFIG_CMD_BMODE @@ -200,8 +210,10 @@ "else " \ "bootz; " \ "fi;\0" \ + "spilock=sf probe && sf protect lock 0x3f0000 0x10000;"\ #define CONFIG_BOOTCOMMAND \ + "run spilock;" \ "mmc dev ${mmcdev};" \ "if mmc rescan; then " \ "if run loadbootscript; then " \ |