Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp118838pxb; Thu, 7 Jan 2021 23:51:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJx29vk2JZ3iWhvteWjXYRf51ZNSko4+K6VbGnyWqq/WpJ2tBIWDY4valEQKVRVi9snHn6ZI X-Received: by 2002:a17:906:3c11:: with SMTP id h17mr1850074ejg.20.1610092317689; Thu, 07 Jan 2021 23:51:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610092317; cv=none; d=google.com; s=arc-20160816; b=kfT5rfzFlY2JQtNqvZgWsnXtAXcb0kAt+zbOVgTLBcXsDQrbyZkVlFO7oW22V8bRL7 s7Lu5DHff4bVsXEw+QIv2JhS6OxEnL9lyw+eV3QXcKN6TPIc1zbQjQkxbF8PPKarEzFL B5Sxsz7RNWoIqKUbHqbV/jIJ5wlLTb0Q9N/0wK0N4zZsZLNTDi5r2t7HNv4jelqOizIB F/03lfCs4gA/7OVdpK9cJdl9y0AMXS/qfQt3bfUMZtq+Y9/z6eeGwCV22GD+X2nwi02Q lMqrH4y8poN0H571UfWULDlAumDVeCukikIStfAqRcn2azOx++a+A/K/T0XLd8Goe/go BOvw== 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=tQyN0rKIwcJh2Lg1RZ1J9ENmL9xJuCjtnILVo6Q2G0IsuHoabme9kNuo/aXCRCUARd zDEhvMWwZZ/Qo9/4ME1jVMohwV7UZQnDxgnrebiOKt/mq8m6DEEAj3LeV+8pPV2TkKLg tmErTv54jIboDD3MZBNxkoo8+++vz31sKM/Rs/VdNkppmJnaWAoh2J2UHsDDuM7mS5cm 1LR5ztTubf1PsFpW672rhTCBiq0Q0/Wut6Ii8pqt+/gLou+5NRGnzr7KKpCEIeLap3kn YcjLqbzjXvWM8JLHoXf5+/bz47UIL7ymUJJ26VqUA/V0i5pmt8Awcr8yp11b9MxQ+yhq MORA== 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 b21si3173090ejk.520.2021.01.07.23.51.34; Thu, 07 Jan 2021 23:51:57 -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 S1727816AbhAHHt3 (ORCPT + 99 others); Fri, 8 Jan 2021 02:49:29 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:45721 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725848AbhAHHt2 (ORCPT ); Fri, 8 Jan 2021 02:49:28 -0500 X-UUID: 1dad6a0ace0f4dca9560c533439814b2-20210108 X-UUID: 1dad6a0ace0f4dca9560c533439814b2-20210108 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 745784426; Fri, 08 Jan 2021 15:48:21 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 8 Jan 2021 15:48:19 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 8 Jan 2021 15:48:19 +0800 From: Henry Chen To: Georgi Djakov , Rob Herring , Matthias Brugger , Stephen Boyd , Ryan Case , Mark Brown CC: Mark Rutland , Nicolas Boichat , Fan Chen , James Liao , Arvin Wang , , , , , , Henry Chen Subject: [PATCH V7 02/13] soc: mediatek: add header for mediatek SIP interface Date: Fri, 8 Jan 2021 15:48:04 +0800 Message-ID: <1610092095-5113-3-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1610092095-5113-1-git-send-email-henryc.chen@mediatek.com> References: <1610092095-5113-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 0434C206EEC073FB41FBF94E499BCAFCB360D7D9EAC0C15ED2B3A37196C75C682000:8 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