summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wl18xx/reg.h
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2012-05-10 13:13:38 +0400
committerLuciano Coelho <coelho@ti.com>2012-06-05 16:55:53 +0400
commitd5b592764f5b21979f6260869bd96e69aa0536bb (patch)
treecc2814af3b3bfa769b4fea0232e9bbfde7e332d2 /drivers/net/wireless/ti/wl18xx/reg.h
parenta9c130d522ddef8673728fa9738f4f3f8e61f9b9 (diff)
downloadlinux-d5b592764f5b21979f6260869bd96e69aa0536bb.tar.xz
wl18xx: translate and write the board type to SCR_PAD2
The firmware uses the SCR_PAD2 register to read the board type passed from the driver. The values don't match the ones used in the mac and phy configuration, so we need to map them before writing. This commit adds a translation table that is used when writing the board type to SCR_PAD2. Signed-off-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/reg.h')
-rw-r--r--drivers/net/wireless/ti/wl18xx/reg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/reg.h b/drivers/net/wireless/ti/wl18xx/reg.h
index 53987997f78f..e0170aeba05c 100644
--- a/drivers/net/wireless/ti/wl18xx/reg.h
+++ b/drivers/net/wireless/ti/wl18xx/reg.h
@@ -154,6 +154,15 @@ enum {
BOARD_TYPE_FPGA_18XX = 0,
BOARD_TYPE_HDK_18XX = 1,
BOARD_TYPE_DVP_EVB_18XX = 2,
+
+ NUM_BOARD_TYPES,
+};
+
+/* board type values used by the firmware in the SCR_PAD2 register */
+enum {
+ SCR_PAD2_BOARD_TYPE_FPGA = 0xB1,
+ SCR_PAD2_BOARD_TYPE_HDK = 0xB2,
+ SCR_PAD2_BOARD_TYPE_DVP_EVB = 0xB3,
};
struct wl18xx_mac_and_phy_params {