Received: by 2002:a05:6a10:e2c5:0:0:0:0 with SMTP id j5csp1598735pxy; Thu, 10 Sep 2020 21:20:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt9tGMOkJvx77pugb/88C6oF+WXPQK39zgxqKBCpdwGF5IkFBjPkE1l411n1ZWR0bjrrPV X-Received: by 2002:a17:906:3191:: with SMTP id 17mr219990ejy.239.1599798041612; Thu, 10 Sep 2020 21:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599798041; cv=none; d=google.com; s=arc-20160816; b=RgGNbi/tJyLWD6oPW7UbXA5gyqm/fyZvlu2OHSuc6bbT8a+Y6MWRit3WROX6khBn2D X0uBK5oC+JN7vq3Gia6Rs0JR4QgFrz6ifzNGTaSX6QctT9WvbNcFv5nKB6DP5ydjgzx7 WW/8v6j0xj6zEIJuHz4oIyRdtT0CjMTADHrFFF9msOBsjiInbd0n6Moz6jrrH6hBmACR Y9D65OsXx9M2cG+jZPiYpJNNjic2Y14uKlXOTzk+BGcWjM6smJgQU1lZk1mr442xoZtv mDKQ7DbfVllis8Cp/PUrn1NhV1zp3LP1V5iCaWzvSXMBVRJ1PhheKsEGf3HvrLtSIC4S OBAA== 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; bh=IGU75hPbtAPKKLpXDkEcbj0jlLIdIvhFG6Hqgr0zTM4=; b=KlBLkX5k3TYs8lmCRtEE1T0TToLoBX4lT85ufNoemp57d0ICdT5aC9woEGUN7SEs9u bMoXVnHCBXoTHcDygWF7DVP4OSsvMANuG/8VTeZoA8blUF9Ez0CcOH/7UCKvbZwJrPha KjB0tBWyvu6F2t5BEqwPkjZBnrOfVId8sJitm1wOLBV6V7vpGosnl4SYbtPCn5WZZuRv MiCn+iiDJuruRMg9AIwbB7IMC92MGcxg800sXUlmJrYyc4XqPpP22LP4lI6QCrf7v/v8 xDYPCoHHtl2qkCLDe+4Dy0Jxw1ogWQOlx2yZ2KA0gLXjKdJw0aSjKqpB8UCRexQgCsWs 7tAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 c3si502827edr.295.2020.09.10.21.20.18; Thu, 10 Sep 2020 21:20:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725795AbgIKESR (ORCPT + 99 others); Fri, 11 Sep 2020 00:18:17 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:11790 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgIKESJ (ORCPT ); Fri, 11 Sep 2020 00:18:09 -0400 Received: from twspam01.aspeedtech.com (localhost [127.0.0.2] (may be forged)) by twspam01.aspeedtech.com with ESMTP id 08B3Sl36083926 for ; Fri, 11 Sep 2020 11:28:47 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 08B3SMkD083855; Fri, 11 Sep 2020 11:28:23 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from ChiaWeiWang-PC.aspeed.com (192.168.2.66) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 11 Sep 2020 11:46:32 +0800 From: "Chia-Wei, Wang" To: , , , , , , , , , , , CC: Subject: [PATCH 2/4] soc: aspeed: Fix LPC register offsets Date: Fri, 11 Sep 2020 11:46:29 +0800 Message-ID: <20200911034631.8473-3-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911034631.8473-1-chiawei_wang@aspeedtech.com> References: <20200911034631.8473-1-chiawei_wang@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.2.66] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 08B3SMkD083855 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The LPC register offsets are fixed to adapt to the LPC DTS change, where the LPC partitioning is removed. Signed-off-by: Chia-Wei, Wang --- drivers/soc/aspeed/aspeed-lpc-ctrl.c | 6 +++--- drivers/soc/aspeed/aspeed-lpc-snoop.c | 11 +++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/soc/aspeed/aspeed-lpc-ctrl.c b/drivers/soc/aspeed/aspeed-lpc-ctrl.c index 01ed21e8bfee..36faa0618ada 100644 --- a/drivers/soc/aspeed/aspeed-lpc-ctrl.c +++ b/drivers/soc/aspeed/aspeed-lpc-ctrl.c @@ -17,12 +17,12 @@ #define DEVICE_NAME "aspeed-lpc-ctrl" -#define HICR5 0x0 +#define HICR5 0x80 #define HICR5_ENL2H BIT(8) #define HICR5_ENFWH BIT(10) -#define HICR7 0x8 -#define HICR8 0xc +#define HICR7 0x88 +#define HICR8 0x8c struct aspeed_lpc_ctrl { struct miscdevice miscdev; diff --git a/drivers/soc/aspeed/aspeed-lpc-snoop.c b/drivers/soc/aspeed/aspeed-lpc-snoop.c index f3d8d53ab84d..7ce5c9fcc73c 100644 --- a/drivers/soc/aspeed/aspeed-lpc-snoop.c +++ b/drivers/soc/aspeed/aspeed-lpc-snoop.c @@ -28,26 +28,25 @@ #define NUM_SNOOP_CHANNELS 2 #define SNOOP_FIFO_SIZE 2048 -#define HICR5 0x0 +#define HICR5 0x80 #define HICR5_EN_SNP0W BIT(0) #define HICR5_ENINT_SNP0W BIT(1) #define HICR5_EN_SNP1W BIT(2) #define HICR5_ENINT_SNP1W BIT(3) - -#define HICR6 0x4 +#define HICR6 0x84 #define HICR6_STR_SNP0W BIT(0) #define HICR6_STR_SNP1W BIT(1) -#define SNPWADR 0x10 +#define SNPWADR 0x90 #define SNPWADR_CH0_MASK GENMASK(15, 0) #define SNPWADR_CH0_SHIFT 0 #define SNPWADR_CH1_MASK GENMASK(31, 16) #define SNPWADR_CH1_SHIFT 16 -#define SNPWDR 0x14 +#define SNPWDR 0x94 #define SNPWDR_CH0_MASK GENMASK(7, 0) #define SNPWDR_CH0_SHIFT 0 #define SNPWDR_CH1_MASK GENMASK(15, 8) #define SNPWDR_CH1_SHIFT 8 -#define HICRB 0x80 +#define HICRB 0x100 #define HICRB_ENSNP0D BIT(14) #define HICRB_ENSNP1D BIT(15) -- 2.17.1