--- zzzz-none-000/linux-3.10.107/arch/mips/include/asm/mach-ath79/ath79_spi_platform.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/mips/include/asm/mach-ath79/ath79_spi_platform.h 2021-02-04 17:41:59.000000000 +0000 @@ -16,8 +16,15 @@ unsigned num_chipselect; }; +enum ath79_spi_cs_type { + ATH79_SPI_CS_TYPE_INTERNAL, + ATH79_SPI_CS_TYPE_GPIO, +}; + struct ath79_spi_controller_data { - unsigned gpio; + enum ath79_spi_cs_type cs_type; + unsigned cs_line; + bool is_flash; }; #endif /* _ATH79_SPI_PLATFORM_H */