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::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-Google-Smtp-Source: AAOMgpfhF8a90THjWZgYkVOXlDwKfqPHFpkzBKs2qi0THr/ycMX8VZ7+i77Pd11glkyuEqMNg85jcg== 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 Cc: ard.biesheuvel@linaro.org, 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 , Heyi Guo 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: [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: , X-List-Received-Date: Tue, 24 Jul 2018 07:23:47 -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 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- 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..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 -- 2.17.0