1 --- a/arch/arm/mach-ixp4xx/gtwx5715-setup.c
2 +++ b/arch/arm/mach-ixp4xx/gtwx5715-setup.c
4 #include <linux/serial_8250.h>
5 #include <linux/slab.h>
7 +#include <linux/spi/spi_gpio_old.h>
10 #include <asm/setup.h>
11 #include <asm/memory.h>
12 @@ -121,9 +123,41 @@ static struct platform_device gtwx5715_f
13 .resource = >wx5715_flash_resource,
16 +static int gtwx5715_spi_boardinfo_setup(struct spi_board_info *bi,
17 + struct spi_master *master, void *data)
20 + strlcpy(bi->modalias, "spi-ks8995", sizeof(bi->modalias));
22 + bi->max_speed_hz = 5000000 /* Hz */;
23 + bi->bus_num = master->bus_num;
24 + bi->mode = SPI_MODE_0;
29 +static struct spi_gpio_platform_data gtwx5715_spi_bus_data = {
30 + .pin_cs = GTWX5715_KSSPI_SELECT,
31 + .pin_clk = GTWX5715_KSSPI_CLOCK,
32 + .pin_miso = GTWX5715_KSSPI_RXD,
33 + .pin_mosi = GTWX5715_KSSPI_TXD,
36 + .boardinfo_setup = gtwx5715_spi_boardinfo_setup,
39 +static struct platform_device gtwx5715_spi_bus = {
43 + .platform_data = >wx5715_spi_bus_data,
47 static struct platform_device *gtwx5715_devices[] __initdata = {
48 >wx5715_uart_device,
53 static void __init gtwx5715_init(void)