From patchwork Sun Sep 17 19:40:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9955037 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 977326028A for ; Sun, 17 Sep 2017 19:41:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B0CF28A6E for ; Sun, 17 Sep 2017 19:41:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FF5C28A8D; Sun, 17 Sep 2017 19:41:26 +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 8758928A6E for ; Sun, 17 Sep 2017 19:41:22 +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=uktT3xU1SxLwkI/3jrxpp1nmKB9W4/mRqxE+m+qmoOw=; b=q3vs2vyI8xkUDXiZv2GrG/cAa+ u2kqJ5tzEYAsMUQA9pf913eWnLUZeKyTBQsUlqJY1WgbB4+QwG7qPOB6eL+H+XQlrU/44lQ7a6MiY oO+daSOgoaiH6zRk+A2llpD1D5YZ/H1kKXnulD5b9X6YmXU4Ckjjv5dewGSdLlc0m1k2aSzsSLlll Dp7UJpXksUkuiGQEzcY57gKS/Li708ZDqJRbe7v09Wq2ZWIFSnU+MgcTEI4zfIXOtRt18rfgDpb/9 DNuMKPwrty9KIx7IxHlZzIzsLEmEhbvXSpnEBioEVH/8U2CpORP/zsr3WzgLMUsysGfgSW9LJeHIA 3ZJykxgw==; 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 1dtfRM-0000I0-PH; Sun, 17 Sep 2017 19:41:16 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dtfQw-0008JN-6I for ath10k@lists.infradead.org; Sun, 17 Sep 2017 19:40:52 +0000 Received: by mail-lf0-x243.google.com with SMTP id l196so3535735lfl.3 for ; Sun, 17 Sep 2017 12:40:33 -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=4sUz34t1rnROWFZBL1AyOx/LWLhavWFR9pNRGouqs9I=; b=GnwBHDbXaoTIfu8dDGjcc2IwcCpzw9LjLQdK6gdIjT3S+mG1/W1QZqUxF3kC7SvwP1 UP6V6B7kGJq2RLrqFD3FE09Ecxzx8NDqsMjtlAjTMkG5djfYRNSCsmb5nGTImb+LickN EX6W3lK4bRQrTF0R8uei7o2BHt7h4jHcIs9ZdXUp16zJgcCuyy72M7wfqC2GgPafFOi/ 7ZT35VSPeObpLSGEIxi1ocEs3dLWF+Z7hf1zD6+b1CJFFSVVc48GgoQZDO2WoaYYBzG6 jbOsQ9aoAC0uYR5V/8RG7fDy6oeVtWBF3xvgiX7Cojmnu3Pah2gcFw4P7Fy9rwY1swuJ nWDA== 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=4sUz34t1rnROWFZBL1AyOx/LWLhavWFR9pNRGouqs9I=; b=DH3+8CpUbrsazuNQVYnfGgeFCr1X/5agk96gwiGGOQtNiKwPRxkQZNxj54QbEFwLOO lUAzjaH4+SS+hBHGe4hxZetMpt6T+80pVTIid32c36o81jClzGHs+UoYMb3cnrOt9dU4 BXK5Bf0Ck7JRsT5/LQpzxOTm9CVx9KEwcpX8xpVz7GMGq9X/enRjDCY6F3CgeeHmR0xK 9doRqOEmDwZ5M/ZPSP2NVSMZOcBTVSQtGAY6uCEvmSY07Zpbj+V7yojOOtrKPx8cSXU6 YZWR66t3Z4ZYR1m7KHBHchMIO3O51Sf1sbuidxJbrSG0Jkms9/zZIG5q42jO0xtrOMN9 QPNg== X-Gm-Message-State: AHPjjUi/zMvetSakYQKA44xh6jY8see5UCnDevBIXlY9mXDH29n4GyEi mgbSZQ00PoyczY4JM+k= X-Google-Smtp-Source: AOwi7QCSkNXtuTiH5g/Omkg9MBboETpclpjLAtZJn7YSEb3ZemPItCvZF8ClO8+mKU1uvFX0XOJ8/g== X-Received: by 10.46.41.203 with SMTP id p72mr7610700ljp.5.1505677231805; Sun, 17 Sep 2017 12:40:31 -0700 (PDT) Received: from erik-arch-i5-6600.lan (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id 1sm1452879ljo.13.2017.09.17.12.40.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Sep 2017 12:40:31 -0700 (PDT) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC v3 09/11] ath10k: add QCA9377 sdio hw_param item Date: Sun, 17 Sep 2017 21:40:11 +0200 Message-Id: <20170917194013.8658-10-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170917194013.8658-1-erik.stromdahl@gmail.com> References: <20170917194013.8658-1-erik.stromdahl@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170917_124050_553528_AF1F635C X-CRM114-Status: UNSURE ( 7.91 ) 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 b6893254ef53..146a9f61b5f0 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -351,6 +351,31 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .bus = ATH10K_BUS_USB, .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, diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index 420851e26a09..77011a6cafa1 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 */