From patchwork Fri Dec 10 17:12:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670253 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 50265C433EF for ; Fri, 10 Dec 2021 17:13:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LfIccmMJWhQAo5q67kjJJgr7jMDQdJ8ChNz8U353yCc=; b=4il0TM166eRjtB 6vuvTBBbT+TqU485+GgrE2lFWrXB9RCpCp08Rtk1jImsSg4uMy84B8Bgt/TBzoANqP2i522+6K8KS 34/UwSgy/10bjuDtfbitf6pnXYtNfPyEQEYJ67oRkiOYO78ANsxFKLiK3K9mp9lGcyLGrg9QLRWA4 LNtIZpWaZxnBhT0YtucgCkBNfj5nTmMF7p0n1csqPg+HlTdue+TEwlQ1bvE8Rula5n2nOBhaOXGfS AxaDITmriXg7l6xHlUNWN4wW24pjJnoEvSYPGzbAPmddhgknXVM8sg3BM295mEbxtG/xKVmg+silg FiCVS7F+7nQW34VgxOMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvjSm-002lPF-V0; Fri, 10 Dec 2021 17:13:40 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvjS7-002kx6-Ld; Fri, 10 Dec 2021 17:13:00 +0000 X-UUID: 15eceac4c989471c9ac44d51a03d2749-20211210 X-UUID: 15eceac4c989471c9ac44d51a03d2749-20211210 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 886536119; Fri, 10 Dec 2021 10:12:55 -0700 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:12:53 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Dec 2021 01:12:45 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:12:44 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen CC: , , , Flora Fu Subject: [PATCH] soc: mediatek: Add command for APU SMC call Date: Sat, 11 Dec 2021 01:12:43 +0800 Message-ID: <20211210171243.30212-1-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_091259_761452_023D326F X-CRM114-Status: UNSURE ( 8.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add command for APU SMC call. The APU microprocess's start and stop sequence will process in ATF. In some SOCs, such as mt8195, it also requires clock and pll controller through SMC call. Signed-off-by: Flora Fu --- include/linux/soc/mediatek/mtk_sip_svc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/soc/mediatek/mtk_sip_svc.h b/include/linux/soc/mediatek/mtk_sip_svc.h index 082398e0cfb1..b0c19593f40d 100644 --- a/include/linux/soc/mediatek/mtk_sip_svc.h +++ b/include/linux/soc/mediatek/mtk_sip_svc.h @@ -22,4 +22,7 @@ ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, MTK_SIP_SMC_CONVENTION, \ ARM_SMCCC_OWNER_SIP, fn_id) +/* APUSYS SMC call */ +#define MTK_SIP_APUSYS_CONTROL MTK_SIP_SMC_CMD(0x51E) + #endif