Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp936476pxb; Wed, 3 Mar 2021 21:43:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwriF3of758q7azRqVZstAsY7aHauyF+DpwPJHu/gBgKs0YjL9458/QXj3RUmjLRsNZKKEm X-Received: by 2002:a17:906:8904:: with SMTP id fr4mr2486634ejc.136.1614836623417; Wed, 03 Mar 2021 21:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614836623; cv=none; d=google.com; s=arc-20160816; b=ASMDWN04Q0MDghIwg7XilvPONSUUDk+V/0Hx94M+yD5r3mTq1PKHs/Ye0C92fwbu4D QT5WV2vb6Lg6mRGnRwY1ybjU5pxZIthdZrLOyJPDseusc7Rd5/QexR0xzrnFN6dPSWNa 7d8KXcy6vSFcaRvoa/QCNP/uApkW52e2sBMQpKs0EgP06o2Cno4SRo7RBYLrZCX8P+F8 T8rB1eElKGO5AKfTcc7Kr+lmflnyu/reLu+9PYYb0A+vuw390LVvukzi+UBtv1KIIGdq 3NYHwXwCUpV9y4fLBKRddKHyIi16Bc1V4HwkAUqf8WtFzBGl3yjD6APTCr94rUOFGvks hWQA== 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; bh=shbLnN4T9SR9AdLnyMhOjAjsj/qGn7Fncs7J41jzKhQ=; b=rwU0SpD1ZHDie4n2mStUmoaNMDP3nobT9h0MnE1rIJzvFgxiNV5PeDCeFnYEpPE6sR dmTkdv8OlfZR5qflAcSC7Uhc9NhdirX+OVfrqXNLENor94gKaBhwZBaANuUtrm9DjV5Q FA6bGyfHWS3NX+K6bZEQAMKyFgtunkRXQ5SO5kIUCmlxRAg+gzV5jb2o+DQft//054ul iFstYGcnT8VogpqRbMUTTY2L+rxoHdx8OksX34435KTQC2crKCEhBrDmmgc4muhRXhGk 1ff+MzeivKADiS++bvc43IY42LZkEAugtmvyDh57OmE2AJ+b8xkhQwihk6FLt1ix6atJ z02A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n13si970322ejs.39.2021.03.03.21.43.21; Wed, 03 Mar 2021 21:43:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1576983AbhCBFfX (ORCPT + 99 others); Tue, 2 Mar 2021 00:35:23 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40860 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1574550AbhCBDrs (ORCPT ); Mon, 1 Mar 2021 22:47:48 -0500 X-UUID: c5d5a35a05be4214b41375b702fd77cc-20210302 X-UUID: c5d5a35a05be4214b41375b702fd77cc-20210302 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 425737218; Tue, 02 Mar 2021 11:47:45 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 2 Mar 2021 11:47:44 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 2 Mar 2021 11:47:44 +0800 From: Henry Chen To: Georgi Djakov , Rob Herring , Matthias Brugger , Stephen Boyd , Ryan Case CC: Mark Rutland , Nicolas Boichat , Fan Chen , James Liao , Arvin Wang , , , , , , Henry Chen Subject: [PATCH V9 02/12] soc: mediatek: add header for mediatek SIP interface Date: Tue, 2 Mar 2021 11:47:33 +0800 Message-ID: <1614656863-8530-3-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1614656863-8530-1-git-send-email-henryc.chen@mediatek.com> References: <1614656863-8530-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N 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 Signed-off-by: Arvin Wang --- include/linux/soc/mediatek/mtk_sip_svc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/soc/mediatek/mtk_sip_svc.h b/include/linux/soc/mediatek/mtk_sip_svc.h index 082398e..079bbcb 100644 --- a/include/linux/soc/mediatek/mtk_sip_svc.h +++ b/include/linux/soc/mediatek/mtk_sip_svc.h @@ -22,4 +22,8 @@ ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, MTK_SIP_SMC_CONVENTION, \ ARM_SMCCC_OWNER_SIP, fn_id) +/* VCOREFS */ +#define MTK_SIP_VCOREFS_CONTROL \ + MTK_SIP_SMC_CMD(0x506) + #endif -- 1.9.1