diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-12-11 06:30:46 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-02 12:27:15 -0500 |
commit | 8df3ce0f49c37947800ac7c84e751499882619fc (patch) | |
tree | e288312fd0e6416c040d1c14cd9deb4ba41046b0 | |
parent | 2b4a486e6fac502d8b883e344cc4012283945b3d (diff) | |
download | u-boot-imx-8df3ce0f49c37947800ac7c84e751499882619fc.zip u-boot-imx-8df3ce0f49c37947800ac7c84e751499882619fc.tar.gz u-boot-imx-8df3ce0f49c37947800ac7c84e751499882619fc.tar.bz2 |
Blackfin: set default CONFIG_ENV_SPI_CS based on bootrom
Set the default CONFIG_ENV_SPI_CS value to match the SPI CS that is used by
the Blackfin on-chip bootrom to boot out of SPI flash.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | include/asm-blackfin/blackfin-config-post.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-blackfin/blackfin-config-post.h b/include/asm-blackfin/blackfin-config-post.h index 21abd72..fea4737 100644 --- a/include/asm-blackfin/blackfin-config-post.h +++ b/include/asm-blackfin/blackfin-config-post.h @@ -67,6 +67,11 @@ # define CONFIG_LINUX_CMDLINE_SIZE L1_SRAM_SCRATCH_SIZE #endif +/* Set default SPI flash CS to the one we boot from */ +#if defined(CONFIG_ENV_IS_IN_SPI_FLASH) && !defined(CONFIG_ENV_SPI_CS) +# define CONFIG_ENV_SPI_CS BFIN_BOOT_SPI_SSEL +#endif + /* Default/common Blackfin memory layout */ #ifndef CONFIG_SYS_SDRAM_BASE # define CONFIG_SYS_SDRAM_BASE 0 |