aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/reg.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2010-06-30 05:16:31 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-30 15:00:53 -0400
commit88c1f4f6dffe66e2fed8e7e3276e091ee850bed0 (patch)
treeaf33d9246e53c8c30a0e00b2c91219798cfe5180 /drivers/net/wireless/ath/ath9k/reg.h
parent92b50c4b5b01d0ba4efcff9e85f7a76b620fe789 (diff)
ath9k_htc: Add LED support for AR7010
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/reg.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/reg.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h
index 47be667fe4ff..633e3d949ec0 100644
--- a/drivers/net/wireless/ath/ath9k/reg.h
+++ b/drivers/net/wireless/ath/ath9k/reg.h
@@ -882,6 +882,7 @@
882#define AR_SREV_9271_11(_ah) \ 882#define AR_SREV_9271_11(_ah) \
883 (AR_SREV_9271(_ah) && \ 883 (AR_SREV_9271(_ah) && \
884 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9271_11)) 884 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9271_11))
885
885#define AR_SREV_9300(_ah) \ 886#define AR_SREV_9300(_ah) \
886 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9300)) 887 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9300))
887#define AR_SREV_9300_20(_ah) \ 888#define AR_SREV_9300_20(_ah) \
@@ -896,6 +897,10 @@
896 (AR_SREV_9285_12_OR_LATER(_ah) && \ 897 (AR_SREV_9285_12_OR_LATER(_ah) && \
897 ((REG_READ(_ah, AR_AN_SYNTH9) & 0x7) == 0x1)) 898 ((REG_READ(_ah, AR_AN_SYNTH9) & 0x7) == 0x1))
898 899
900#define AR_DEVID_7010(_ah) \
901 (((_ah)->hw_version.devid == 0x7010) || \
902 ((_ah)->hw_version.devid == 0x9018))
903
899#define AR_RADIO_SREV_MAJOR 0xf0 904#define AR_RADIO_SREV_MAJOR 0xf0
900#define AR_RAD5133_SREV_MAJOR 0xc0 905#define AR_RAD5133_SREV_MAJOR 0xc0
901#define AR_RAD2133_SREV_MAJOR 0xd0 906#define AR_RAD2133_SREV_MAJOR 0xd0
@@ -993,6 +998,7 @@ enum {
993#define AR9287_NUM_GPIO 11 998#define AR9287_NUM_GPIO 11
994#define AR9271_NUM_GPIO 16 999#define AR9271_NUM_GPIO 16
995#define AR9300_NUM_GPIO 17 1000#define AR9300_NUM_GPIO 17
1001#define AR7010_NUM_GPIO 16
996 1002
997#define AR_GPIO_IN_OUT 0x4048 1003#define AR_GPIO_IN_OUT 0x4048
998#define AR_GPIO_IN_VAL 0x0FFFC000 1004#define AR_GPIO_IN_VAL 0x0FFFC000
@@ -1007,6 +1013,8 @@ enum {
1007#define AR9271_GPIO_IN_VAL_S 16 1013#define AR9271_GPIO_IN_VAL_S 16
1008#define AR9300_GPIO_IN_VAL 0x0001FFFF 1014#define AR9300_GPIO_IN_VAL 0x0001FFFF
1009#define AR9300_GPIO_IN_VAL_S 0 1015#define AR9300_GPIO_IN_VAL_S 0
1016#define AR7010_GPIO_IN_VAL 0x0000FFFF
1017#define AR7010_GPIO_IN_VAL_S 0
1010 1018
1011#define AR_GPIO_OE_OUT (AR_SREV_9300_20_OR_LATER(ah) ? 0x4050 : 0x404c) 1019#define AR_GPIO_OE_OUT (AR_SREV_9300_20_OR_LATER(ah) ? 0x4050 : 0x404c)
1012#define AR_GPIO_OE_OUT_DRV 0x3 1020#define AR_GPIO_OE_OUT_DRV 0x3
@@ -1015,6 +1023,21 @@ enum {
1015#define AR_GPIO_OE_OUT_DRV_HI 0x2 1023#define AR_GPIO_OE_OUT_DRV_HI 0x2
1016#define AR_GPIO_OE_OUT_DRV_ALL 0x3 1024#define AR_GPIO_OE_OUT_DRV_ALL 0x3
1017 1025
1026#define AR7010_GPIO_OE 0x52000
1027#define AR7010_GPIO_OE_MASK 0x1
1028#define AR7010_GPIO_OE_AS_OUTPUT 0x0
1029#define AR7010_GPIO_OE_AS_INPUT 0x1
1030#define AR7010_GPIO_IN 0x52004
1031#define AR7010_GPIO_OUT 0x52008
1032#define AR7010_GPIO_SET 0x5200C
1033#define AR7010_GPIO_CLEAR 0x52010
1034#define AR7010_GPIO_INT 0x52014
1035#define AR7010_GPIO_INT_TYPE 0x52018
1036#define AR7010_GPIO_INT_POLARITY 0x5201C
1037#define AR7010_GPIO_PENDING 0x52020
1038#define AR7010_GPIO_INT_MASK 0x52024
1039#define AR7010_GPIO_FUNCTION 0x52028
1040
1018#define AR_GPIO_INTR_POL (AR_SREV_9300_20_OR_LATER(ah) ? 0x4058 : 0x4050) 1041#define AR_GPIO_INTR_POL (AR_SREV_9300_20_OR_LATER(ah) ? 0x4058 : 0x4050)
1019#define AR_GPIO_INTR_POL_VAL 0x0001FFFF 1042#define AR_GPIO_INTR_POL_VAL 0x0001FFFF
1020#define AR_GPIO_INTR_POL_VAL_S 0 1043#define AR_GPIO_INTR_POL_VAL_S 0