From patchwork Sun Dec 31 17:29:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10138245 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 BDB8060362 for ; Sun, 31 Dec 2017 17:31:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5D412886B for ; Sun, 31 Dec 2017 17:31:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9ABDF2887A; Sun, 31 Dec 2017 17:31:56 +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 45D392886B for ; Sun, 31 Dec 2017 17:31:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751160AbdLaRby (ORCPT ); Sun, 31 Dec 2017 12:31:54 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:45774 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbdLaRbv (ORCPT ); Sun, 31 Dec 2017 12:31:51 -0500 Received: by mail-lf0-f65.google.com with SMTP id y71so1215342lfd.12 for ; Sun, 31 Dec 2017 09:31:50 -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=gDweQtaoSqOCYfHjRHDsQ8KNKM1Jbhll1X1LXUN+rRY=; b=HbvtkAoJxwnq+Vu37Zjd/yr01sFn7ZlvP9ae/Wa1Ph2VS1ZghEeV+gg71VYXY4bmao qz6s2S6FRd+X2d+I5BJh9aQ61Xvq8xeLtCJJdVjWPfx36mx2DbGJPidLo/KpjqdeUm16 5CpDz5x3zRBgMTzkoS0qgsYifSarsgcd4Txrxyfi+qA5Pi1lpqlxWRCo7QiQPII8w06s oDZoLjVQTNSQNKKvxaFOYwm5uCChu0/0ovv8x1/Zp3FVtM4hHivTjopAi484Q5igBe1D jpd4WoXnL80eM+KxpDGPE6bE4nP7CIEV1pVd9wVRcH5cSowWRVhptS1D2yYmvZolcfFP 8Qxw== 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=gDweQtaoSqOCYfHjRHDsQ8KNKM1Jbhll1X1LXUN+rRY=; b=Jm0bCX8JNFbwn7TaeSE22+UfJYdpQ4CD64Bm4ebHj5wWtx9ODCk0pHAMkn6tx/al2+ D1r8vGiGiLvXhMCbSGeOzWRwa60ay21CjqJ4XTbJqGJr9jSyy26CKZOOIdeUvDfsW3Qm HJpBCLTb8qx8BmfGNPgdCJ5U+W1YCYZydE0KHPRo090oLj9Q+QakonaN5WMAb1ZjeJ4E DARjhHy0AeVliZ3jALJ8Bp1Tu+1GvNg98WhuRU4cVV1wt+eeIQmEQYfuiTvkbtdEtWs/ HLqqgsvl8uIXLY9WTT/+CXDsyGMgDmLGnwx43mM4bAF9UJHLFEzLZU5X5qfna2c3TPNx 9A5w== X-Gm-Message-State: AKGB3mKVQtHNcM2xF89viLxYcXGsJyFr4iLtbg6iI/XQKoz89esOG8/L Wg/o2cLuVngUpWysqCiHNaM= X-Google-Smtp-Source: ACJfBosdv/CfwUkqVBsKiMYg86jCV4rcz+WeBOxG6UBbiBI7HXBFpLFKGEBwMfWtfM9sc3Tn8Igs2w== X-Received: by 10.25.32.209 with SMTP id g200mr7732623lfg.115.1514741509889; Sun, 31 Dec 2017 09:31:49 -0800 (PST) Received: from localhost.localdomain (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id o64sm5048449lfo.53.2017.12.31.09.31.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Dec 2017 09:31:49 -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 18/18] ath10k: add QCA9377 sdio hw_param item Date: Sun, 31 Dec 2017 18:29:25 +0100 Message-Id: <20171231172925.24014-19-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171231172925.24014-1-erik.stromdahl@gmail.com> References: <20171231172925.24014-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 sdio devices. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/core.c | 26 ++++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/hw.h | 1 + 2 files changed, 27 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index bc22d8c46252..038f58152a83 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -438,6 +438,32 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .ast_skid_limit = 0x10, .num_wds_entries = 0x20, }, + { + .id = QCA9377_HW_1_1_DEV_VERSION, + .dev_id = QCA9377_1_0_DEVICE_ID, + .bus = ATH10K_BUS_SDIO, + .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, + .start_once = true, + .num_peers = TARGET_QCA9377_HL_NUM_PEERS, + .ast_skid_limit = 0x10, + .num_wds_entries = 0x20, + }, { .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 38cecbe4ddd9..d610b9cff812 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -129,6 +129,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 */