From patchwork Mon Jun 12 15:03:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9781347 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 A1F5460212 for ; Mon, 12 Jun 2017 15:04:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DE1F2766D for ; Mon, 12 Jun 2017 15:04:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82B3E28635; Mon, 12 Jun 2017 15:04:21 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 2FF7E2766D for ; Mon, 12 Jun 2017 15:04:21 +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=P55QbaAoN2N2UwndhO4M9jdZy6qTLMRJhkBniu+bdNU=; b=qeSI/2hlNs6nXmE2sgPp+fU61D gMfmB4g4gv+CuaF4cNqrcxMVt1qAnDJpGaSHJkUwJzn5pxqsrya8+sX2VMZlJ7IqwG2BMUUFyu3ru XuE9nvVVYP1OoXF32jZXrWfWbBNcssWZrw/FvbQeUNJAiMzwoxpYjEaXZyiQNe5bD82KRt1fcxxzN bFW5i/qfAXSSoj4FCaG4t3+8/B8QZKO2JPcYRq/bxLvcDyAcBHvHAXHAbWLjC0Sk3PGWXEeAxHXhw tY77Z0X+X6G1QyytBXmG32HwJ3JRr2whssig2q1l85e9s6pQ8fMvpSFa834FDTF+Ds5c+uucZAuUZ R7CnuGXg==; 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 1dKQt5-000879-8i; Mon, 12 Jun 2017 15:04:15 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dKQsd-0007IM-SA for ath10k@lists.infradead.org; Mon, 12 Jun 2017 15:03:55 +0000 Received: by mail-lf0-x244.google.com with SMTP id o28so9679070lfk.1 for ; Mon, 12 Jun 2017 08:03:29 -0700 (PDT) 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=YOha40syq5IGqgDCLbi6OFoPlZLt2nL9mes69+aQJcY=; b=Weds+sYhxoFbAvXX3BU29mTHQpJZrawR5FIkPWbZTBfNLFPrU4m0tHOLQCT3/v3Ct0 5mYfNEnUJSmau9t54T/o/mKcTtz848FUsRYSdpc0Ag91nGdgZYP81cIlFZN0tqWO6s7M jjLJl4Agcv1dRNCQOCbxsd0YIM7wYstmMaEQatoOtg0wA9Seham0F0aJuGu77omN0iU4 etGlnKPnyVr3/w1WL+9IZ2CE+625qJg72E/LUvUb0/cBhqMLlqwe1pl+vkSgEyz5fSCT MGxzeAOZjnPM6dFqhDLOiAuU6KKNcmnv00WmMXaLyrc7HozsdNXtHMJDU89/ZeOsGD4n Ym0Q== 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=YOha40syq5IGqgDCLbi6OFoPlZLt2nL9mes69+aQJcY=; b=AAhQh6Nm+x/FaZtHek6+1VwTNA+EUqAcjgVmjJ4aYM5Os66siyLjOdosOAY6VAun6b 4apLSwXqsVX+8qqxmCp0GZJKknMzia62yDhBEhDM7O2wWDhfzgNIinkiouL+1OjO/EI0 tsS+aLW/QhvtM8dBwv7mMU3643G6cQ/tqJqVdZ8qvh2trBc3iiU943D3Whv+0BoHYoIx FJSGxBQ15gR+mAFmro0oah1FFuOZ11wxd/Vqc3YAgsLR9TwBv8Qf7KWa4R0/W8dpf88x o7jBtAtrwUikbB2HhG4aqZPY2mXxQ1G0zYcMakqA+lXKa+fhaANatQivX8SozVssJ8b/ lVeg== X-Gm-Message-State: AODbwcAC57QFz4MsERCh2Ep8/zRrDRBnQqCywZvmRT+85OUQ6DRLpIQh O9hkCF5Wkw8eeg== X-Received: by 10.25.25.19 with SMTP id 19mr11009378lfz.109.1497279807976; Mon, 12 Jun 2017 08:03:27 -0700 (PDT) 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 n71sm2709253lje.14.2017.06.12.08.03.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jun 2017 08:03:27 -0700 (PDT) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC v2 09/10] ath10k: add QCA9377 sdio hw_param item Date: Mon, 12 Jun 2017 17:03:10 +0200 Message-Id: <1497279791-9598-10-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497279791-9598-1-git-send-email-erik.stromdahl@gmail.com> References: <1497279791-9598-1-git-send-email-erik.stromdahl@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170612_080348_464106_8F4E5223 X-CRM114-Status: UNSURE ( 8.05 ) 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 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 dc8ea5e..675ce08 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -322,6 +322,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 cc3d0eb..676c855 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 */