Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3423601rwe; Mon, 29 Aug 2022 11:23:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR7U82Y6f/ERDOeQMIlXDcgDEOmAs1Ix/KwzyqANKgeL+PLUCbcML4t1+L7HKGCmg8h5DVae X-Received: by 2002:aa7:ccc8:0:b0:448:b0ce:3b65 with SMTP id y8-20020aa7ccc8000000b00448b0ce3b65mr1115299edt.56.1661797395916; Mon, 29 Aug 2022 11:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661797395; cv=none; d=google.com; s=arc-20160816; b=RWgsHx4IyYDIJyt6O+bo/3n+rg49KKdflIVidE6T+//3W0KUegP4YnTrTfqGxPZcxc exATtQfrbVeVdmKopjZvSQJ9tLuF5mj6jj/NK4mq9W9fL51SrB7kAw1VjVJoUur/RPBU GcbwGK+e71c9MduwGTcbs9eis5hJQErYTddYxurefY4eVPXs9pupURqLKbXG2eOdfLGI uOIjWSjOEJhySHYUGH7k3/GR1TsixU/2mCv4KZzwN1uJoFXX6k5gG64jNVVVzDq62DKc ecOnHKKgBi+68SxyhIlFLxOiSs0X+aX6MNGEWInk0+EHVo2aqYot0/P3VSar2xTvJEK7 8ecQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aP8hdsX7w+lAko8aJQsw+FTPWreKWJ2EVj6LyJvUNh0=; b=u2PKWqyC5TlKN12hD4nqlRGkc2M0IrT3IOZNJUTIO6DdDfhZJJcSfUGLTYF1ZhgIcW RjwBk3+4XIp3+bH20zCNYJOUUfcMpSif36rNARzCeCUgn4rRdBL/avpLTYTfsosVFnS2 hxPJajm20dOJY1uYBlRKVcbKJ8YchJqm3ROsmVsEmWZT0TN23GsWJ0EPddRdVNkiJj9o TfQXku0u60+R5ljfG5mGtHOi07tJd0pOT6Fgsb1Vek8H9OMxqnudKRhlOpfluFvcdO9B rOB3DOm33GUQ8TyFsWSd9PTFjKDURExuQRk4pQDJnZ2M7Aib6iTOKYxBXQD8f+nupXUx rwIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VwYCcxEf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t3-20020a056402240300b00448303cd854si4391557eda.196.2022.08.29.11.22.49; Mon, 29 Aug 2022 11:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VwYCcxEf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbiH2Rqr (ORCPT + 99 others); Mon, 29 Aug 2022 13:46:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbiH2Rqo (ORCPT ); Mon, 29 Aug 2022 13:46:44 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B6A15B075 for ; Mon, 29 Aug 2022 10:46:43 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id w13so8339028pgq.7 for ; Mon, 29 Aug 2022 10:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=aP8hdsX7w+lAko8aJQsw+FTPWreKWJ2EVj6LyJvUNh0=; b=VwYCcxEf5UykaTaEGbwdLPWk3ws3rUXSTUcxdbBe8d2AqIPcT7lgI7CaGsFQdvNMtB jKhpVlfEJ+nJsizNCDaP63n5XPBS0w9V7BMGkPAdAjj0DmzwAb516anjc2665EqDnZQi UksP91Twx00G3j5ZThFpWYEcPTr02IX+keje+1Ry63LiK6qREy5wMeY2IOUZcvVMxfkP dLUqPy7/RzlcKR1KZUlN8DipmtWLN2zOJumJhpWFg5Hg4AHKNl4MZuvrW+GDFxgiI8Nd +Sm0lxCV6DpFzKSMoGs/P/t2FpEB7C7/emCoZSX9S9yce8Jk6eG2aCedJI8MSHbh0bSg cU0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=aP8hdsX7w+lAko8aJQsw+FTPWreKWJ2EVj6LyJvUNh0=; b=lEBvcPNBWdUmwFhSdjxgzagSitKFQvPqp6DGp0zRkyF2DdZmrDg6Ubf1lJj4KZpb6a Bclcrp9MBdWULt4HIniEkEGMEla2t05GzTjTM5KAwS6MLZpPzi8bb0aTlmeQWOs7sSR4 OWP3O3JokxBtUF2unx69C4RhFGvKLS6kpN2b4aCsQeLGdw16TBGhczLlm/9GPKV0QcWd PJJSWrCbL4yGPS6cjARhSdDfIsQrv+jCmoGJbWty4UYRQ80V9O+uotim5TLvdf0CAX+W m2jWV91lh+oquIAsnl7PTNo7VsquzAevoNJWLxSnz0JvaIEzigBPCT6r6igtjAMofMbc TPxQ== X-Gm-Message-State: ACgBeo2bAN4cmCudkN30Jl26aK1u4Y8UdLpM49tKrgb+Ol5D155L+b8y UQAs4kADSy7akBk9U+qnWryyVA== X-Received: by 2002:a63:91c1:0:b0:42b:50f8:774c with SMTP id l184-20020a6391c1000000b0042b50f8774cmr14896896pge.496.1661795202958; Mon, 29 Aug 2022 10:46:42 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id x9-20020a170902a38900b0016f154c8910sm5644434pla.204.2022.08.29.10.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Aug 2022 10:46:42 -0700 (PDT) Date: Mon, 29 Aug 2022 11:46:38 -0600 From: Mathieu Poirier To: Tinghan Shen Cc: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Lee Jones , Benson Leung , Guenter Roeck , Sebastian Reichel , Daisuke Nojiri , Kees Cook , "Gustavo A. R. Silva" , Prashant Malani , Enric Balletbo i Serra , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, Project_Global_Chrome_Upstream_Group@mediatek.com, weishunc@google.com Subject: Re: [PATCH v2 3/9] remoteproc: mediatek: Add SCP core 1 register definitions Message-ID: <20220829174638.GB2264818@p14s> References: <20220608083553.8697-1-tinghan.shen@mediatek.com> <20220608083553.8697-4-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220608083553.8697-4-tinghan.shen@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2022 at 04:35:47PM +0800, Tinghan Shen wrote: > Add MT8195 SCP core 1 related register definitions. > > Signed-off-by: Tinghan Shen > --- > drivers/remoteproc/mtk_common.h | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/drivers/remoteproc/mtk_common.h b/drivers/remoteproc/mtk_common.h > index 73e8adf00de3..5582f4207fbf 100644 > --- a/drivers/remoteproc/mtk_common.h > +++ b/drivers/remoteproc/mtk_common.h > @@ -47,6 +47,7 @@ > #define MT8192_SCP2SPM_IPC_CLR 0x4094 > #define MT8192_GIPC_IN_SET 0x4098 > #define MT8192_HOST_IPC_INT_BIT BIT(0) > +#define MT8195_CORE1_HOST_IPC_INT_BIT BIT(4) > > #define MT8192_CORE0_SW_RSTN_CLR 0x10000 > #define MT8192_CORE0_SW_RSTN_SET 0x10004 > @@ -60,6 +61,26 @@ > > #define MT8195_L1TCM_SRAM_PDN_RESERVED_RSI_BITS GENMASK(7, 4) > > +#define MT8195_CPU1_SRAM_PD 0x1084 > +#define MT8195_SSHUB2APMCU_IPC_SET 0x4088 > +#define MT8195_SSHUB2APMCU_IPC_CLR 0x408C > +#define MT8195_CORE1_SW_RSTN_CLR 0x20000 > +#define MT8195_CORE1_SW_RSTN_SET 0x20004 > +#define MT8195_CORE1_MEM_ATT_PREDEF 0x20008 > +#define MT8195_CORE1_WDT_IRQ 0x20030 > +#define MT8195_CORE1_WDT_CFG 0x20034 > + > +#define MT8195_SEC_CTRL 0x85000 > +#define MT8195_CORE_OFFSET_ENABLE_D BIT(13) > +#define MT8195_CORE_OFFSET_ENABLE_I BIT(12) > +#define MT8195_L2TCM_OFFSET_RANGE_0_LOW 0x850b0 > +#define MT8195_L2TCM_OFFSET_RANGE_0_HIGH 0x850b4 > +#define MT8195_L2TCM_OFFSET 0x850d0 > +#define SCP_SRAM_REMAP_LOW 0 > +#define SCP_SRAM_REMAP_HIGH 1 > +#define SCP_SRAM_REMAP_OFFSET 2 > +#define SCP_SRAM_REMAP_SIZE 3 > + > #define SCP_FW_VER_LEN 32 > #define SCP_SHARE_BUFFER_SIZE 288 Reviewed-by: Mathieu Poirier > > -- > 2.18.0 >