Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp354778rwb; Mon, 26 Sep 2022 20:37:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5iX74UpBfYijCCuPxLwE/l37gNuxoat+4QTENVNlGnmtSQXQWrYyPTZzrEW6cVTYNJwEkM X-Received: by 2002:a17:906:fc6:b0:72f:d080:416 with SMTP id c6-20020a1709060fc600b0072fd0800416mr21784376ejk.1.1664249827872; Mon, 26 Sep 2022 20:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664249827; cv=none; d=google.com; s=arc-20160816; b=iRKb5flwOaCBWsSPXP2gifL2Wms+uhNZfdp0Ca/MGfeJhOTUwDGVbgphVH8c3/ynDg Y/Vjet1qJqjC1gDHZbsmdx3NrRPfMD1otMaZ6kEOeilhHZpmzZ8yjWwe2zWRwr4URxwZ 65Ip7VeOiaMdCymYDcpVdMriyTM1Jux7cGQET1WOPEQSRv6Wu3FVQCn/ceu0xwKZSXfp 2RQcXOZFM4v+9IvcFw94Tr0P96ZofVo/f8g6iIIVpIK0emYMGeKxO0Z+WM8ZuH5AxAth /WTs/OykesmEpf4f0R/23xgdoKmUfPtDYcbBvlaNEh+7OUudOAfG2s2IX9CVSQnldNnA LfNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EkNDYHKBk0nJBWNSllWzoYdiVHavaX9jn1j8yxDr1j0=; b=BBu5WmkBFLfD5qTGSeBvV2FvCuulThnvm/5afzsGZEkjbvqIb38dCFm9Dw7iu6Q9i1 gnAqui5jPQ2/VRi4MTQlDdCqdygg3X2XzRUfzxG+91H6+09cRe1p1vpUSF5q+0sPP59j fZcyntWJtRpDXcqNsuDFU9L4TU6o5A0PUuu+WsDLVRcdAjxPLVpdTphmSkc1RPHZzELu HpwbTwneMpI/KueQWwBkQbUEYD8UzcQFWP7YY8Vs8bIsmPCMXp3ty37GXE4shLOc8ZMl +YPUS2cX6uW7fy2UhBAl7+PPjBq+vgqRvxckdJQ40X8zEiWQ1OUI73KCokDxlWdllpHL +PJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=cNmrke2P; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a50eacc000000b004513abe8f74si484356edp.249.2022.09.26.20.36.42; Mon, 26 Sep 2022 20:37:07 -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=@mediatek.com header.s=dk header.b=cNmrke2P; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230187AbiI0DAp (ORCPT + 99 others); Mon, 26 Sep 2022 23:00:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230446AbiI0C7F (ORCPT ); Mon, 26 Sep 2022 22:59:05 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB4F8A6C19; Mon, 26 Sep 2022 19:56:37 -0700 (PDT) X-UUID: c5cf86768f0e45398d9cedaec49dd2ea-20220927 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=EkNDYHKBk0nJBWNSllWzoYdiVHavaX9jn1j8yxDr1j0=; b=cNmrke2PdSKadbxSYKGuijaGQlMPmLnCcQQGzQB+ttqhR+PSWM+/mYtx+T6GCygbWJAHepuu8oETSQSGlbwJSG4YLR/mmnRfz3eWkC7SkHIIjEk8wnF7KuCZ+6zeMp1VczkVarERQzk/G8Ql0d3vdw5VCD0Gmw1ejkHq3yAxPL0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:70ca5407-906c-450f-bdcd-31423f1eb452,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.11,REQID:70ca5407-906c-450f-bdcd-31423f1eb452,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:39a5ff1,CLOUDID:44612aa3-dc04-435c-b19b-71e131a5fc35,B ulkID:2209271056302RBCBEIJ,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48|823| 824,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil, COL:0 X-UUID: c5cf86768f0e45398d9cedaec49dd2ea-20220927 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 534712999; Tue, 27 Sep 2022 10:56:27 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Tue, 27 Sep 2022 10:56:26 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 27 Sep 2022 10:56:26 +0800 From: Tinghan Shen To: Bjorn Andersson , Mathieu Poirier , Rob Herring , "Krzysztof Kozlowski" , Matthias Brugger , Tiffany Lin , "Andrew-CT Chen" , Yunfei Dong , Mauro Carvalho Chehab , Tinghan Shen CC: , , , , , Subject: [PATCH v3 05/11] remoteproc: mediatek: Add SCP core 1 register definitions Date: Tue, 27 Sep 2022 10:56:00 +0800 Message-ID: <20220927025606.26673-6-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220927025606.26673-1-tinghan.shen@mediatek.com> References: <20220927025606.26673-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_CSS 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 Add MT8195 SCP core 1 related register definitions. Signed-off-by: Tinghan Shen Reviewed-by: Mathieu Poirier --- 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 ea6fa1100a00..3778894c96f3 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 @@ -56,6 +57,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 -- 2.18.0