summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-13 11:00:29 -0500
committerMike Frysinger <vapier@gentoo.org>2009-02-05 21:25:36 -0500
commit4b7e3d045cc82f7f7b6f3a19b54a814da36ac52c (patch)
tree851309142e255f62f7f2d7e081b5607a2fddb136 /include
parentf790ef6ff12381cb0e43de54fb2b0f1204ad8ed6 (diff)
downloadbootable_bootloader_goldelico_gta04-4b7e3d045cc82f7f7b6f3a19b54a814da36ac52c.zip
bootable_bootloader_goldelico_gta04-4b7e3d045cc82f7f7b6f3a19b54a814da36ac52c.tar.gz
bootable_bootloader_goldelico_gta04-4b7e3d045cc82f7f7b6f3a19b54a814da36ac52c.tar.bz2
Blackfin: move default boot SPI CS to common code
Move the default SPI CS that we boot from into common code so that it can be used in other SPI drivers and environment settings. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-blackfin/blackfin-config-pre.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-blackfin/blackfin-config-pre.h b/include/asm-blackfin/blackfin-config-pre.h
index a1fae5c..9df01ad 100644
--- a/include/asm-blackfin/blackfin-config-pre.h
+++ b/include/asm-blackfin/blackfin-config-pre.h
@@ -60,4 +60,13 @@ static inline const char *get_bfin_boot_mode(int bfin_boot)
}
#endif
+/* Define the default SPI CS used when booting out of SPI */
+#if defined(__ADSPBF531__) || defined(__ADSPBF532__) || defined(__ADSPBF533__) || \
+ defined(__ADSPBF538__) || defined(__ADSPBF539__) || defined(__ADSPBF561__) || \
+ defined(__ADSPBF51x__)
+# define BFIN_BOOT_SPI_SSEL 2
+#else
+# define BFIN_BOOT_SPI_SSEL 1
+#endif
+
#endif