This patch adds GPIO function enable/disable bits for the AR7242, as derived from the D-Link GPL firmware sources for the DIR-632-A1.
Note that of these, AR724X_GPIO_FUNCTION_CLK_OBS6_ENABLE and AR724X_GPIO_FUNCTION_PCIEPHY_TST_EN are explicitly cleared by the D-Link sources. I suspect these bits are necessary to enable the test pin GPIOs although I havent had a chance to scientifically verify this. Signed-off-by: Andrew McDonnell <b...@andrewmcdonnell.net> --- .../902-MIPS-ath79-ar7274-gpio-functions.patch | 26 ++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/target/linux/ar71xx/patches-3.8/902-MIPS-ath79-ar7274-gpio-functions.patch b/target/linux/ar71xx/patches-3.8/902-MIPS-ath79-ar7274-gpio-functions.patch new file mode 100644 index 0000000..9ea2276 --- /dev/null +++ b/target/linux/ar71xx/patches-3.8/902-MIPS-ath79-ar7274-gpio-functions.patch @@ -0,0 +1,26 @@ +--- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h ++++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h +@@ -672,8 +672,23 @@ + #define AR71XX_GPIO_FUNC_USB_OC_EN BIT(4) + #define AR71XX_GPIO_FUNC_USB_CLK_EN BIT(0) + ++#define AR724X_GPIO_FUNCTION_SPDIF2TCK_EN BIT(31) ++#define AR724X_GPIO_FUNCTION_SPDIF_EN BIT(30) ++#define AR724X_GPIO_FUNCTION_I2S_GPIO_18_22_EN BIT(29) ++#define AR724X_GPIO_FUNCTION_I2S_REFCLKEN BIT(28) ++#define AR724X_GPIO_FUNCTION_I2S_MCKEN BIT(27) ++#define AR724X_GPIO_FUNCTION_I2S0_EN BIT(26) ++#define AR724X_GPIO_FUNCTION_ETH_SWITCH_LED_DUPL_EN BIT(25) ++#define AR724X_GPIO_FUNCTION_ETH_SWITCH_LED_COLL BIT(24) ++#define AR724X_GPIO_FUNCTION_ETH_SWITCH_LED_ACTV BIT(23) ++#define AR724X_GPIO_FUNCTION_PLL_SHIFT_EN BIT(22) ++#define AR724X_GPIO_FUNCTION_EXT_MDIO_SEL BIT(21) ++#define AR724X_GPIO_FUNCTION_CLK_OBS6_ENABLE BIT(20) + #define AR724X_GPIO_FUNC_GE0_MII_CLK_EN BIT(19) + #define AR724X_GPIO_FUNC_SPI_EN BIT(18) ++#define AR724X_GPIO_FUNCTION_DDR_DQOE_EN BIT(17) ++#define AR724X_GPIO_FUNCTION_PCIEPHY_TST_EN BIT(16) ++#define AR724X_GPIO_FUNCTION_S26_UART_DISABLE BIT(15) + #define AR724X_GPIO_FUNC_SPI_CS_EN2 BIT(14) + #define AR724X_GPIO_FUNC_SPI_CS_EN1 BIT(13) + #define AR724X_GPIO_FUNC_CLK_OBS5_EN BIT(12) _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel