From patchwork Thu Aug 23 16:07:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144965 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp315792ljw; Thu, 23 Aug 2018 09:10:37 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzjqkcKTzraImEkirZXLtKW4Oc1K882lEKk8CS85EepVVj9EJ4yJbNROXqNtxYXy6w/N30Q X-Received: by 2002:a63:2043:: with SMTP id r3-v6mr57183109pgm.105.1535040637229; Thu, 23 Aug 2018 09:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535040637; cv=none; d=google.com; s=arc-20160816; b=ZW1Mzx9zD5GqM2/Gp4kGohbdMU7RJNyAr0vvuLHTTN7/71eUnnr69hYrEpIuAyQJTn m4+JD6ivStuaALI62r0Ze4in/jhaqxgzZg5miruZz5e5wbOUJ28jpUTCZfDcvThMuS+6 Zx4Xe2ppkJOqBBhP8o8Ea+vvuGEu9SnpoRewTPYs27AIJ5nbUtU1z/CtFmHTnjCaxOE7 8D3oq1Imhqb5WYVG66eYrBSeFQkK0D1CEwLKs+kFF+ebyJsmydx8pvwg2ZW8+HWBN27G AsnF8j7XAxWgxELRqBnzn3m9d06Ng6bU0gEJaYzrya4C1uvjIOP/b1a61QtAugOq8xjm ZfDQ== 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=wOi2zQfcFjaEk0XiqoIVMmPhQkSRr+PaC064QwGt9tA=; b=Wz8dUcCx9bosqxRdRy7oZhU4DQA7I/dGOmEXDBmGp0YmVC1ixWYKv9QrLFdTdId9jd A8TQPbM+PdslyGcnc8HFGz579n47bDRvbr9JwbUH+n7BZz8WU1hoOJs9tqt4oxER3Dbt HLGUcEs8s4XcFZI7EEX8TMQhe7DMbtRn+aM1DRycZbrDOGkGikb2/WBqSNR+N53Sfhfv Ezt3MH2KU4p9xmRBlu0jEvNGUO6t1wOGc5jx3eBvqHKc2WlAlhoBI1Xdp4+jtdd7UpOT 5mhFMlrec3FOK5yQgltMN+C/xgOIwyjPR0xlsctHUktMi72sQd/bto0izW8xP6mwDzV6 7G1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZhOCrsPS; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id y6-v6si5076351pfy.140.2018.08.23.09.10.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 09:10:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZhOCrsPS; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 07DEB21106A1F; Thu, 23 Aug 2018 09:10:21 -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::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-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 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: [edk2] [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: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, guoheyi@huawei.com, huangdaode@hisilicon.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 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(+) -- 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