Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4091368pxb; Tue, 26 Jan 2021 12:08:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZln4YN9nAstpTHTY2wsnfvxj3CvpL4POF1ZtlY5s7+eYCuqA1qGDZGRyAdUXprCMwfNXE X-Received: by 2002:a05:6402:1546:: with SMTP id p6mr5958409edx.66.1611691727162; Tue, 26 Jan 2021 12:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611691727; cv=none; d=google.com; s=arc-20160816; b=waHyZ6NwvVwNo9x9/Udt/t+PepmpF4JBOnROmBWX29+TCPQwZ7vq/Z2B5K46crWkfK JQIJ44qiUBCxXpL2hS8OZdGtjkoWMCpohTR1mfaXrmLOe0qv++LUhb8brPp2tBItRMHK wtRVriPVsP9txPQqIq11/FQ7BXBtEhl8/vgq45M02pS5AZLoESd55tDha6Jp0k5HSdz8 UuYWZAbA8dkILnG+0q7tAjcDHjSvE5yzWOTbx+zLjxNklbiYa2rS5+2p1MWnhQ/veA5h JZIuo0xY93NgAJdeVy+/m590niRG+ajM4MfdiBM6qOSgHeBFV3hkmW4ZkcOBnZv12qWa Xp2w== 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=Oes0tErpfIW1Qfpw7/IFaiKgKkW9++xvJQO75y7VWEpmt9oDm5U/Ea49OvdFkPFtEO P8YZ/GHmd+jZJulDY0G662ApfYJmJQgrh875Jpfu1LmnDjjbybRhQBnxbhoJKpa7edmN aYZXsqmyTCVYKfElqKChbn3d8OpBzkdTVLhJjwVZlueH07OI91oL+wR/khbhXqx6u7pQ n2GWZZXZF08XQRauU7ruSlwWEVBHjS9NF4pfzsRAgzu70tbLnB8tC15iHA/GO83mKfKP gFvp8Ml4PpfScneddA6QphwdWTBiHVzxwLJ19i9SaBodyuKdTaREYuRxVv94s1V/QuNp Ew5A== 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 v24si9045365eds.230.2021.01.26.12.08.21; Tue, 26 Jan 2021 12:08:47 -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 S2392606AbhAZRmU (ORCPT + 99 others); Tue, 26 Jan 2021 12:42:20 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:37579 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387705AbhAZIHu (ORCPT ); Tue, 26 Jan 2021 03:07:50 -0500 X-UUID: 7f2ca6a5d0bc4d3f878b750f1da5e4c8-20210126 X-UUID: 7f2ca6a5d0bc4d3f878b750f1da5e4c8-20210126 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.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 208323892; Tue, 26 Jan 2021 16:03:58 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 26 Jan 2021 16:03:55 +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, 26 Jan 2021 16:03:56 +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 V8 02/12] soc: mediatek: add header for mediatek SIP interface Date: Tue, 26 Jan 2021 16:03:44 +0800 Message-ID: <1611648234-15043-3-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1611648234-15043-1-git-send-email-henryc.chen@mediatek.com> References: <1611648234-15043-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: C825707DBDCC0055E52F38712D9450CCA1C8EE77EC4BB6AAEA650C08745EC8082000: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