Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2297401ybt; Tue, 16 Jun 2020 02:17:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+dbjVHTMN6Xl1YisYzf88wGXz9soFY1pwlsci/McZCmE4ZugzNFR10qjTmjddF1sUsKbF X-Received: by 2002:a17:907:212b:: with SMTP id qo11mr1906547ejb.235.1592299055354; Tue, 16 Jun 2020 02:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592299055; cv=none; d=google.com; s=arc-20160816; b=AjRF7qPMxDezTibqJYMmC75oHl0TERlrnrYOIDav33tJBuLxSs2VBy1B2crdH0mxar b7i87mleoLdfsn9Y8tEkyL9I3fYkVNubCEJDTS5oVxsPPh/33mfTOvAEvQ5W4zKLYSNh Oem8SvBvSQx35QmgNpa/QPyzgGIfgCVxrsgbnCdiyAWyNFE+xCXaKAj+pi54VDQ0JdzZ hyCjECNqbzCeDvaHgMpGNv+9dot2Tm/OWvegg0qK5wKbtyhJ/2426x+JR003kaEa4+y0 8q1qv6gtWMYaTFnQCEiFsJICSuKPpFBSRdx71dEMO0wTBQbjsAWpaf2PanBfPBoifL26 ccOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:authenticated-by; bh=Cf/gY33Uou6AVubqJCMxjSQ0gBwFHUmpeZ1t6o89VSI=; b=SLPyExTvNZBJJYogjOJzZnhLbEDkYgjs7HSn8g81W3E6eI+7iBIIFCRPHVLb03cc/T gnj2ndJT4T5USlZ6Hhejxssw6r5ISaKD+wRY//XhaTvztufpGtAcX/RSUDQR6U2eMIQU bvDPS5TX5NVFmR5b7GItSRZxEQNq2MgHdqo2wgyTnfOUrPexo2oXhbyV6qH5tIWSr+hy 7ucKtfunpWkpwnDq+XXNBLT8wd5qOVjvCjqnHFm0g1CmGBMSohT5VHRcd+20VTJLiaWD 4Yvc3dmLqokIUEMqpm5Ms8dok97rAB34GJ3PWmS05oOWeiPx8UMVUSxnCCskoc3tdSzm XHYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si10488872eds.50.2020.06.16.02.17.11; Tue, 16 Jun 2020 02:17:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727819AbgFPJQw (ORCPT + 99 others); Tue, 16 Jun 2020 05:16:52 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:46537 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbgFPJQs (ORCPT ); Tue, 16 Jun 2020 05:16:48 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.69 with qID 05G9GX6g8021732, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmb06.realtek.com.tw[172.21.6.99]) by rtits2.realtek.com.tw (8.15.2/2.66/5.86) with ESMTPS id 05G9GX6g8021732 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 16 Jun 2020 17:16:33 +0800 Received: from RTEXMB04.realtek.com.tw (172.21.6.97) by RTEXMB06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Tue, 16 Jun 2020 17:16:33 +0800 Received: from localhost.localdomain (172.21.68.128) by RTEXMB04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Tue, 16 Jun 2020 17:16:32 +0800 From: To: CC: , , Subject: [PATCH v4 3/7] rtw88: 8821c: add dig related settings Date: Tue, 16 Jun 2020 17:16:21 +0800 Message-ID: <20200616091625.26489-4-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616091625.26489-1-yhchuang@realtek.com> References: <20200616091625.26489-1-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.128] X-ClientProxiedBy: RTEXMB02.realtek.com.tw (172.21.6.95) To RTEXMB04.realtek.com.tw (172.21.6.97) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Tzu-En Huang To improve user experience in field, we need DIG to adjust RX initial gain depends on field situation. Define the register addresses for 8821c. Reviewed-by: Sebastian Andrzej Siewior Signed-off-by: Tzu-En Huang Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/rtw8821c.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8821c.c b/drivers/net/wireless/realtek/rtw88/rtw8821c.c index d5ce4ce568dd..dfce8f6cb5fc 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8821c.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8821c.c @@ -579,6 +579,10 @@ static const struct rtw_rfe_def rtw8821c_rfe_defs[] = { [0] = RTW_DEF_RFE(8821c, 0, 0), }; +static struct rtw_hw_reg rtw8821c_dig[] = { + [0] = { .addr = 0xc50, .mask = 0x7f }, +}; + static const struct rtw_ltecoex_addr rtw8821c_ltecoex_addr = { .ctrl = LTECOEX_ACCESS_CTRL, .wdata = LTECOEX_WRITE_DATA, @@ -660,6 +664,7 @@ struct rtw_chip_info rtw8821c_hw_spec = { .csi_buf_pg_num = 0, .band = RTW_BAND_2G | RTW_BAND_5G, .page_size = 128, + .dig_min = 0x1c, .ht_supported = true, .vht_supported = true, .lps_deep_mode_supported = BIT(LPS_DEEP_MODE_LCLK), @@ -670,6 +675,7 @@ struct rtw_chip_info rtw8821c_hw_spec = { .rqpn_table = rqpn_table_8821c, .prioq_addrs = &prioq_addrs_8821c, .intf_table = &phy_para_table_8821c, + .dig = rtw8821c_dig, .rf_base_addr = {0x2800, 0x2c00}, .rf_sipi_addr = {0xc90, 0xe90}, .ltecoex_addr = &rtw8821c_ltecoex_addr, -- 2.17.1