From patchwork Fri Aug 31 13:27:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 145634 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp785106ljw; Fri, 31 Aug 2018 06:29:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbKr5zBIqc3IvZZbugORuncJwmkRjy0lnRuvm3Qq47qw0nVWb7zpIedGw7ucQY/JCL5Qkze X-Received: by 2002:a63:5a65:: with SMTP id k37-v6mr14296850pgm.143.1535722156165; Fri, 31 Aug 2018 06:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535722156; cv=none; d=google.com; s=arc-20160816; b=KXkT/BryrWBtCJdMVL2PnmsUJj61HHXdHR7o1mqHywtJm2awl7Sa6aOyUdmGO65FJ9 VOoLswGB3APftUcfHEB7JtmieWYCLjLawucCKNYwL32xzPxiV0YUUlB1LudCfpBK3BS3 qOZnqVWB2phoEuU37fX2p2oaQGgky5ATwQiK0f59gUp7Q54LgMBu4cXEighzDquq0lZP 7ZrNkE27xEf/R1CXkxlp/1Dk5raqiwLMEnMpCxXooy7RTMa7+o3bIjIafCmXs+GP2FWq uDeTYRdJTnAzYhbq38EcNEUZlyH0fo7TfDWq6aFnaUGnY/p6N5nyHfUnRNkzTknjUexA sTAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=00l8NOAYDaAHqDZxBzH2B+IWEPqqnYz0oojn0NzakBk=; b=LN6wiZQUXM6lxomvvnX6mM0Vjy4DJShc6090DNdyQHoxY8bttkkC9dCzKbm1NasFFi Ek0OT6hQThHjMBco41UdC9lCAN2JvuOxvDqTopjdJVZAkoSji9QO4vKIP5PmvmAlPjTU dBoe7zQ6QWgKF6m4+BX6T9HnwrZBO1M0SLSjPQYifyY9Gv0JBksGZ9Uh6eb3t7cJFX9d kdbuevA8ncbHfJVY+Lkl94RBhL3CRcrpbwiCn3g9ctTGwNc8QXWPtd4MAqo5rNZkBlgM qayoFjKi8bzdDqZ32ctwFY8IHNQ703rvDz+Hx5nwAaILnU3pC0mVUq8W8sLarW+gqRAX oF9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="R/PzE4ai"; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id q67-v6si9183867pga.63.2018.08.31.06.29.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 06:29:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="R/PzE4ai"; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 18B732110BFCA; Fri, 31 Aug 2018 06:28:52 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::441; helo=mail-pf1-x441.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0EF7B2110BD60 for ; Fri, 31 Aug 2018 06:28:51 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id l9-v6so5526509pff.9 for ; Fri, 31 Aug 2018 06:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OTxkHl2npsSm4G4EJpqBUocYs0V2eNVIN7CSkoSyeOM=; b=R/PzE4aiPJOYO9RnIrnnAARMX/ZivYOfV0xmD55BdJT1TURGK6NYZqK1d7oxEe9cwR sLFv7hPkCvqYllrMe8mfeeZjKcluC60ofyaAgQ/3s84ljZyVw3J0m13yr8vBFdFDq83Q xj9uSBgBQzMX8YijWsRcI9oo6XvBXJYGt+DmI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OTxkHl2npsSm4G4EJpqBUocYs0V2eNVIN7CSkoSyeOM=; b=Bk53f25yKhzs9Ma7t1GpTzoggBAFF0WIURKZusQ9UK9A8RdE4ymNnyqgIybp68np2C +DZki05jyYWiTHR9sTYdt6x4Rr34O/Ln0qx9P4/fO2nEcroru2NYUXscHj00f6lVt3xS pt9HkbCMf+HB7CsZY/PFnmwsXml/nFws14zVoDJD6IBN9n6rDtJG9cH8n56GuKFaKTeV T67HMDVM89CzqnCXrKMGY7KgugqsG8I1cLgLVq5VgwUAoKSUxpaRSip4g/Vu6FJSqKbo 8YgvdGhPVnT8FpgHGCAa5PHEV37c1SwmwZYOyIo1U503g4Q5JQtva8IAaPvvHGZzUtPP c7yA== X-Gm-Message-State: APzg51AOqfoy2HJ6LjveMxG9wQx2ZPiv5wuIyA/VZF0IVMBTKAhzVpG5 oBee9tXlDzu1EWbpocJUoexDmw== X-Received: by 2002:a63:9a19:: with SMTP id o25-v6mr14768646pge.39.1535722130779; Fri, 31 Aug 2018 06:28:50 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id l185-v6sm19081936pga.5.2018.08.31.06.28.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 31 Aug 2018 06:28:50 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Fri, 31 Aug 2018 21:27:06 +0800 Message-Id: <20180831132710.23055-25-ming.huang@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180831132710.23055-1-ming.huang@linaro.org> References: <20180831132710.23055-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v5 24/28] Silicon/Hisilicon: Modify for disable slave core clock. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, guoheyi@huawei.com, huangdaode@hisilicon.com, zhangfeng56@huawei.com, michael.d.kinney@intel.com, lersek@redhat.com, ZhenYao , wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: ZhenYao When BIOS booting, the power consumption is too high, so need disable some clusters clock that don't work to reduce power consumption. The implementation of functions is in edk2-non-osi. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.18.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h b/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h index ec2b9a36e7..3ccfc6bee3 100644 --- a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h +++ b/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h @@ -102,5 +102,8 @@ VOID PlatformEventBroadcastConfig(VOID); UINTN GetDjtagRegBase(UINT32 NodeId); VOID LlcCleanInvalidateAsm(VOID); VOID PlatformMdioInit(VOID); +VOID DisableClusterClock(UINTN CpuClusterBase); +VOID EnableClusterClock(UINTN CpuClusterBase); +VOID DisableSocketClock (UINT8 Skt); #endif