From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::542; helo=mail-pg1-x542.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (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 2B7C121106A1F for ; Thu, 23 Aug 2018 09:10:20 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id u10-v6so1104081pgr.1 for ; Thu, 23 Aug 2018 09:10:20 -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=G5k4tQJotodD9WF/TN5aKrhURgU0qmwvhSjuUDawQcw=; b=ZhOCrsPSJYAjQDjvCxVbX9hO/cx5Yn0pzHUVOnMeEh6zYoTO5/kj81Pw0EkRowxEhK GWYehLNHkOtKMEiRpIjRcDl4G8kpenoYeqtBF0IE5hPZTykZvT6TCr0psgwJOTvZKRjv JtT2jhRVs5qR+jE5J+YBuZyHyAGgkiPLiG0SY= 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=G5k4tQJotodD9WF/TN5aKrhURgU0qmwvhSjuUDawQcw=; b=m/apijb7jCewVq812mX/0Zr/Pi+uqjqtH6W6UiAYJcogOSHuuoKzyrU/hSKFGqE393 YRQibFiJFTO9yWOmXXAozpsf392ZKtVHecVFOwMqeeiqmJtVAOOTK85XMW9A5x9cGv2c Nse3QtOhLbDH84BfEASsacNte3sul7ZAWAnHc9uOwGDcnvhWTMiRaxg7dCLdVLL4Esve llLAmtgzcJnuz+CxxWHjpuOeLBdgbzyg7jZOWW2hGvQDzeKgfWbRTa1S5A+7eheCD9tB cFSbFs2PZP3WDL48Q2q7tFWm8yR6KkxIveUZqOMz6LwbmTKVZ60mqVovRk+fVdunTQXp 2AHg== X-Gm-Message-State: AOUpUlE6DJU1PrxHQp9f/k5y8m/OSFCj2sXoizIacgPe5qoGR4yc8EA2 NzaaQ0/0DaZE+k8wUy+uhk+ZrA== X-Google-Smtp-Source: AA+uWPxesWsPMjeG7gleKbHm7QjUsY0akg27dU8FVRngNhlAOf9xhc7urb2aLv4GTs8KSB3macfuqg== X-Received: by 2002:a17:902:7b96:: with SMTP id w22-v6mr58488593pll.24.1535040619945; Thu, 23 Aug 2018 09:10:19 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id d19-v6sm5788083pgv.61.2018.08.23.09.10.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Aug 2018 09:10:19 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Cc: ard.biesheuvel@linaro.org, michael.d.kinney@intel.com, lersek@redhat.com, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, xinliang.liu@linaro.org, ZhenYao , Ming Huang Date: Fri, 24 Aug 2018 00:07:38 +0800 Message-Id: <20180823160743.45638-27-ming.huang@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180823160743.45638-1-ming.huang@linaro.org> References: <20180823160743.45638-1-ming.huang@linaro.org> Subject: [PATCH edk2-platforms v4 26/31] Silicon/Hisilicon: Modify for close 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: , X-List-Received-Date: Thu, 23 Aug 2018 16:10:20 -0000 From: ZhenYao When BIOS booting, the power consumption is too high, so need close 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(+) 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 -- 2.18.0