Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp792909ybl; Wed, 28 Aug 2019 05:30:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzit6pDLpPiAo/5MVQJbkAYKoADgF5rYugxRVDPpQ0KVhvBFvuKGeQqTVobtMW9iekWbv6K X-Received: by 2002:a17:902:4d45:: with SMTP id o5mr4156528plh.146.1566995454334; Wed, 28 Aug 2019 05:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566995454; cv=none; d=google.com; s=arc-20160816; b=OvvPzJ7AtofpKoiYiXfB5g7mgPO1VJwT1itulvTGKsEsdxOvzV+eyXrdlCB0WvZdhQ xccu8Q6PVK3nX5VtGNYoJpPLvAxN/cVek2dDPoZVWz6+T0kDp37uTD1Lxr1IDeEGT37t X6qJUlRGDN2K76yWrQmFJYB2Zu2ADAp1a+CnTSVUk2oFpSVP9EQginNfaef8IqV6dpxA sg9S/ewRZSb1ppWg08CDGPj8DaWvhwoRCLzeSVZL+d5882NawZMzhhIuvDfHG2RaSygu ke6CeTa6TNrmrBpUoCT/bxaSnk5u0jpqfiLoWfywI0fYoWtG4JFB5g7JyyUhyD9MPaz9 Yuxg== 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=RCBYJwacHJ2UK1KEUwpoHMn2z3sLi1Yr4SmsyJ18WEw=; b=pM07dq2WdOt8YE7U0DNX55MHRCrKeFbqGIWVeZniYyaFIZgAJsTQdHzMOK0ryNWQCs IpFpI0A0L38Y9JEV0OFn7JZaKpUjZrGJtvJF9zFnJkMwB40A/Zcu3Jl4PtgRMZsIHOxn dZkJ4ZGa6w6cSOIHvoD9PTQvxNgh/pFnHMNA0KujBact9DX/Hy3h8TgZY+hu1jYRosxN W2jhOtrwWl/Ue49TYxSyXnYGKfU6dQPWJCmlh1aRmrEtg9HorAPs0oOFS4JSy8InUh41 +yd19KUPbZl508+ixB3+AcqQsIsJORWKUWYu03sufMa4iYV1i0qAFTUAauPYBuzKYB5+ 9CdA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay20si1798785pjb.11.2019.08.28.05.30.37; Wed, 28 Aug 2019 05:30:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726617AbfH1M33 (ORCPT + 99 others); Wed, 28 Aug 2019 08:29:29 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:46449 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726520AbfH1M3C (ORCPT ); Wed, 28 Aug 2019 08:29:02 -0400 X-UUID: d0d7ef62744c4edd91657e0ceda02c96-20190828 X-UUID: d0d7ef62744c4edd91657e0ceda02c96-20190828 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 919707334; Wed, 28 Aug 2019 20:28:52 +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, 28 Aug 2019 20:28:59 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 28 Aug 2019 20:28:59 +0800 From: Henry Chen To: Georgi Djakov , Rob Herring , Matthias Brugger , Viresh Kumar , Stephen Boyd , Ryan Case CC: Nicolas Boichat , Fan Chen , James Liao , Weiyi Lu , , , , , Henry Chen Subject: [PATCH V3 05/10] soc: mediatek: add header for mediatek SIP interface Date: Wed, 28 Aug 2019 20:28:43 +0800 Message-ID: <1566995328-15158-6-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1566995328-15158-1-git-send-email-henryc.chen@mediatek.com> References: <1566995328-15158-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..945fc72 --- /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 (0x82000506 | MTK_SIP_SMC_AARCH_BIT) +#define MTK_SIP_SPM_DVFSRC_INIT 0x00 + +#endif -- 1.9.1