1
0

001-spi-cs-gpio.patch 578 B

1234567891011121314151617181920
  1. --- a/arch/mips/include/asm/mach-ath79/ath79_spi_platform.h
  2. +++ b/arch/mips/include/asm/mach-ath79/ath79_spi_platform.h
  3. @@ -14,6 +14,7 @@
  4. struct ath79_spi_platform_data {
  5. unsigned bus_num;
  6. unsigned num_chipselect;
  7. + int *cs_gpios;
  8. };
  9. #endif /* _ATH79_SPI_PLATFORM_H */
  10. --- a/drivers/spi/spi-ath79.c
  11. +++ b/drivers/spi/spi-ath79.c
  12. @@ -231,6 +231,7 @@ static int ath79_spi_probe(struct platfo
  13. if (pdata) {
  14. master->bus_num = pdata->bus_num;
  15. master->num_chipselect = pdata->num_chipselect;
  16. + master->cs_gpios = pdata->cs_gpios;
  17. }
  18. sp->bitbang.master = master;