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::544; helo=mail-pg1-x544.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (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 9BB73210F16AF for ; Tue, 14 Aug 2018 01:11:33 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id x5-v6so8785467pgp.7 for ; Tue, 14 Aug 2018 01:11:33 -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=Dzc+SZzNR/WWm8RflpbF6XkgRxn90ZLL8jbBIAtxuIk=; b=TkFcfQ5j0WfV31ghwykWS7dPvJ97p0neI7fJPecPIOGzj0En5dFDafvreLNmHBZJax mOUSAeGHaZR3XblFEf0oLIORyq4yRzyjxYrpSh9f6+1YEjW18Bp6FNahWcho+EMr00jN +XhWxAUPvz7SRzJolohG/FGiEyVjB6cwC9/X4= 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=Dzc+SZzNR/WWm8RflpbF6XkgRxn90ZLL8jbBIAtxuIk=; b=gLA9C0ZDj+39WLcklh87ysSiBn21O/59KrIyDRQLVRfQLPfYqQfqkr1mfi2bXAuR+c Ox/ddoC8RCM1Qn9zx3dHr8VJAfzJPiNDbw3FFbJhD0GHVweBavufiOrp6I1+EXv5qPnw soha11ZjYJlPU063BmVjM+7MstzPJzwqNBOmdsYXTfXk5GGttSDlPtrnEATjTZSmhxJz yN4tReitjRPxstFRghuYzZoYm/HGPquP+xaKSy1cb78J7rTHNwnE4TGEcKpbPDC6oj3X R9d4yjuOUurY5TKXWzH1ec+KZ+jjNoHJlFqYPPMiNKKUVHhXUnm2ccIt+w7v+wGm7EVj XuUg== X-Gm-Message-State: AOUpUlExMsC/A8WoHAZbFHj7IEti9WXfayFf28zG4s5HcqKYTr7CQZRi 1NNvUdIS+iUFoqmz/e6zG4EJRw== X-Google-Smtp-Source: AA+uWPxMGfZp898RAyd+w7CVWArIoeE7Drhap4kH0Z50j6pdKGF1woZnYPvRgh6sAImP8QrDXtMKuw== X-Received: by 2002:a65:4587:: with SMTP id o7-v6mr20402407pgq.317.1534234293362; Tue, 14 Aug 2018 01:11:33 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id h130-v6sm72905670pgc.88.2018.08.14.01.11.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Aug 2018 01:11:32 -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 Date: Tue, 14 Aug 2018 16:08:57 +0800 Message-Id: <20180814080903.50466-38-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180814080903.50466-1-ming.huang@linaro.org> References: <20180814080903.50466-1-ming.huang@linaro.org> Subject: [PATCH edk2-platforms v2 37/43] Silicon/Hisilicon/D06: Modify for close slave core clock. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2018 08:11:33 -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: ZhenYao --- 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