ar71xx: improve SPI flash read/write performance
[openwrt.git] / target / linux / ar71xx / patches-3.2 / 208-MIPS-ath79-db120-spi-chipselect-fix.patch
1 --- a/arch/mips/ath79/mach-db120.c
2 +++ b/arch/mips/ath79/mach-db120.c
3 @@ -95,12 +95,18 @@ static struct gpio_keys_button db120_gpi
4 },
5 };
6
7 +static struct ath79_spi_controller_data db120_spi0_data = {
8 + .cs_type = ATH79_SPI_CS_TYPE_INTERNAL,
9 + .cs_line = 0,
10 +};
11 +
12 static struct spi_board_info db120_spi_info[] = {
13 {
14 .bus_num = 0,
15 .chip_select = 0,
16 .max_speed_hz = 25000000,
17 .modalias = "s25sl064a",
18 + .controller_data = &db120_spi0_data,
19 }
20 };
21
This page took 0.042517 seconds and 5 git commands to generate.