Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bf609: change ad7877 cs and irq pin

Extend chip select number supported by spi master as well
because we can accept SPISEL1-SPISEL7 and all GPIO.

Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>

authored by

Scott Jiang and committed by
Bob Liu
2cdd7008 28a33cbc

+4 -4
+4 -4
arch/blackfin/mach-bf609/boards/ezkit.c
··· 981 981 { 982 982 .modalias = "ad7877", 983 983 .platform_data = &bfin_ad7877_ts_info, 984 - .irq = IRQ_PB4, /* old boards (<=Rev 1.3) use IRQ_PJ11 */ 984 + .irq = IRQ_PD9, 985 985 .max_speed_hz = 12500000, /* max spi clock (SCK) speed in HZ */ 986 986 .bus_num = 0, 987 - .chip_select = 2, 987 + .chip_select = 4, 988 988 }, 989 989 #endif 990 990 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) ··· 1050 1050 1051 1051 /* SPI controller data */ 1052 1052 static struct bfin6xx_spi_master bf60x_spi_master_info0 = { 1053 - .num_chipselect = 4, 1053 + .num_chipselect = MAX_CTRL_CS + MAX_BLACKFIN_GPIOS, 1054 1054 .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0}, 1055 1055 }; 1056 1056 ··· 1065 1065 }; 1066 1066 1067 1067 static struct bfin6xx_spi_master bf60x_spi_master_info1 = { 1068 - .num_chipselect = 4, 1068 + .num_chipselect = MAX_CTRL_CS + MAX_BLACKFIN_GPIOS, 1069 1069 .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0}, 1070 1070 }; 1071 1071