From patchwork Tue Feb 21 16:15:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9585043 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 147326042F for ; Tue, 21 Feb 2017 16:17:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0353E200F5 for ; Tue, 21 Feb 2017 16:17:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBD1427BFF; Tue, 21 Feb 2017 16:17:02 +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 9F4CA200F5 for ; Tue, 21 Feb 2017 16:17:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753821AbdBUQRB (ORCPT ); Tue, 21 Feb 2017 11:17:01 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36108 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753768AbdBUQQe (ORCPT ); Tue, 21 Feb 2017 11:16:34 -0500 Received: by mail-lf0-f68.google.com with SMTP id 90so4027226lfr.3 for ; Tue, 21 Feb 2017 08:16:33 -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=si0+NX+4vbZiW99FnBz/U48nsijwRJx/MHvPbLIKeIc=; b=GhbCu0vhQZKJocvkbxnIF6o0FObPZD3vOQ3tBwxP78gLMXfQl0zHXY+BB7uwEUTTC0 9AVt4wR9Y5rN8OyEMAfTgw5y5WHu7vumM3VLozGSbW4LfTq6iRfjuJvJEJi2CNPL3QzD yDwBNvnBJ+MIr6W/9zdxgQRo/t/Aia0Brx3Mxb+nrdVp6NrpgN8OhS8UNgfsuw5bSWyw VqC3U/u86RnGTI+46mgJzCYPnTHXwS7vB14iOyLY/rPsquNUioHkkYJ/k8HEZc90d6Vl 0ddFxTsmI92ax2KNCv4c9ANJkPAwZsxZQgIQm5+PGmVM6+4IBw/qWNFEpEEGvoCWO4S5 xZfQ== 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=si0+NX+4vbZiW99FnBz/U48nsijwRJx/MHvPbLIKeIc=; b=mkv1MuV4rTrEk3k1tFG5rHg2NNVaT1OCN0YjQkeyRvQNCp2dDQ4MX+wCReyZN/Hdie 5/kmI9stjTvuU+EjUiopWCSjXZ4q3c0auWUftDWx2HBH3DSDCEuyqzif0oe8CZrj7Oke w5i214FNLF6zaRaBusuUHCm6/SRpfMwEGrNz7McxwlhUeyFgRByZhFAI2+enXNomkL+b 3B/+0OxW+MuI1u56nrOHZ15+5r1VA/kaWQt3vLjumQ2rrbQHJmG6JCpcW+yWmM+XEe1Z begpbnd11QITcSSiHRtZrYIe8AhRm+uvdkPD6prG11P9jqiexecCqGp3WuB9UFVxPfYU aAcA== X-Gm-Message-State: AMke39nql4xZygkE1ne1LqMJobFpnL3HfgB0XaVNG3PbE4OxINdOtYTY39QjdEr3gzdY0w== X-Received: by 10.25.15.210 with SMTP id 79mr2595980lfp.53.1487693792689; Tue, 21 Feb 2017 08:16:32 -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.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Feb 2017 08:16:32 -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 20/21] ath10k: add QCA9377 sdio hw_param item Date: Tue, 21 Feb 2017 17:15:40 +0100 Message-Id: <1487693741-10042-21-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 sdio devices. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/core.c | 25 +++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/hw.h | 1 + 2 files changed, 26 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 96b278b..a884e34 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -311,6 +311,31 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .start_once = true, }, { + .id = QCA9377_HW_1_1_DEV_VERSION, + .dev_id = QCA9377_1_0_DEVICE_ID, + .name = "qca9377 hw1.1 sdio", + .patch_load_addr = QCA9377_HW_1_0_PATCH_LOAD_ADDR, + .uart_pin = 19, + .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_SDIO, + .board_size = QCA9377_BOARD_DATA_SZ, + .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ, + }, + .hw_ops = &qca6174_ops, + .hw_clk = qca6174_clk, + .target_cpu_freq = 176000000, + .decap_align_bytes = 4, + .max_num_peers = TARGET_QCA9377_HL_NUM_PEERS, + .is_high_latency = true, + .bus = ATH10K_BUS_SDIO, + .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 5408ebc..d76b206 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -128,6 +128,7 @@ enum qca9377_chip_id_rev { #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_BOARD_DATA_FILE_SDIO "board-sdio.bin" #define QCA9377_HW_1_0_PATCH_LOAD_ADDR 0x1234 /* QCA4019 1.0 definitions */