From patchwork Sun May 21 19:59: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: 9739277 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 EC3B160326 for ; Sun, 21 May 2017 20:02:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB7C528598 for ; Sun, 21 May 2017 20:02:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF5FE285E2; Sun, 21 May 2017 20:02:10 +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 8538F28598 for ; Sun, 21 May 2017 20:02:10 +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=h10BGH/4VQLTzE5xBJH+1uWTVA2QQXuL1ZkXA7QIXBQ=; b=B9V/ryqBbP80Z3tm7qHI+LX1Ld 0YuNQn+fIZdJuq/t61XpNRFmHmwVfptKCKkxBvc4rGlFcUnp1EDoyyLhGKLKPtgikLpQWjm0P/Cg/ afMXUo/2RwbboF7CgYcwftpvjg1lh8WYqyXFAEYeGAg57SjP8PW1ogNFk2+7kgdW3zsNfjQE6H0JI oIujMFzt2zi9pIM8dvP8PInacc+gy55qxiI1RVCpb12H8FPH3pH+i87AKYPaeUz+LBlvVPclxurFZ lMUsM1dpmhFk1MsVo6nqZWeqK8ccBy/LSbTiPp/0SHsUOIQ/c75fV7UGfPwgw6IlCzbrSsnTUnVah uXK3NTdw==; 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 1dCX3F-0002Vo-BM; Sun, 21 May 2017 20:02:05 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCX2v-000239-TF for ath10k@lists.infradead.org; Sun, 21 May 2017 20:01:48 +0000 Received: by mail-lf0-x242.google.com with SMTP id h4so3696219lfj.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=yZ9vUzoo8GT8L+mClVMRYNmiepqvU1ooIeoHRDxqnvg=; b=p6kJRrD3YpPmilSHJg4H9BZ9sx82aIUtauCxe/khEVqf0EvMy1uT6/XPrwxAgYgkkZ o2AXvbnMIqUOrFRIVUC8ll7dabitJB26wnFPaxv3CIK0dP/K7NCFQ5W3j1c3HkVFjz7o 0hdNkTC/7oPXNK3JfjitZHN43HHSlG7cVp8wP4GBTIpBJWskHMeQwJGCMi17S+CXjqv1 JHFjN/hkw0WSc3NB8UinF+we9bUetiDNBRRVMfDHKqFFtlOzfKEXZh9qkIBxyNDpl7gw 2hXvHmpPUOWfWO6sdXhhRzG1URvBZGjj29PeeWvxWFu7RpZrjyHVzN4pDDBVRTFW2QWg c3uQ== 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=yZ9vUzoo8GT8L+mClVMRYNmiepqvU1ooIeoHRDxqnvg=; b=kAi9CogmrxKks+UEa7wVBUJsNpFdxXrX9OpKPde9oAiFCkIVk7n/A8V8zqC1ECHgOV hqbGBiqfFQvjb7R/OE6lB3ni7k3B0aQWxttV+8k49j8ypVI1jIPm2glrYrB0F2Fe8SyV Rq5h0WoqYnLyvHIxOHIEyZ2SybCR9kYoAuuoPmK4aTPwGhIT6rs5nQYbrY1e0xhvdWFT sTIsGuGRMdNAglJV4nv2dPXKGpJpkxnaai3yCc9H+/ofuaVPEjP3DE20ZhysVP7GrOib gPp4V/N2w1POp14ai3zuiAbkAWohRhihnT30IP5j84IiPWvKNZwUPgafBU3cuU1z+mYa YlCQ== X-Gm-Message-State: AODbwcC8QSIj9oASiGCjcArVV/EOpRB8edaXvYESBhx3W30EpZSdNXMf II05P++Ey1cOmg== X-Received: by 10.25.167.129 with SMTP id q123mr4859935lfe.138.1495396886331; Sun, 21 May 2017 13:01:26 -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.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 21 May 2017 13:01:25 -0700 (PDT) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC 8/9] ath10k: add QCA9377 usb hw_param item Date: Sun, 21 May 2017 21:59:10 +0200 Message-Id: <1495396751-4805-9-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170521_130146_222030_F8A7DF6F X-CRM114-Status: UNSURE ( 8.04 ) 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 | 23 +++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/hw.h | 1 + 2 files changed, 24 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index da5377f..edf9943 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -299,6 +299,29 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .spectral_bin_discard = 0, }, { + .id = QCA9377_HW_1_1_DEV_VERSION, + .dev_id = QCA9377_1_0_DEVICE_ID, + .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, + .max_num_peers = TARGET_QCA9377_HL_NUM_PEERS, + .is_high_latency = true, + .bus = ATH10K_BUS_USB, + .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 f733e73..cc3d0eb 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -127,6 +127,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 */