ath10k: add qca4019 hw params
authorRaja Mani <rmani@codeaurora.org>
Fri, 29 Jan 2016 11:05:11 +0000 (16:35 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 2 Feb 2016 12:09:27 +0000 (14:09 +0200)
Add a new entry in hw_params_list for qca4019 with list of
it's own details.

Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/hw.h
drivers/net/wireless/ath/ath10k/targaddrs.h

index 1f4a2788193665760ff6dd1a8c3479bcd1712090..79043872e7aca6d26e59a94102fbf35dd4b544bb 100644 (file)
@@ -201,6 +201,26 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = {
                        .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ,
                },
        },
+       {
+               .id = QCA4019_HW_1_0_DEV_VERSION,
+               .dev_id = 0,
+               .name = "qca4019 hw1.0",
+               .patch_load_addr = QCA4019_HW_1_0_PATCH_LOAD_ADDR,
+               .uart_pin = 7,
+               .otp_exe_param = 0x0010000,
+               .continuous_frag_desc = true,
+               .channel_counters_freq_hz = 125000,
+               .max_probe_resp_desc_thres = 24,
+               .hw_4addr_pad = ATH10K_HW_4ADDR_PAD_BEFORE,
+               .fw = {
+                       .dir = QCA4019_HW_1_0_FW_DIR,
+                       .fw = QCA4019_HW_1_0_FW_FILE,
+                       .otp = QCA4019_HW_1_0_OTP_FILE,
+                       .board = QCA4019_HW_1_0_BOARD_DATA_FILE,
+                       .board_size = QCA4019_BOARD_DATA_SZ,
+                       .board_ext_size = QCA4019_BOARD_EXT_DATA_SZ,
+               },
+       },
 };
 
 static const char *const ath10k_core_fw_feature_str[] = {
index 4217bdbe9f017f7b337bc20100f5e26d63ffa50e..291ca1f798e3f06b81e3945d6d6b1a56940a05cf 100644 (file)
@@ -106,6 +106,14 @@ enum qca9377_chip_id_rev {
 #define QCA9377_HW_1_0_BOARD_DATA_FILE "board.bin"
 #define QCA9377_HW_1_0_PATCH_LOAD_ADDR 0x1234
 
+/* QCA4019 1.0 definitions */
+#define QCA4019_HW_1_0_DEV_VERSION     0x01000000
+#define QCA4019_HW_1_0_FW_DIR          ATH10K_FW_DIR "/QCA4019/hw1.0"
+#define QCA4019_HW_1_0_FW_FILE         "firmware.bin"
+#define QCA4019_HW_1_0_OTP_FILE        "otp.bin"
+#define QCA4019_HW_1_0_BOARD_DATA_FILE "board.bin"
+#define QCA4019_HW_1_0_PATCH_LOAD_ADDR  0x1234
+
 #define ATH10K_FW_API2_FILE            "firmware-2.bin"
 #define ATH10K_FW_API3_FILE            "firmware-3.bin"
 
index 05a421bc322ae03a3adffaac03c732b10fadca00..361f143b019c1a1c1c0c7c53cb7d442bd5dce772 100644 (file)
@@ -456,4 +456,7 @@ Fw Mode/SubMode Mask
 #define QCA99X0_BOARD_DATA_SZ    12288
 #define QCA99X0_BOARD_EXT_DATA_SZ 0
 
+#define QCA4019_BOARD_DATA_SZ    12064
+#define QCA4019_BOARD_EXT_DATA_SZ 0
+
 #endif /* __TARGADDRS_H__ */