From patchwork Wed Nov 4 11:53:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 7549191 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1D584BEEA4 for ; Wed, 4 Nov 2015 11:54:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D18A20456 for ; Wed, 4 Nov 2015 11:54:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 26F3D206AF for ; Wed, 4 Nov 2015 11:53:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755639AbbKDLxz (ORCPT ); Wed, 4 Nov 2015 06:53:55 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:34681 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754515AbbKDLxw (ORCPT ); Wed, 4 Nov 2015 06:53:52 -0500 Received: by wikq8 with SMTP id q8so90576322wik.1 for ; Wed, 04 Nov 2015 03:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Yxcq01n5qc2UVxojKA230+VMnshV+BWniXOnLF0T+v0=; b=KmHE609IpyOycZh0itSnmb7Bv0b8lFSUuoTTS/o9VuiCawgfTBn+mEREsbwwfqp9SR Br0UL75NHVBVIsD2CnnpBMNcYG10HaWC6fwJOEgKi5JWuKX04zpg+cxEnai3gbAXCxdj WOc3DuSOuHkS3ypYpT1VFQQTGMIp8tFGzowQE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Yxcq01n5qc2UVxojKA230+VMnshV+BWniXOnLF0T+v0=; b=Sl8uDGDLzZpYDhPVbB0W0TktBHRr90xe95J2KwPc4MxSGLATy4t7L6ePVafIC5dUFO QQlMtwgvAWZeMNy1nkCKJzZ7vc2UPu1xX3TtE+R2VB4wN9zqwqC80DlH3hQJ6j8naV7k JTfWtHkSkkyqMHTdQnmBeMUMIkTJ9xgqiUyD+uBiBnjAk+W+RFLNCli1BsfTWaBLWMHc hhu+i0IO90KtAcwRq3kwbFz2mQ4Y/R+uwPk7jned7AO6hwBDlm3l/yoIJcQJfVybu3IV FKiX9dVl4YAd+7twjG9NXlAa4gWBwDCGhcuQ4ynOJOtRPqsnYCNwUI195SBBj8r0ANrr ZWQA== X-Gm-Message-State: ALoCoQmhJ32TgfWK4IypGdSbT18X9FZ8QO6r3FXlgsFA/bgM8RQAd0WHJzGnCz69uFTAhN4/6gPOTyltAsFWM/B21dUHubCaxODix3jbaCeExazNP2Bc8VA/thaYM51Y9GVfzMsfWr0l X-Received: by 10.194.76.9 with SMTP id g9mr1369117wjw.47.1446638030977; Wed, 04 Nov 2015 03:53:50 -0800 (PST) Received: from uw000975.homerouter.cpe ([91.198.246.10]) by smtp.gmail.com with ESMTPSA id q1sm1197869wjy.31.2015.11.04.03.53.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Nov 2015 03:53:50 -0800 (PST) From: Bartosz Markowski To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Bartosz Markowski Subject: [PATCH 4/4] ath10k: add QCA9377 hw1.0 support Date: Wed, 4 Nov 2015 12:53:35 +0100 Message-Id: <1446638015-23310-5-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1446638015-23310-1-git-send-email-bartosz.markowski@tieto.com> References: <1446638015-23310-1-git-send-email-bartosz.markowski@tieto.com> X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add new BMI target version and chip id revision. Register it on supported chips list. Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/core.c | 18 ++++++++++++++++++ drivers/net/wireless/ath/ath10k/hw.h | 3 +++ drivers/net/wireless/ath/ath10k/pci.c | 2 ++ 3 files changed, 23 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index b80b8f372354..f41329617ae4 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -160,6 +160,24 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .board_ext_size = QCA99X0_BOARD_EXT_DATA_SZ, }, }, + { + .id = QCA9377_HW_1_0_DEV_VERSION, + .dev_id = QCA9377_1_0_DEVICE_ID, + .name = "qca9377 hw1.0", + .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, + .fw = { + .dir = QCA9377_HW_1_0_FW_DIR, + .fw = QCA9377_HW_1_0_FW_FILE, + .otp = QCA9377_HW_1_0_OTP_FILE, + .board = QCA9377_HW_1_0_BOARD_DATA_FILE, + .board_size = QCA9377_BOARD_DATA_SZ, + .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ, + }, + }, { .id = QCA9377_HW_1_1_DEV_VERSION, .dev_id = QCA9377_1_0_DEVICE_ID, diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index 13aacbdc98e6..713c2bcea178 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -48,6 +48,8 @@ #define QCA6174_HW_3_0_VERSION 0x05020000 #define QCA6174_HW_3_2_VERSION 0x05030000 +/* QCA9377 target BMI version signatures */ +#define QCA9377_HW_1_0_DEV_VERSION 0x05020000 #define QCA9377_HW_1_1_DEV_VERSION 0x05020001 enum qca6174_pci_rev { @@ -69,6 +71,7 @@ enum qca6174_chip_id_rev { }; enum qca9377_chip_id_rev { + QCA9377_HW_1_0_CHIP_ID_REV = 0x0, QCA9377_HW_1_1_CHIP_ID_REV = 0x1, }; diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 14dce2a1b39f..679a3ebb34af 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -86,6 +86,8 @@ static const struct ath10k_pci_supp_chip ath10k_pci_supp_chips[] = { { QCA6174_2_1_DEVICE_ID, QCA6174_HW_3_2_CHIP_ID_REV }, { QCA99X0_2_0_DEVICE_ID, QCA99X0_HW_2_0_CHIP_ID_REV }, + + { QCA9377_1_0_DEVICE_ID, QCA9377_HW_1_0_CHIP_ID_REV }, { QCA9377_1_0_DEVICE_ID, QCA9377_HW_1_1_CHIP_ID_REV }, };