Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp329677imu; Wed, 2 Jan 2019 07:30:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN5F56gwU7ZAL0GwAaJGwzgnLboqZoX1f3cJoQWrrzi2mrqdhAMA0FE6lz9QcSx4TtK2Xg6X X-Received: by 2002:a63:ed42:: with SMTP id m2mr13949442pgk.147.1546443021543; Wed, 02 Jan 2019 07:30:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546443021; cv=none; d=google.com; s=arc-20160816; b=g0BoEivgl/Z9mBSxt+nzM118tYzfMZXQoB1rbLYbxGEEwxMDjndLmc8dk/eN009NUR YnXNOdWUvput+b3Jl7SthmD1JF0/Px6DncNXR3f1rgLhbtUnwsHgAAjw0REN7ASn3jlu d+QqmvhGavXygRQXvl4a1Ib8sDf50doYCEm6v8zwklP4mZMjwB98nSXe15LDKBBhNxVI 0Trr89d2Bmj4cZervVYTVGmgb9gZKZmYFWmXG6d0TYjHGaGJvUVJbEHow9YPl5zGQSMm BRPT08o9jSHx9+00qS4Hf7GncAoa3u7954HEULDkEBqZ1ffDGSv/7DIFFCyZotsevD0K Hyfw== 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=fIc4Zk62clb+IneyKRSe2qHFLpL21lJirxhZXeB2sfRuly9QN5rPGaOuFApsEtv6AD z1beOIqA4Vz7diBeoZxuif6vs2ftPpuOjQ0nc/C6MrE+j2UEp+Gon6ahBMtJvE4wm/YN eBs26L/U24SQxlGsr9ymjv+WmQo/5QSI96NSPQPh8yfyGtBTNRzFAmFj+7bu1Slz2gux jI5LuDg9wpNyzrwoUTYC7dPit6KRR++GF7OhawrOuRlK4WM1S96eVEChDHL09rh/3/Dt Lh1BUx2rC/2xtZy9be4tE9t1VTd9+evSf1XEjGu/lbgoToDsaTAX5J2agOdEFV//jV6e ER5Q== 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 q11si22761977pgj.313.2019.01.02.07.30.06; Wed, 02 Jan 2019 07:30:21 -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 S1729374AbfABOKc (ORCPT + 99 others); Wed, 2 Jan 2019 09:10:32 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:5734 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728120AbfABOKc (ORCPT ); Wed, 2 Jan 2019 09:10:32 -0500 X-UUID: 1a4ee7767611403c97f3b65c52a2538e-20190102 X-UUID: 1a4ee7767611403c97f3b65c52a2538e-20190102 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1324295749; Wed, 02 Jan 2019 22:10:27 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 2 Jan 2019 22:10:26 +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:10:27 +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 RESEND PATCH 5/7] soc: mediatek: add header for mediatek SIP interface Date: Wed, 2 Jan 2019 22:09:56 +0800 Message-ID: <1546438198-1677-6-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1546438198-1677-1-git-send-email-henryc.chen@mediatek.com> References: <1546438198-1677-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