Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4692368yba; Tue, 30 Apr 2019 02:48:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjyEL5rM6Dja/Xuy5Mu4UzYhXeQp1VAg3uKsAcDxeO0byJBf+2uAg5VFVG3ItRN8m0vqFi X-Received: by 2002:a62:e303:: with SMTP id g3mr6790042pfh.220.1556617721643; Tue, 30 Apr 2019 02:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556617721; cv=none; d=google.com; s=arc-20160816; b=o49JJ865eXfTqbv6yi1VcRCW49/M5mQFlxcof550iK6Bs5M/2zCKlqLKTVdADYCiWv QJQXzrerRr3y+CKrkQlg4i3JAfg/Ko/PPa2qhanipgcm7ygUzh2mjLqdR8nJTsFto2s8 UBTdmFq88q9RfHY76TeHI0E58wpl0IPmzXca1Er+mCvKzAFTr3uYeFUlGlw+fOQ4SQZQ KAEGvuhEDpaK2JLQR/BfujCvPbbxz9wTyitbiiLPMCfK9209QezYBUUWIhLMI1h5ffW0 nMcGQwthLHReZHDhz26pikQhykaKM/DX9FDx0zzrOUNQWuAw2WJS7+fMy2vo4Wox88AV 3jwA== 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=nppzT3sDvlcu9QWyOUpkDog/rGUs94/wTTd2hU8Knpm+HOtwO9xaANs1wmH8h3uSEw kOkIMX4NfmpdY/U10/dJ57VRwL/Kbd4D9sRcV7hozeqjVM1K9lDvZg5cl7fyftZVoW6o nCawgiwUmn1QZpt3SOOR0OUYwj92ckxNLqGDCEMuA5wGH1tLlGD/S+SHxi56y+QKssWO Qc/OxCcSZrtIpNjUtUAuDOOWvtbsStfi/eyJsF6VJkjqmFB9JYfPLp5567bsm4PyCy63 Baya9/57GKvLsz1yW8HKHdQjWwA6+PyoVoNfnXrtb6hevxGL79RoGO8F+umPtsXBR7PU mVYQ== 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 35si28821617ple.382.2019.04.30.02.48.26; Tue, 30 Apr 2019 02:48:41 -0700 (PDT) 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 S1727059AbfD3Jp1 (ORCPT + 99 others); Tue, 30 Apr 2019 05:45:27 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:21995 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726916AbfD3JpZ (ORCPT ); Tue, 30 Apr 2019 05:45:25 -0400 X-UUID: 2192072eb8c44aa58c34d5405e3d58ff-20190430 X-UUID: 2192072eb8c44aa58c34d5405e3d58ff-20190430 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1186074969; Tue, 30 Apr 2019 17:45:20 +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; Tue, 30 Apr 2019 17:45:19 +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; Tue, 30 Apr 2019 17:45:19 +0800 From: Henry Chen To: Georgi Djakov , Rob Herring , Matthias Brugger , Viresh Kumar , Stephen Boyd CC: Nicolas Boichat , Fan Chen , James Liao , Weiyi Lu , , , , , "Henry Chen" Subject: [RFC V2 05/11] soc: mediatek: add header for mediatek SIP interface Date: Tue, 30 Apr 2019 16:50:59 +0800 Message-ID: <1556614265-12745-6-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1556614265-12745-1-git-send-email-henryc.chen@mediatek.com> References: <1556614265-12745-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