From patchwork Tue Feb 21 16:15:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9585077 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 BD84860578 for ; Tue, 21 Feb 2017 16:18:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACC3428527 for ; Tue, 21 Feb 2017 16:18:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1C89285FE; Tue, 21 Feb 2017 16:18:36 +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 997EE28582 for ; Tue, 21 Feb 2017 16:18:35 +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=3dOyD1pKvKfLZh+l02kapyUlmpaAoTteLlLupyLW7Qw=; b=YQYdnO1aJcPLbmyiaMSVr1UWNQ SW/6p1VdTGC7iAxFWiDyfRj2HEHD1BLv3v2CaCO7jZiLeXFsv/y+QmMIca0py8DwoEiOIlv6DdSpW DTOWztzprIXvzWzG20u31wKTgTJ4R0eOHpM5IFMGaYjroJxAWFalaF6eNdXAqfs+BGiAWViiicbHv 5hs2J6wws/qUCaiB103Sptjqc5Tl1m1JPBgZZW8xVPKxo0t0hpb1pI7iqzfvaSYPF3tu6Os2kYND7 cs8Z9DeYa9TattKzkp0GaxiQw9FAZjMda4/0QL4fBheQcdLhL1wguNXt0Xj6xA6tSlsiaq2er5tJH +X+FkYTw==; 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 1cgD93-0000YF-Fj; Tue, 21 Feb 2017 16:18:29 +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 1cgD7W-0006p2-45 for ath10k@lists.infradead.org; Tue, 21 Feb 2017 16:17:15 +0000 Received: by mail-lf0-x244.google.com with SMTP id h67so3752505lfg.1 for ; Tue, 21 Feb 2017 08:16:34 -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=si0+NX+4vbZiW99FnBz/U48nsijwRJx/MHvPbLIKeIc=; b=GhbCu0vhQZKJocvkbxnIF6o0FObPZD3vOQ3tBwxP78gLMXfQl0zHXY+BB7uwEUTTC0 9AVt4wR9Y5rN8OyEMAfTgw5y5WHu7vumM3VLozGSbW4LfTq6iRfjuJvJEJi2CNPL3QzD yDwBNvnBJ+MIr6W/9zdxgQRo/t/Aia0Brx3Mxb+nrdVp6NrpgN8OhS8UNgfsuw5bSWyw VqC3U/u86RnGTI+46mgJzCYPnTHXwS7vB14iOyLY/rPsquNUioHkkYJ/k8HEZc90d6Vl 0ddFxTsmI92ax2KNCv4c9ANJkPAwZsxZQgIQm5+PGmVM6+4IBw/qWNFEpEEGvoCWO4S5 xZfQ== 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=si0+NX+4vbZiW99FnBz/U48nsijwRJx/MHvPbLIKeIc=; b=VNZaiPBLiUTKN0478wheCywPhQnC5YYqLU+M+69POmaRqiX5GlOQ75qEOojqiGYmGI 6xZWgjy5OYgCvZgUV9md6RM9yS3WYGg8dTL5hHuoNxWp4G62sZlnH4A4pnSN+9dfiPFL /TV8aF03DJjRL3o3wn9ee6pB2a9CuT03u5bhP9JS2b4hqOm3nXUl79umWp4X5MqTK7FE 3hsqPKjOHbMru5nixRLmk6EnxvINzNtRGmxDsrI+JJwhHgCCUkZbbTbppckA00uaOV/1 k6stMyqs9RaVY2QFeLndawrdApXx+ZV5g7vegjQqssXBIzvqooULi/dkwQEa+92PpJEu LfHg== X-Gm-Message-State: AMke39msgBRIC16LsqFIOyGyFzofrOU7q/FmigrzD4UNPqzD+cfNTJK4q0e2XdOXoYsU7Q== X-Received: by 10.25.15.210 with SMTP id 79mr2595980lfp.53.1487693792689; Tue, 21 Feb 2017 08:16:32 -0800 (PST) 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 t29sm6336069ljd.39.2017.02.21.08.16.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Feb 2017 08:16:32 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC v4 20/21] ath10k: add QCA9377 sdio hw_param item Date: Tue, 21 Feb 2017 17:15:40 +0100 Message-Id: <1487693741-10042-21-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487693741-10042-1-git-send-email-erik.stromdahl@gmail.com> References: <1487693741-10042-1-git-send-email-erik.stromdahl@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_081654_900625_99D8D680 X-CRM114-Status: UNSURE ( 8.06 ) 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 96b278b..a884e34 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -311,6 +311,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 5408ebc..d76b206 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 */