diff mbox series

[edk2,edk2-platforms,v2,37/43] Silicon/Hisilicon/D06: Modify for close slave core clock.

Message ID 20180814080903.50466-38-ming.huang@linaro.org
State Superseded
Headers show
Series Upload for D06 platform | expand

Commit Message

Ming Huang Aug. 14, 2018, 8:08 a.m. UTC
From: ZhenYao <yaozhen6@huawei.com>


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: ZhenYao <yaozhen6@huawei.com>

---
 Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.17.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Leif Lindholm Aug. 22, 2018, 3:44 p.m. UTC | #1
On Tue, Aug 14, 2018 at 04:08:57PM +0800, Ming Huang wrote:
> From: ZhenYao <yaozhen6@huawei.com>

> 

> 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: ZhenYao <yaozhen6@huawei.com>


This patch is not in Silicon/Hisilicon/D06. Fix the subject please.

> ---

>  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.17.0

> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

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