From patchwork Tue Aug 14 08:08:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144145 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4050788ljj; Tue, 14 Aug 2018 01:12:39 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw9RdfyEvNgTeRhPde7LlCiHC7OcMxUm7quyAuxKJbs7yBFP6rx0AoLqBNW0pQHca7eBNW3 X-Received: by 2002:a62:201b:: with SMTP id g27-v6mr22352106pfg.253.1534234359621; Tue, 14 Aug 2018 01:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534234359; cv=none; d=google.com; s=arc-20160816; b=up+zFC2BqiaPzxX0DCy/e2mKQsFgnKC4wzYAij+O54zWM8+sw7FXe8CVV+u1MEFq1u /GkGLXQe1XlRnTt5hA01sfelfmBBN+X/mIuciNh0+nCw3JyF/cOjsAulEI/6JsDJjWoL wZYJ34kDnMnx4NtglmSlwEOkqBPTIcldtZ54ykVW4U86zOGbVlQ3nXZOsQUVEDIUIM+o UFVzAixQM5CRMR5Cq+8NXIwiGwg1Chc28vUgp3QYIc1cXeEltTCK4GspUb8IJO4KO7lB yDjbWSoAPRxBRbi8DYWoiYt2chuL+Cg4dgO38oOXFjwVdnYw2yLxUmhOC8RRyByiUnyg K7hA== 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=8M55GrmRmCxgt/mRsLMbx0BNr8JrKZS1bMd8oRyt5rE=; b=H2SZlnzcqlVWbPOF2+uIcT9T7++C8cndxIz1Eho47h2Ssi7TReQZNkSKBIkMR0JVGF CKC40FUyHCHlOYIZc1VJegMia1AJNzeSTvpH7I+hOdkGjqzXHCIV03+Ri8ko4dFeyotG v8QceZBRE6+JuZAD19z1wMbx1MkRqa6D/cDYoyKQr5MLviBvxXAoxPaV6lRrjxXeVBjy 90mhfSmd9OBSnJZs8LaIKx8JZgbnki0/uHfcr2q28lvL6WEz3Jv0AYm5aFjVGHXuXpbC iufTM0o1fMiFR0H8hsjtJ4k5w4M9X+5fbF3LrhgN5z5hg7yxej8YisyhhZEaOCVymEtJ SmbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TkFcfQ5j; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id 6-v6si21565657pfk.287.2018.08.14.01.12.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 01:12:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TkFcfQ5j; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 C2CE9210F2037; Tue, 14 Aug 2018 01:11:35 -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::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-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 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: [edk2] [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: , 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: ZhenYao --- 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..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