--- zzzz-none-000/linux-4.4.271/arch/mips/include/asm/mach-ath79/ath79_spi_platform.h	2021-06-03 06:22:09.000000000 +0000
+++ maple-fsgw-759/linux-4.4.271/arch/mips/include/asm/mach-ath79/ath79_spi_platform.h	2023-12-20 10:37:02.000000000 +0000
@@ -16,4 +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 {
+	enum ath79_spi_cs_type cs_type;
+	unsigned cs_line;
+	bool is_flash;
+};
+
 #endif /* _ATH79_SPI_PLATFORM_H */