From patchwork Sun May 21 19:59: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: 9739253 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 B55DE60392 for ; Sun, 21 May 2017 20:01:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A527528598 for ; Sun, 21 May 2017 20:01:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99EB628694; Sun, 21 May 2017 20:01:43 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D5362859A for ; Sun, 21 May 2017 20:01:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932168AbdEUUBe (ORCPT ); Sun, 21 May 2017 16:01:34 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36062 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756970AbdEUUB2 (ORCPT ); Sun, 21 May 2017 16:01:28 -0400 Received: by mail-lf0-f68.google.com with SMTP id h4so3696229lfj.3 for ; Sun, 21 May 2017 13:01:27 -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=XO1uldg/R7elFxNkN7rAcKD0ueBtlMjGUY5l1E1uIj0=; b=Y8ToCxP5iKPY2c4krXgUO8fS6FlTA1x01Sc49uRzSTDArGI1y9W8yL0nLqvvhP3Yzn CMvQvRpuZ8oQ5fgTsil8edenVm9rCiFJOp5z/CBdjJj/pxcTQQbvrim7LxM9CxkUNARr g1dl/V12lCI43p9jSPBxaHYFVHfuLUKH//Gz/uolSb+mrhiEDuE7fT8Eva3YNXZe31fC uove6LjpZw096RVK+JzH2plm1ASTjYBaYJsUwj6d1dbx+y1rQ/PxvTrMH4hrds0lc0vu pdICSgAWIzycbG7z5M46ggefNS7/Asfty2HnDeKn0tm9ap8iHINecpoLytQTTQ8m5d+w DKVw== 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=XO1uldg/R7elFxNkN7rAcKD0ueBtlMjGUY5l1E1uIj0=; b=aPeiNnIlFkKQH+OdJmDdM8ku2sRNVqyz6XYze3QdZJz5vhJPzHA1a6ZnVJ+MyKToBC /vELGHWMvj6eKp0KQCwhPngeNloJpBVMWNo3yLHy5RRtNTV5D5USsIuzjxO8tuidypEt 6+RUu0uyBl2kXl22jKi50EGvavoyRugD7W+Wi+Z8nEfodqqRpyIC5DGCVHvlF3pMn1Bx flu3jWoSYxmKi72az3EaElB1ujI+EKqL6RS8F1I6d3JzcdGYM1kD10jdPE5zzo0Bksxo sat6jPWo8mr2vO1Vnn0rL/jsMcp58savqVOLPReulF+dpWva4ITpt2ZlxPESICpxwTjo l8Bg== X-Gm-Message-State: AODbwcAjFmD7PmUv5l5y2QPfCy3RCOZ1cFOP1FTTtuCchC74/pNPkSJa E+G602qUdckiyw== X-Received: by 10.46.20.9 with SMTP id u9mr5734652ljd.14.1495396887120; Sun, 21 May 2017 13:01: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 17sm1821544ljo.56.2017.05.21.13.01.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 21 May 2017 13:01:26 -0700 (PDT) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC 9/9] ath10k: add QCA9377 sdio hw_param item Date: Sun, 21 May 2017 21:59:11 +0200 Message-Id: <1495396751-4805-10-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495396751-4805-1-git-send-email-erik.stromdahl@gmail.com> References: <1495396751-4805-1-git-send-email-erik.stromdahl@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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 edf9943..2a9afde 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 */