ar71xx: fix GPIO function selection for AR934x
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.3 / 601-MIPS-ath79-add-more-register-defines.patch
index 8a11a70d1170ab87a8f614bbe83fb01ab2f5afc8..150f0eecb87ad34b42b10c505f2fbb15d2c4f7c9 100644 (file)
  #define AR933X_BOOTSTRAP_REF_CLK_40   BIT(0)
  
  #define AR934X_BOOTSTRAP_SW_OPTION8   BIT(23)
-@@ -520,6 +582,14 @@
+@@ -520,6 +582,12 @@
  #define AR71XX_GPIO_REG_INT_ENABLE    0x24
  #define AR71XX_GPIO_REG_FUNC          0x28
  
 +#define AR934X_GPIO_REG_OUT_FUNC3     0x38
 +#define AR934X_GPIO_REG_OUT_FUNC4     0x3c
 +#define AR934X_GPIO_REG_OUT_FUNC5     0x40
-+#define AR934X_GPIO_REG_FUNC          0x6c
-+
+ #define AR934X_GPIO_REG_FUNC          0x6c
  #define AR71XX_GPIO_COUNT             16
- #define AR724X_GPIO_COUNT             18
- #define AR913X_GPIO_COUNT             22
-@@ -548,4 +618,133 @@
+@@ -550,4 +618,133 @@
  #define AR934X_SRIF_DPLL2_OUTDIV_SHIFT        13
  #define AR934X_SRIF_DPLL2_OUTDIV_MASK 0x7