From patchwork Sun Sep 17 19:40:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9955023 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 706816028A for ; Sun, 17 Sep 2017 19:40:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6436928AB5 for ; Sun, 17 Sep 2017 19:40:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5805528A8D; Sun, 17 Sep 2017 19:40:48 +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 EB4E028A8D for ; Sun, 17 Sep 2017 19:40:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751807AbdIQTkr (ORCPT ); Sun, 17 Sep 2017 15:40:47 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35874 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbdIQTkc (ORCPT ); Sun, 17 Sep 2017 15:40:32 -0400 Received: by mail-lf0-f65.google.com with SMTP id l196so3535726lfl.3 for ; Sun, 17 Sep 2017 12:40:31 -0700 (PDT) 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=coQwDmIAXuisyI7pzsDTw1OTTPLGcJRqaUuHoECewwc=; b=VYKo6qVA4RoWK+opMV5ixlN0oB26m2DmK9h6J13Lwl/frCkeJZqwU61avhUBb7/xRr w7p5A7J2IiVsq2rSg2/DPjn+aHfwu+KMpeudLTX/UBSl2cs/WyF4v2OyhHwtsmkL1wf9 0/bHc8a/kO/335KFB/1cENCjoTJB0YHvlqLx66KorZMqXhMqRd9FoK41HtEYpbdHKUy9 /70liaq/SJk4lL/DEAcQj9blccZzW1A35sJuN7Q4OpzQOxlIn+cF9Rm+d8BSXFBfFUe8 N+z/Rr7r1x3pwJaQJMkPcSDeS1G5yaP/fL6+hy+7ZZmaNKtJyOcv04NrT3Ou4Is5yT6F f/BA== 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=coQwDmIAXuisyI7pzsDTw1OTTPLGcJRqaUuHoECewwc=; b=toPNOYF00HnC2oF+vbhWYHozWKQzqC2lEm8IE4fHPa2+kFamRGhfaWWpsLqc1BzXRP giLlUdC0dn5Y4EGZnWQD51+Ef3wi37TCgQGMSbLs4bm+/Q/CHjnqI3W7LFIY581Qc3Wx 9yo9PPRiZC+odt9oLu6s9r3y6fLT3/c4N2P5UAooJYavPUd7AeYInak6eSnfMdinpkS3 1C9wOJd/IkUzSwuGsQOfQ1Z3OUOas2zJzNzca0SheKWH/XV+H3DNuOdjzrQlffv1S3Io zWpe8kx7MSzWeGSBKYf1EwAVwUSPZ/AwfsO9EBG0L5v0R70+nojEKPioN9VhAoX5XvlC uj8Q== X-Gm-Message-State: AHPjjUgIGdp/dtxmjTswBIedEMmVK4EuyJCuFujn4sG6bcdjaI6Qr3mR w4JZ7SGDSkthFa2Hsjk= X-Google-Smtp-Source: AOwi7QCtiDFzEhNYf1kl9aofeWpzMTjjBinhYYok5nudKBN4bbhPDLQtxhpFpli7QDQTbq+VhJeLQQ== X-Received: by 10.46.87.87 with SMTP id r23mr4999853ljd.44.1505677230734; Sun, 17 Sep 2017 12:40:30 -0700 (PDT) Received: from erik-arch-i5-6600.lan (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id 1sm1452879ljo.13.2017.09.17.12.40.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Sep 2017 12:40:30 -0700 (PDT) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v3 08/11] ath10k: add QCA9377 usb hw_param item Date: Sun, 17 Sep 2017 21:40:10 +0200 Message-Id: <20170917194013.8658-9-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170917194013.8658-1-erik.stromdahl@gmail.com> References: <20170917194013.8658-1-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 1880570989ae..b6893254ef53 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -328,6 +328,29 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .vht160_mcs_rx_highest = 0, .vht160_mcs_tx_highest = 0, }, + { + .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, diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index fd0536077404..420851e26a09 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 */