From patchwork Tue Feb 21 16:15:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9585057 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 77ED06042F for ; Tue, 21 Feb 2017 16:17:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6678F200F5 for ; Tue, 21 Feb 2017 16:17:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B76B27BFF; Tue, 21 Feb 2017 16:17:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DF6626E54 for ; Tue, 21 Feb 2017 16:17:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753813AbdBUQQ7 (ORCPT ); Tue, 21 Feb 2017 11:16:59 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35691 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753764AbdBUQQd (ORCPT ); Tue, 21 Feb 2017 11:16:33 -0500 Received: by mail-lf0-f65.google.com with SMTP id z127so9537587lfa.2 for ; Tue, 21 Feb 2017 08:16:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=o1R5OS5vVhERzQDYac/PibFv7kmDQss6aHrFoAWMpdY=; b=BspaQahAJxdcBAPF2yI+aDfkOjy4zxIPIGODmO+SqvwtITqE8pePcHnv2RA0guY9yt s1H0AmFkbnrzASUoBriHtdRXWYXiwPp+Q8Y8NuFbUcWagoGIFqztbLqw1htyLaoJZ/H0 X99oypYfqseHXShV/VdkOmbQs0oNdsYaVD8whvl2Lxm/D8Jcx+eGz5VjHy/jxHe3zX5x G1GNH2EYDBlICu4o/cmoKJ2hrgquXmRBsQT3FTbA1vV8h4L2ul5lFniLpDgGNpJCl1K1 67lGW65I3n+zUiiSrWyL/4VuM9X54OP/2xjzjIITbxRs8T8QVVraoEZUVD2wX/tGyyS4 lxEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o1R5OS5vVhERzQDYac/PibFv7kmDQss6aHrFoAWMpdY=; b=F39LVjA3pTxRpzYIq4LhJmzMUyUjlf7x5GNvUCu5M6IbtOSj/R/0C4dspxuVOkgE1f xJS9V3FL4+PkYoDNB2wbtaeePi+h4vXcqGbR/B1vOFnKbOIzRO0ecECEff/q0oD0mNW9 Tjkfp2jWp7LTXF3k7ZfQx7Dt2C6PsyZBGRa2vsxYj5UEwsIgOL5JUOa1H/SCkWrML1SF xyOpu/7wmIzMbkIlb7F3DGyAspq6c7uvyf9JEoDaVALaCx7wVsA9XDDF5CWfgPRZw7Yr Fnbho++vAO+CLj8fyQ9u5vH7TKP0LHH0a3OMqccpykZflntELmcxKlNjEqd8Btnn/npS wv9w== X-Gm-Message-State: AMke39lq44sQXP0fR6tJtT3md1Lyj/Lk/nMarlTgd0N5lcb8pRHCsr+K8GoHwCc5Cqc4Hg== X-Received: by 10.25.215.160 with SMTP id q32mr1030020lfi.57.1487693791809; Tue, 21 Feb 2017 08:16:31 -0800 (PST) Received: from erik-mate-1604.lan (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id t29sm6336069ljd.39.2017.02.21.08.16.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Feb 2017 08:16:31 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v4 19/21] ath10k: add QCA9377 usb hw_param item Date: Tue, 21 Feb 2017 17:15:39 +0100 Message-Id: <1487693741-10042-20-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487693741-10042-1-git-send-email-erik.stromdahl@gmail.com> References: <1487693741-10042-1-git-send-email-erik.stromdahl@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hardware parameters for QCA9377 usb devices. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/core.c | 23 +++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/hw.h | 1 + 2 files changed, 24 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 2e2d3d3..96b278b 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -288,6 +288,29 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .decap_align_bytes = 4, }, { + .id = QCA9377_HW_1_1_DEV_VERSION, + .dev_id = QCA9377_1_0_DEVICE_ID, + .name = "qca9377 hw1.1 usb", + .patch_load_addr = QCA9377_HW_1_0_PATCH_LOAD_ADDR, + .uart_pin = 6, + .otp_exe_param = 0, + .channel_counters_freq_hz = 88000, + .max_probe_resp_desc_thres = 0, + .cal_data_len = 8124, + .fw = { + .dir = QCA9377_HW_1_0_FW_DIR, + .board = QCA9377_HW_1_0_BOARD_DATA_FILE_USB, + .board_size = QCA9377_BOARD_DATA_SZ, + .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ, + }, + .hw_ops = &qca988x_ops, + .decap_align_bytes = 4, + .max_num_peers = TARGET_QCA9377_HL_NUM_PEERS, + .is_high_latency = true, + .bus = ATH10K_BUS_USB, + .start_once = true, + }, + { .id = QCA4019_HW_1_0_DEV_VERSION, .dev_id = 0, .name = "qca4019 hw1.0", diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index cf88aba..5408ebc 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -127,6 +127,7 @@ enum qca9377_chip_id_rev { /* QCA9377 1.0 definitions */ #define QCA9377_HW_1_0_FW_DIR ATH10K_FW_DIR "/QCA9377/hw1.0" #define QCA9377_HW_1_0_BOARD_DATA_FILE "board.bin" +#define QCA9377_HW_1_0_BOARD_DATA_FILE_USB "board-usb.bin" #define QCA9377_HW_1_0_PATCH_LOAD_ADDR 0x1234 /* QCA4019 1.0 definitions */