From patchwork Tue Jul 24 07:09:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 142735 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp6940696ljj; Tue, 24 Jul 2018 00:23:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe2tFxM12n4GTd4icXzvaRoz5pYP+GpwGR8aoIbxS58vMFGUJ8sSD5MYk3baPdlwPxy9MwN X-Received: by 2002:a63:524e:: with SMTP id s14-v6mr15483075pgl.35.1532417028677; Tue, 24 Jul 2018 00:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532417028; cv=none; d=google.com; s=arc-20160816; b=WtGuUke30tCl1RusfxW3L3YwVE8VXOMXfSctV6FsEgPrTTkiVGq40ZsoC7R4Yz6Ows RHMqu7dNTW6ZM9KX5QAfDbvDVsxAEHPUs0qhPT4NJb2Dz7xaxle6QPIecKC9Dqv9vR4y QBfsCmgzu5QCnuLgwG26EVqjwykO9NrMa7C0bNTA6VXijmDMV7bBqwAaiO/CGzZ208k7 qSfl2fDnThVYaRysm1eU/NaktDf939O7nF4Oe+7N1btrVhhSsLximlYqJEneeOIZhRs8 n7Zopw9vMSYMmKDf/puaRYm7Fmv8JbYLa66picYxpLL1pScKrwrv0QhYetdJHPziwZja e0og== 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=oBZ/922l71+2/nK+rLJ/eq0o3Fvv/D+51pBTgrp0rzs=; b=iE+tdWKaguRpUYme8TdNG8CW4EcesGV1hyp2IXg+3YVw0sk/tyhBx0ymZ4JsOkY5Sl 0bBcYwU+uGTkoBrEQuCfkfWigXXwDVZ3uTreP3X+mycMp6mItzPFyOafdmiH5XN3g5VF KoKpmRD8jBv553kGWfsNrKuE3+8OrbN2RsjncvnFDLP4V70JnjQpPET9x+a/6s9yYURR IKlbF8J9OMToLjsWSz7a+Bo2dzLXdq2Nf46auR4zI+3YF6+RxByr79h4Lb3OhdsCx2E/ SGvHx24bkN95eaDs9dDNHcLfQWObI7/53rYOkDBLnLLKZCv88aalGxZ/lyf3JVV2Boqp eZsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dWBBdP5w; 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 63-v6si9979207plb.509.2018.07.24.00.23.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jul 2018 00:23:48 -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=dWBBdP5w; 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 502AF210C1B61; Tue, 24 Jul 2018 00:23:48 -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 E0F0D210C125C for ; Tue, 24 Jul 2018 00:23:46 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id b17-v6so640727pfi.0 for ; Tue, 24 Jul 2018 00:23:46 -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=sMnBZfBDr38QXaCF3ATr6PHcB5ZicR7ewyHhLtaI1e0=; b=dWBBdP5wkmHrbYlThToaIOx7ZFe3aw6m9ro2JWyfBhX8PvHfR87L4RuuQQpN7u1kY6 N3pjrS650qrGdenUDHGQg1eBwCOshIQzPAXUum/SbzwdP0ZGvhcycP8QERVziWhu1UG0 Vs5NxJ1zU9htsunJtJlKTCKqyTuuaDxXehcI0= 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=sMnBZfBDr38QXaCF3ATr6PHcB5ZicR7ewyHhLtaI1e0=; b=DhgPny+4me+5KnxmJcc+XbEuM+IZmt7ds2Nkg0e8QdhMkLQXvdGP1/RhEzPAEn76NJ uj3MC+yMfoCRJ/g3LdU0tXRfaWtURwvDUfJ5NULiVEHwF/yA0qtnekemv4lMCdCIUqjq couvA5sZ3rk6jDV2vs4wK1q8nD9t4hcK9DxzKk0kFh46lxqEqplsSb+QrthpQxHi7/Af 1zVAE4/UHOvHNiXM7xfOoD5iQTt0DYU6mCVgzOdMOujZhiG/Ivl78dMfhJfn3TjN65uk n/VldK+pKaua4+rAHgSTXOHExkBmytYAYpQyH1IHZ5s2axFaSHZ9UPTVlDuITJkWRT+8 IY3Q== X-Gm-Message-State: AOUpUlFwu45YobDU+0xEio6rj8PS0ziYwPtDxLA2aGgnSHzxhOIUWUHV GmI4hI1j0kvKsaxEXfbRXez5Kg== X-Received: by 2002:a63:2359:: with SMTP id u25-v6mr15326972pgm.220.1532417026671; Tue, 24 Jul 2018 00:23:46 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id t14-v6sm11449788pgu.0.2018.07.24.00.23.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Jul 2018 00:23:46 -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: Tue, 24 Jul 2018 15:09:17 +0800 Message-Id: <20180724070922.63362-34-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180724070922.63362-1-ming.huang@linaro.org> References: <20180724070922.63362-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v1 33/38] 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: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, guoheyi@huawei.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: ZhenYao Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- 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 diff --git a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h b/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h index ec2b9a36e7..cc60e213de 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 CloseClusterClock(UINTN CpuClusterBase); +VOID EnableClusterClock(UINTN CpuClusterBase); +VOID CloseSktClock (UINT8 Skt); #endif