From patchwork Sun Dec 31 17:29:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10138295 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 ACE4060362 for ; Sun, 31 Dec 2017 17:33:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9531D2886B for ; Sun, 31 Dec 2017 17:33:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A5452887A; Sun, 31 Dec 2017 17:33:42 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham 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 14BBA2886B for ; Sun, 31 Dec 2017 17:33:42 +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=WI6fnMXXyeeoRKVWi9KUch4FflkXeVZhFcOdEG2pFAA=; b=egefYqOJ7U1Sj842EjEdx/0Dh5 oOgfTu3YUMzg6BWozGv8LM2gfEWjHiSNF6ACg7FNmHVmyMBTNLLJ2cBkhwBQ7OAYMHRapzejHH7Qj 4N2xabQyobWkNwOpF5LD9zcbwa8G88Y0Gwy33TsSsUmrv3G4o5zHbcrJxP4sv8uy6U9+JS7VL5b00 ToPkJd271ENaYX19tygzWgG9pCbJsnLWvBiPdKmY/5uzyax378cgvi/bjvLl5x/PXknxuy+zxgBFU p2khLR2bGRAemqA7bsWga4nPc2CrUiDpVbypaHxoCu7ARE6JLM5bcvCbbgu1S2SZkflhm/RsDRd/a EPvVWyjQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eVhUM-0007Jb-8b; Sun, 31 Dec 2017 17:33:34 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eVhSq-00063Q-HB for ath10k@lists.infradead.org; Sun, 31 Dec 2017 17:32:11 +0000 Received: by mail-lf0-x243.google.com with SMTP id m20so39145496lfi.6 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=6bplcToDAWqAPBRvWgOGK6PUwEZRH2EdCp7HfnL4Kl0=; b=tcDcXCXsX5gwRpT8AWJNj1f+NubC90bXlQ0UotFy0F58054238Nwb/WhYsogiXRGwK VSQVmqzpAAGKrCUnIeQ9WhQK1xQD9BY4N9kywqeFcfuTplPtYOxepO8F31xaLpuE/Owm 9f83ih+fFvTEO7Yt7wSwreFEj3KXUBsNwh7k5zudsl7/DWsA+cXAFGIoeBD2ShcaH1wC ptGymr1BEKhmnfPNdn+h+wZGOghcax7pWkk80lpFeUewmJFph932gJewYgHHHueDvPpd B6ndW2zwhs5RvIhI1Y49jSygJrstC3Z/+VyGq0AqExYqdMSKKauVvx5DR85/3Q82RwXB o+sw== 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=6bplcToDAWqAPBRvWgOGK6PUwEZRH2EdCp7HfnL4Kl0=; b=PfbkmWiE3XJVlWvRFfFu1QY15d3IffuejvUDsMq22kyfrldDjI2JxTH4M6UvjT/BkO GK7xtIgDFxdtL+Lri4jFiHL5Xv2Ng2G+a+rs69uWPaDIDu5vKQkNZu0sOVIouvPChybk UeFPJdUFzZR1v4rSRNmrZ/3R5qst3wsIAbKfk1ySewzPqPCVXXSg9MFeGqIpPWF5KHUW 8ysCtlJK15Nn8foZSRhY/5otaruSUw++WhYu/0Ek+ClbLqArF8ap4oCIiyWqAmGgwndw JWK8kD9zvPwzxB3lcFisbM9o9CL/9cKpG1Z8enz/9sbIogI4LhhbrziksDuZJTaKuJdY 6Cvw== X-Gm-Message-State: AKGB3mKWplTsktlhn0xUkruAgCSr6ufYg/wFTOv7yqU1vaUMW5PnmgYD FYsuDFG19SV/LFM7VxvSD+Nn6Q== X-Google-Smtp-Source: ACJfBoulB+ZiqqibVgiBW9DvUKFW8K4BO/c0KaTZZ0b/BuwQCujmPIEqq3+PK09jVLeEU1Bmd9UjTw== X-Received: by 10.25.219.78 with SMTP id s75mr14013797lfg.141.1514741508918; Sun, 31 Dec 2017 09:31:48 -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:48 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC v4 17/18] ath10k: add QCA9377 usb hw_param item Date: Sun, 31 Dec 2017 18:29:24 +0100 Message-Id: <20171231172925.24014-18-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171231_093201_413575_B667B79E X-CRM114-Status: UNSURE ( 7.83 ) X-CRM114-Notice: Please train this message. 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: Erik Stromdahl MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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 | 24 ++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/hw.h | 1 + 2 files changed, 25 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index d42f6a1e5bfc..bc22d8c46252 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -414,6 +414,30 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .target_64bit = false, .rx_ring_fill_level = HTT_RX_RING_FILL_LEVEL, }, + { + .id = QCA9377_HW_1_1_DEV_VERSION, + .dev_id = QCA9377_1_0_DEVICE_ID, + .bus = ATH10K_BUS_USB, + .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, + .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 98f9f3ccbf96..38cecbe4ddd9 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 { /* 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 */