Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp8pxk; Thu, 10 Sep 2020 21:21:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXPGrFydpTc/PFZkcd/Qk4hsgruzhDqvFsIk0KnV5GBDO8qHh/M/2/NjMQRj4wjhzodVsn X-Received: by 2002:a17:907:119d:: with SMTP id uz29mr220053ejb.289.1599798073378; Thu, 10 Sep 2020 21:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599798073; cv=none; d=google.com; s=arc-20160816; b=VUpfweyEMgbHEFb09IjeUS1/u/XA85LAWGEe5YsEAAe962PdCHJzGFyyyRln7Rd+aY rj3FNtR0kv9pp4kn1Q66x8ttEwvPfS/6nybtiZ7I6DTgMSSUw7bmOEnxId2N69BMvXAk CRL3oI0HDUUpg9PHdJey8zNxO83QVZBhsLkjrVs674TOmauG95ObqTiDm/R7Q246IQGq waiBNb95JCExXr873uoryW0aUsBOmlJnF4bOzUqVXtXxp0SXlBaZyaSDdOEk2CARByXh vQ3DrV/G/H8MFX9sGHn7Hal6/hvzRt0h+JECFe8HVl1egqID8kksYkKrZ8QU/4mIGlD2 tLXA== 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=odpJOBHWQJJshHWTVLHwkSDH6lh3iQA5CpwPi4XDfPs=; b=A1+V4yu5m1bEgFmKwy0u55tzyqiaw394l5mwqa5Jjmpoo2CRKUuWG+AUCdBLTwSA9+ o93Ma+5i19bx5duoyJpTJlxtuuUOfT4EVgn0dXxiakN8whzfhqHfwBEMCdPOcqnOqXSc YgdzOOSwZcpiPmdpYWVSDYhOFOKm2P0BiskrvAU3d00aodAmxfz7ti5EMxa/UMqVbcyw Wpw/JRXxepUH5z0RWlVeEPz2y2OP2LoohPXyPhhWMXFnum8yTb/HWvypvCysQmp6Odm0 GvhwcpT7tSMNvX03Xh/uRy9U9jeEzbwXwW+K87I2FV4GJ72Md6T4PotevNjgW22Zm+mc pBkw== 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 r2si501892edc.25.2020.09.10.21.20.51; Thu, 10 Sep 2020 21:21:13 -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 S1725782AbgIKESG (ORCPT + 99 others); Fri, 11 Sep 2020 00:18:06 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:27635 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbgIKER6 (ORCPT ); Fri, 11 Sep 2020 00:17:58 -0400 Received: from twspam01.aspeedtech.com (localhost [127.0.0.2] (may be forged)) by twspam01.aspeedtech.com with ESMTP id 08B3SbvK083898 for ; Fri, 11 Sep 2020 11:28:37 +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 08B3SNip083856; 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:33 +0800 From: "Chia-Wei, Wang" To: , , , , , , , , , , , CC: Subject: [PATCH 3/4] ipmi: kcs: aspeed: Fix LPC register offsets Date: Fri, 11 Sep 2020 11:46:30 +0800 Message-ID: <20200911034631.8473-4-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 08B3SNip083856 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/char/ipmi/kcs_bmc_aspeed.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/char/ipmi/kcs_bmc_aspeed.c b/drivers/char/ipmi/kcs_bmc_aspeed.c index a140203c079b..8843cf867a5d 100644 --- a/drivers/char/ipmi/kcs_bmc_aspeed.c +++ b/drivers/char/ipmi/kcs_bmc_aspeed.c @@ -27,7 +27,6 @@ #define KCS_CHANNEL_MAX 4 -/* mapped to lpc-bmc@0 IO space */ #define LPC_HICR0 0x000 #define LPC_HICR0_LPC3E BIT(7) #define LPC_HICR0_LPC2E BIT(6) @@ -52,15 +51,13 @@ #define LPC_STR1 0x03C #define LPC_STR2 0x040 #define LPC_STR3 0x044 - -/* mapped to lpc-host@80 IO space */ -#define LPC_HICRB 0x080 +#define LPC_HICRB 0x100 #define LPC_HICRB_IBFIF4 BIT(1) #define LPC_HICRB_LPC4E BIT(0) -#define LPC_LADR4 0x090 -#define LPC_IDR4 0x094 -#define LPC_ODR4 0x098 -#define LPC_STR4 0x09C +#define LPC_LADR4 0x110 +#define LPC_IDR4 0x114 +#define LPC_ODR4 0x118 +#define LPC_STR4 0x11C struct aspeed_kcs_bmc { struct regmap *map; -- 2.17.1