--- zzzz-none-000/linux-3.10.107/arch/mips/ath79/common.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/mips/ath79/common.h 2021-02-04 17:41:59.000000000 +0000 @@ -15,17 +15,23 @@ #define __ATH79_COMMON_H #include -#include + #define ATH79_MEM_SIZE_MIN (2 * 1024 * 1024) -#define ATH79_MEM_SIZE_MAX (128 * 1024 * 1024) +#define ATH79_MEM_SIZE_MAX (256 * 1024 * 1024) void ath79_clocks_init(void); +unsigned long ath79_get_sys_clk_rate(const char *id); + +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 */