0016-ar71xx-add-GPIO-output-select-values-for-AR934x.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From: juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
  2. Date: Mon, 25 Mar 2013 06:40:00 +0000
  3. Subject: ar71xx: add GPIO output select values for AR934x
  4. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  5. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36121 3c298f89-4303-0410-b956-a3cf2f4a3e73
  6. Conflicts:
  7. target/linux/ar71xx/patches-3.8/601-MIPS-ath79-add-more-register-defines.patch
  8. diff --git a/target/linux/ar71xx/patches-3.3/601-MIPS-ath79-add-more-register-defines.patch b/target/linux/ar71xx/patches-3.3/601-MIPS-ath79-add-more-register-defines.patch
  9. index 8411d58..12522c1 100644
  10. --- a/target/linux/ar71xx/patches-3.3/601-MIPS-ath79-add-more-register-defines.patch
  11. +++ b/target/linux/ar71xx/patches-3.3/601-MIPS-ath79-add-more-register-defines.patch
  12. @@ -166,7 +166,7 @@
  13. #define AR934X_GPIO_REG_FUNC 0x6c
  14. #define AR71XX_GPIO_COUNT 16
  15. -@@ -550,4 +618,139 @@
  16. +@@ -550,4 +618,144 @@
  17. #define AR934X_SRIF_DPLL2_OUTDIV_SHIFT 13
  18. #define AR934X_SRIF_DPLL2_OUTDIV_MASK 0x7
  19. @@ -237,7 +237,12 @@
  20. +#define AR934X_GPIO_FUNC_CLK_OBS0_EN BIT(2)
  21. +#define AR934X_GPIO_FUNC_JTAG_DISABLE BIT(1)
  22. +
  23. -+#define AR934X_GPIO_OUT_GPIO 0x00
  24. ++#define AR934X_GPIO_OUT_GPIO 0
  25. ++#define AR934X_GPIO_OUT_LED_LINK0 41
  26. ++#define AR934X_GPIO_OUT_LED_LINK1 42
  27. ++#define AR934X_GPIO_OUT_LED_LINK2 43
  28. ++#define AR934X_GPIO_OUT_LED_LINK3 44
  29. ++#define AR934X_GPIO_OUT_LED_LINK4 45
  30. +
  31. +/*
  32. + * MII_CTRL block