summaryrefslogtreecommitdiff
path: root/drivers/spi/bfin_spi.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-20 17:54:09 -0400
committerMike Frysinger <vapier@gentoo.org>2010-09-21 18:22:14 -0400
commit55fed6fd0b292b37df2a17aeca732194d99440a5 (patch)
tree0ad717a7e188f3e22ee75e24339960dd3e94c308 /drivers/spi/bfin_spi.c
parent3d7c8cf5ecc880be03385ae839913dc060af21a0 (diff)
downloadu-boot-imx-55fed6fd0b292b37df2a17aeca732194d99440a5.zip
u-boot-imx-55fed6fd0b292b37df2a17aeca732194d99440a5.tar.gz
u-boot-imx-55fed6fd0b292b37df2a17aeca732194d99440a5.tar.bz2
Blackfin: bfin_spi: use same gpio cs define as Linux
Linux uses an offset of 8 to switch from hardware cs to a gpio cs, so have u-boot use the same value. Also make sure it is public for boards to access. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/spi/bfin_spi.c')
-rw-r--r--drivers/spi/bfin_spi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/bfin_spi.c b/drivers/spi/bfin_spi.c
index e0ad029..556b97a 100644
--- a/drivers/spi/bfin_spi.c
+++ b/drivers/spi/bfin_spi.c
@@ -35,8 +35,6 @@ MAKE_SPI_FUNC(SPI_BAUD, 0x14)
#define to_bfin_spi_slave(s) container_of(s, struct bfin_spi_slave, slave)
-#define MAX_CTRL_CS 7
-
#define gpio_cs(cs) ((cs) - MAX_CTRL_CS)
#ifdef CONFIG_BFIN_SPI_GPIO_CS
# define is_gpio_cs(cs) ((cs) > MAX_CTRL_CS)