From patchwork Wed Nov 29 09:51:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Pillai X-Patchwork-Id: 10081721 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 36D896020B for ; Wed, 29 Nov 2017 09:52:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12F292973D for ; Wed, 29 Nov 2017 09:52:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 076BE29761; Wed, 29 Nov 2017 09:52:47 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7EF2B2973D for ; Wed, 29 Nov 2017 09:52:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=LiJDHhMq+7CUjL8R7rMXFXrJiy/YK/ydUOOmd6FNOxo=; b=HTHFHBtbZESZOEsY8lbunUd+MI C/JQ6tQj9GCQpJACD0uYETKxvuTA1BQfCAVhdDpmP9F/Gl/epC0QnHQHBiu4mXZccf7Kzge1qfw3O 1nxSDCjt1gYf2PM57Y+H5kRRU1YhGXEEKmB43cMltsri92wkIpz3M+NZWRchq5rZuK4YsX52VOaxu TRR8pbRySUOPdCT2L9TsEBAlfGjQymd6uuDAK4Ap3NzWiU2rvoCWI/nyw0xbVjwafDH6R5KdmJXMQ BK3rfZ9twei+z44+WszzcfbqpGkmxxBHi2uOpQd6Fgud9Ufe4/gImTP4zRXguC9mGSfqZFhUz1Ywq uS8Td4uA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eJz2m-0000Bh-KC; Wed, 29 Nov 2017 09:52:40 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJz2k-0000BL-NY for ath10k@bombadil.infradead.org; Wed, 29 Nov 2017 09:52:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1Qxh0AiTXN1s8qWPwaH7G+gyo5N9PwsomDR+PDzYqKQ=; b=H02WfnZvnlQ7GGBBhsD+d9uOU etnVlVqJhzTMSxCNqZ2zh3oBnANppOhSm6uDPdytKSvyRvQq7oupH64r2wHvwZQOZDzwceldlatbq gQCtWQxidZ3ANtUOjMYIlcWFGqixU6WWUntXHCr/vsRgcOVO7mHCKzhBWoO7G5ERT29dlCn9MzSXI KClPYhmq1jJGBgLisb0ls3wtmu+XgSxjySvSM6+0KLhkFQp23cYAU2KgAIu3GvAWiCn4iGe9msNxm aOhTVJVJe3JkMwh8sgp2GRxcKOU/CHTXEbClZN/IF9e/EMZMxfgQMutGxih7MPYETmlhdQwPewsZc hwtJD9CTg==; Received: from sabertooth01.qualcomm.com ([65.197.215.72]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJz2h-0006o7-O3 for ath10k@lists.infradead.org; Wed, 29 Nov 2017 09:52:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1511949155; x=1543485155; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=DstztERF42I1RZetVdXsgOvygKDhV3HKiS/TjAwS4OU=; b=h4EQmY/K/Jrf/TKp9Tbu+pOP7TCZngXHdgI4BkrI5Xq9U9FSaGnCmk5P O7KQq8GRGLoG3XrLhJXRY8jCx8X5VFP1ieBx6OkC+oIfj4fn2WNvhuIfO Y4DWehgtWULEPpXmNj3WpEd+FPD9S3qzs3t5dDYYrKJMgQd4pzqGFX/tv Q=; X-IronPort-AV: E=Sophos;i="5.44,472,1505804400"; d="scan'208";a="117182332" Received: from unknown (HELO Ironmsg04-L.qualcomm.com) ([10.53.140.111]) by sabertooth01.qualcomm.com with ESMTP; 29 Nov 2017 01:52:17 -0800 X-IronPort-AV: E=McAfee;i="5900,7806,8729"; a="1472793854" X-MGA-submission: =?us-ascii?q?MDEKBJhBbhIE/OEmJdFijuJbNLSeovwvAP9ayr?= =?us-ascii?q?88hhEJLgASYFmrYqSDVZCkWmfAsQz9WHZwLs9eb5277g3p/jiViZlwhh?= =?us-ascii?q?8qfQf/GVdH8/9vyD6y78y/UD8Gdv1XZCu1r5Iv0oV92qtNpSQQh08NLt?= =?us-ascii?q?Fz?= Received: from pillair-linux.qualcomm.com ([10.204.116.193]) by Ironmsg04-L.qualcomm.com with ESMTP; 29 Nov 2017 01:52:14 -0800 Received: by pillair-linux.qualcomm.com (Postfix, from userid 452944) id 883BC23DF; Wed, 29 Nov 2017 15:22:12 +0530 (IST) From: Rakesh Pillai To: ath10k@lists.infradead.org Subject: [PATCH 4/4] ath10k: WMI: add hw params entry for wcn3990 Date: Wed, 29 Nov 2017 15:21:37 +0530 Message-Id: <1511949097-524-4-git-send-email-pillair@qti.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1511949097-524-1-git-send-email-pillair@qti.qualcomm.com> References: <1511949097-524-1-git-send-email-pillair@qti.qualcomm.com> X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Govind Singh , linux-wireless@vger.kernel.org, Rakesh Pillai MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add hw params entry for wcn3990 and populate various target specific values for wcn3990. Signed-off-by: Rakesh Pillai Signed-off-by: Govind Singh --- drivers/net/wireless/ath/ath10k/core.c | 18 ++++++++++++++++++ drivers/net/wireless/ath/ath10k/hw.c | 2 ++ drivers/net/wireless/ath/ath10k/hw.h | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index be18913..6abffb5 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -405,6 +405,24 @@ .ast_skid_limit = 0x10, .num_wds_entries = 0x20, }, + { + .id = WCN3990_HW_1_0_DEV_VERSION, + .dev_id = 0, + .name = "wcn3990 hw1.0", + .continuous_frag_desc = true, + .tx_chain_mask = 0x7, + .rx_chain_mask = 0x7, + .max_spatial_stream = 4, + .fw = { + .dir = WCN3990_HW_1_0_FW_DIR, + }, + .sw_decrypt_mcast_mgmt = true, + .hw_ops = &wcn3990_ops, + .decap_align_bytes = 1, + .num_peers = TARGET_HL_10_TLV_NUM_PEERS, + .ast_skid_limit = TARGET_HL_10_TLV_AST_SKID_LIMIT, + .num_wds_entries = TARGET_HL_10_TLV_NUM_WDS_ENTRIES, + }, }; static const char *const ath10k_core_fw_feature_str[] = { diff --git a/drivers/net/wireless/ath/ath10k/hw.c b/drivers/net/wireless/ath/ath10k/hw.c index 88955bb..76b9b41 100644 --- a/drivers/net/wireless/ath/ath10k/hw.c +++ b/drivers/net/wireless/ath/ath10k/hw.c @@ -931,3 +931,5 @@ static int ath10k_qca99x0_rx_desc_get_l3_pad_bytes(struct htt_rx_desc *rxd) .set_coverage_class = ath10k_hw_qca988x_set_coverage_class, .enable_pll_clk = ath10k_hw_qca6174_enable_pll_clock, }; + +const struct ath10k_hw_ops wcn3990_ops = {0}; diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index fedb6c7..90ad39b 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -128,6 +128,10 @@ enum qca9377_chip_id_rev { #define QCA4019_HW_1_0_BOARD_DATA_FILE "board.bin" #define QCA4019_HW_1_0_PATCH_LOAD_ADDR 0x1234 +/* WCN3990 1.0 definitions */ +#define WCN3990_HW_1_0_DEV_VERSION ATH10K_HW_WCN3990 +#define WCN3990_HW_1_0_FW_DIR ATH10K_FW_DIR "/WCN3990/hw3.0" + #define ATH10K_FW_FILE_BASE "firmware" #define ATH10K_FW_API_MAX 6 #define ATH10K_FW_API_MIN 2 @@ -571,6 +575,7 @@ struct ath10k_hw_ops { extern const struct ath10k_hw_ops qca988x_ops; extern const struct ath10k_hw_ops qca99x0_ops; extern const struct ath10k_hw_ops qca6174_ops; +extern const struct ath10k_hw_ops wcn3990_ops; extern const struct ath10k_hw_clk_params qca6174_clk[]; @@ -667,6 +672,11 @@ struct ath10k_hw_ops { #define TARGET_TLV_NUM_MSDU_DESC (1024 + 32) #define TARGET_TLV_NUM_WOW_PATTERNS 22 +/* Target specific defines for WMI-HL-1.0 firmware */ +#define TARGET_HL_10_TLV_NUM_PEERS 14 +#define TARGET_HL_10_TLV_AST_SKID_LIMIT 6 +#define TARGET_HL_10_TLV_NUM_WDS_ENTRIES 2 + /* Diagnostic Window */ #define CE_DIAG_PIPE 7