1 --- a/arch/arm/mach-ixp4xx/gtwx5715-setup.c
2 +++ b/arch/arm/mach-ixp4xx/gtwx5715-setup.c
5 #include <linux/serial_8250.h>
6 #include <linux/slab.h>
7 +#include <linux/spi/spi_gpio_old.h>
10 #include <asm/memory.h>
11 @@ -147,9 +148,41 @@ static struct platform_device gtwx5715_f
12 .resource = >wx5715_flash_resource,
15 +static int gtwx5715_spi_boardinfo_setup(struct spi_board_info *bi,
16 + struct spi_master *master, void *data)
19 + strlcpy(bi->modalias, "spi-ks8995", sizeof(bi->modalias));
21 + bi->max_speed_hz = 5000000 /* Hz */;
22 + bi->bus_num = master->bus_num;
23 + bi->mode = SPI_MODE_0;
28 +static struct spi_gpio_platform_data gtwx5715_spi_bus_data = {
29 + .pin_cs = GTWX5715_KSSPI_SELECT,
30 + .pin_clk = GTWX5715_KSSPI_CLOCK,
31 + .pin_miso = GTWX5715_KSSPI_RXD,
32 + .pin_mosi = GTWX5715_KSSPI_TXD,
35 + .boardinfo_setup = gtwx5715_spi_boardinfo_setup,
38 +static struct platform_device gtwx5715_spi_bus = {
42 + .platform_data = >wx5715_spi_bus_data,
46 static struct platform_device *gtwx5715_devices[] __initdata = {
47 >wx5715_uart_device,
52 static void __init gtwx5715_init(void)