summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-06-20 15:05:59 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-06-20 15:05:59 +0000
commit0a48597a24bd0e532f3beda14489c4fe50f26643 (patch)
tree9684a5454709531c50bee028105617d8340ebdb5
parentc4a37081ce34e0f932c77ced232bf5994eaec4eb (diff)
update AR9380 ROM layout (add PA predistortion related fields.)
-rw-r--r--sys/dev/ic/ar9380reg.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/ic/ar9380reg.h b/sys/dev/ic/ar9380reg.h
index 709c936fc77..57921fa762f 100644
--- a/sys/dev/ic/ar9380reg.h
+++ b/sys/dev/ic/ar9380reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar9380reg.h,v 1.7 2010/06/20 14:40:02 damien Exp $ */
+/* $OpenBSD: ar9380reg.h,v 1.8 2010/06/20 15:05:58 damien Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -89,6 +89,7 @@ struct ar9380_base_eep_hdr {
#define AR_EEP_FAST_CLOCK_EN 0x04
#define AR_EEP_DOUBLING_EN 0x08
#define AR_EEP_INTERNAL_REGULATOR 0x10
+#define AR_EEP_PAPRD 0x20
uint8_t miscConfiguration;
#define AR_EEP_DRIVE_STRENGTH 0x01
@@ -139,7 +140,9 @@ struct ar9380_modal_eep_header {
uint8_t txEndToRxOn;
uint8_t txFrameToXpaOn;
uint8_t thresh62;
- uint8_t futureModal[32];
+ uint32_t papdRateMaskHt20;
+ uint32_t papdRateMaskHt40;
+ uint8_t futureModal[24];
} __packed;
struct ar9380_cal_data_per_freq_op_loop {
@@ -208,8 +211,8 @@ static const uint8_t ar9380_def_rom[] = {
0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xff, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x0e, 0x03, 0x00,
- 0x2c, 0xe2, 0x00, 0x02, 0x0e, 0x1c, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x2c, 0xe2, 0x00, 0x02, 0x0e, 0x1c, 0x80, 0xc0, 0x80, 0x00,
+ 0x80, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x89,
0xac, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -245,7 +248,7 @@ static const uint8_t ar9380_def_rom[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
0x00, 0x0e, 0x0e, 0x03, 0x00, 0x2d, 0xe2, 0x00, 0x02, 0x0e,
- 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x1c, 0xe0, 0xe0, 0xf0, 0x00, 0xe0, 0xe0, 0xf0, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x4c, 0x54, 0x68, 0x78, 0x8c, 0xa0, 0xb9,