Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp329204imu; Wed, 2 Jan 2019 07:29:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/X86WT8SjZPhWkQGRBsHu5hhdeX9KnJqi1N546NCAuOJ0LfEIJWTp5BmTUiBsVSicS6+s8B X-Received: by 2002:a62:509b:: with SMTP id g27mr45173156pfj.48.1546442988595; Wed, 02 Jan 2019 07:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546442988; cv=none; d=google.com; s=arc-20160816; b=qN1HTJn8+EsL0VFifWrU6wfjMGBTQhtmwl1zWZWNNkv7db4kjF6d8zyYyXh+FKDumy OnoFJ36/iCSe27NvjFFz0y1rah1nlOMr/j+vgi9QVdMeme5ZrCvZJfsdvX/LnmFfwaom 07qqCPiC1SNYPl7sZmYExWbsNPriMnAMLbbm1w6cJnwFjDFIgRG972p76LuIhfEZq/JE paH6VCz0c2D5EEzc+obqIDYwcb3KkFqUe2lb9Y9LQu1SBIckf7VhILql+2C1rMO9YKUh To1d/0O75pCdku1Nbmm8xAHiquaAuIcrsAFSodxmyJnLVrw6BfdIb5hcUd4ENmGnZW2G 86Tw== 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=+4IWGdPD5wndnp532LgN83H3KFc7vSAf3SK4rn0JPlg=; b=JLHALv4RtgONK3MyMQ149kl+5w0Nxh8ohqS55BvuSJgfFx7mkIXwNP4xijVOltlrn2 qcOtag65e3u9aNM6CuaSyJI2KB5V646aUBWRRGgqoFhMNromIiepH+ZGKz1nG3X0Hk7A fMZi1Sru6elo0WSRYzONil6gMHTiBgm2KvMlcOQj1OQBzXA+M7sI+Mt3lHgR5l2JVxUF izV/cMJ+EuXDZntqXpZ/go9xIyA9zxr5C054FJTMaMEV8yxa3RRfOM55TAnKXS5KGWGG /fH+x6Z+or4jj6tr1LpEdKCTDIXXnVTRi/15kkqWvIuYbmMpTF9omot0mNFiDhPU0hgX SiJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g92si3283876plg.392.2019.01.02.07.29.33; Wed, 02 Jan 2019 07:29:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730120AbfABOBh (ORCPT + 99 others); Wed, 2 Jan 2019 09:01:37 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:47302 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729988AbfABOBI (ORCPT ); Wed, 2 Jan 2019 09:01:08 -0500 X-UUID: 58d8e67fb15e45b9be35046c6d58a513-20190102 X-UUID: 58d8e67fb15e45b9be35046c6d58a513-20190102 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1226812703; Wed, 02 Jan 2019 22:00:58 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 2 Jan 2019 22:00:56 +0800 Received: from mtkslt205.mediatek.inc (10.21.15.75) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 2 Jan 2019 22:00:56 +0800 From: Henry Chen To: Viresh Kumar , Stephen Boyd , Rob Herring , Matthias Brugger , Ulf Hansson CC: Mark Rutland , Fan Chen , Weiyi Lu , James Liao , Kees Cook , , , , , , Henry Chen Subject: [RFC PATCH 5/7] soc: mediatek: add header for mediatek SIP interface Date: Wed, 2 Jan 2019 21:44:02 +0800 Message-ID: <1546436644-19234-6-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1546436644-19234-1-git-send-email-henryc.chen@mediatek.com> References: <1546436644-19234-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a header to collect SIPs and add one SIP call to initialize power management hardware for the SIP interface defined to access the SPM handling vcore voltage and ddr rate changes on mt8183 (and most likely later socs). Signed-off-by: Henry Chen --- include/soc/mediatek/mtk_sip.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/soc/mediatek/mtk_sip.h diff --git a/include/soc/mediatek/mtk_sip.h b/include/soc/mediatek/mtk_sip.h new file mode 100644 index 0000000..5394ff4 --- /dev/null +++ b/include/soc/mediatek/mtk_sip.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (c) 2018 MediaTek Inc. + */ +#ifndef __SOC_MTK_SIP_H +#define __SOC_MTK_SIP_H + +#ifdef CONFIG_ARM64 +#define MTK_SIP_SMC_AARCH_BIT 0x40000000 +#else +#define MTK_SIP_SMC_AARCH_BIT 0x00000000 +#endif + +#define MTK_SIP_SPM (0x82000220 | MTK_SIP_SMC_AARCH_BIT) +#define MTK_SIP_SPM_DVFSRC_INIT 0x00 + +#endif -- 1.9.1