--- zzzz-none-000/linux-4.4.271/arch/mips/ath79/common.h 2021-06-03 06:22:09.000000000 +0000 +++ maple-fsgw-759/linux-4.4.271/arch/mips/ath79/common.h 2023-12-20 10:37:02.000000000 +0000 @@ -16,6 +16,7 @@ #include + #define ATH79_MEM_SIZE_MIN (2 * 1024 * 1024) #define ATH79_MEM_SIZE_MAX (256 * 1024 * 1024) @@ -25,6 +26,12 @@ void ath79_ddr_ctrl_init(void); void ath79_ddr_wb_flush(unsigned int reg); +void ath79_gpio_function_enable(u32 mask); +void ath79_gpio_function_disable(u32 mask); +void ath79_gpio_function_setup(u32 set, u32 clear); +void ath79_gpio_function2_setup(u32 set, u32 clear); +void ath79_gpio_output_select(unsigned gpio, u8 val); +int ath79_gpio_direction_select(unsigned gpio, bool oe); void ath79_gpio_init(void); #endif /* __ATH79_COMMON_H */