From 55fed6fd0b292b37df2a17aeca732194d99440a5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Sep 2010 17:54:09 -0400 Subject: 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 --- drivers/spi/bfin_spi.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/spi/bfin_spi.c') diff --git a/drivers/spi/bfin_spi.c b/drivers/spi/bfin_spi.c index e0ad0298d8..556b97a64d 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) -- cgit v1.2.3