From patchwork Mon Jun 12 15:03:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9781313 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 7C6BF60212 for ; Mon, 12 Jun 2017 15:03:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 693D026E51 for ; Mon, 12 Jun 2017 15:03:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E23B28633; Mon, 12 Jun 2017 15:03:33 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 1517D26E51 for ; Mon, 12 Jun 2017 15:03:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752541AbdFLPDa (ORCPT ); Mon, 12 Jun 2017 11:03:30 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33220 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752500AbdFLPD2 (ORCPT ); Mon, 12 Jun 2017 11:03:28 -0400 Received: by mail-lf0-f67.google.com with SMTP id u62so9692293lfg.0 for ; Mon, 12 Jun 2017 08:03:27 -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=oQSXoFNazPrZJ9PHOEwhXuiEParuZWhIde17IWoVwU8=; b=h6pzxsHg5GuFRWMoiSkO0dM+qwvJDDzLfh8Kh5p4jcVoXDrk/31qVEp3BtGnuXnm6Z WwMuVL83dyKwrzUAC+/kpuspBKizpF4UBXwwXwQ7eB7d/F1wdSYdOzgrAcQ7LqudfxiF 3ro3IJv1ipG+/lIZTygWG4prPbUbRicpNHoubMQZuzEgdX1EkPIHvCItipqNIu90KLd5 t1BvUx3vs5Et4jFDZ7b7kxEySKb9jTP0MUPOjcrjwj6kZ61kXwQmXgzIj4Ed6JFipjDo 7PDJh6ibZqVrk0SBCYkEh1IKPF+xII/7q37pxH7YNb5thsHfnVih/Ewym9aQJ3tuaomu +pKg== 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=oQSXoFNazPrZJ9PHOEwhXuiEParuZWhIde17IWoVwU8=; b=Pm4xDw7rCkngjOBDka9FxCVK8gLInQdnnpK7f/DM1FP53wYqHPltCpU7l+iiJmC+eF Z5zVAKGlOs+1CIlDrQ2QJQGTTsdTKVRue0UuHeu10L3M8t2Ky4JFPH5i6FcAn6K6QkJv dH83x5JpKoRzHEtbqTtI3NFtzpNqbMT9jwKFT1+i+jwZ+dd+WIIl5qX5R5s8zQE3DhcZ CN+Er31e1rPyOHkQRF7FfSNRfhc5G+I9KI0OFzSavsOjOMTUkEvu0iEb2bH62J3MBQ3z MwuT8D4P/GZvTYO7UehKCfbYG1+k5NrjUw1+WUK2ZXGiHseRmb24uZdoABOPphl2eCrH JSLA== X-Gm-Message-State: AODbwcC1GlGk6sl520rO9lHq7CsEM22PUijpwlOqSFrn3XHurPgoWaX3 VqncNh5lcp/3DstQ X-Received: by 10.25.19.25 with SMTP id j25mr13998664lfi.134.1497279806783; Mon, 12 Jun 2017 08:03:26 -0700 (PDT) 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 n71sm2709253lje.14.2017.06.12.08.03.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jun 2017 08:03:26 -0700 (PDT) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v2 08/10] ath10k: add QCA9377 usb hw_param item Date: Mon, 12 Jun 2017 17:03:09 +0200 Message-Id: <1497279791-9598-9-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497279791-9598-1-git-send-email-erik.stromdahl@gmail.com> References: <1497279791-9598-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 c20b97b..dc8ea5e 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -299,6 +299,29 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .spectral_bin_discard = 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, .name = "qca4019 hw1.0", diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index f733e73..cc3d0eb 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 */