From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c01::244; helo=mail-pl0-x244.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x244.google.com (mail-pl0-x244.google.com [IPv6:2607:f8b0:400e:c01::244]) (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 28131210F3759 for ; Thu, 16 Aug 2018 05:14:47 -0700 (PDT) Received: by mail-pl0-x244.google.com with SMTP id ba4-v6so2008630plb.11 for ; Thu, 16 Aug 2018 05:14:47 -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=AD1h5Bj7P6/M20rwrTxmvzaJTYUTFcdUxv+sYeaPS0vyB6GaNMkCebg75U4/UqrBAI F2zI1+a+kVDhZxCc1MGpgs6AY/54QD75rO3x+ugahoqUamas70/4pB5VEyA1KoXOniEz 2eDQEOCkZcWaGbAZymutcevG6w/ZEFHPy0gWg= 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=OqtWndKNd/vNtAa5uQwmkILCLupZVBXiTPSNS9KaZ/C/avjZ8C7P/pyPafdHmstcmk ltHja0GHi8arbJs1SxeoHQ2YvFlG1McjlsOnDa4YLQ4b5UecDWZusa85jGRCEHDzcS6m B53i/1Kf/Y8XLEcOa7mnsp9bh0CXBohGnI8Vb7raf7tH/PF7DYv0O1/v4ASbhpGbAhKp KWiceVLFraXK/bcZz+8Q5eVI4Q4VN7h3ptcseKIDvLFup9TDFMpMS8f29bsqhLoMSMx9 ayxjuV6yjNRMKW+X4rAqoH1grFfjUO2HAMOumcgiS1jqpk9MMruhKxfDJjoX53xLjNyO oWqg== X-Gm-Message-State: AOUpUlGAap+T3s5RPPJZhThsX+NO3XGIDMZzywzzBeb15LSX7iErtc/m iD6ayXocJN1HZ2qhoJwVIv/V/g== X-Google-Smtp-Source: AA+uWPyfyXoY8q2ALR2OKJpDh20bXqU59jhxbzNdyClP2gLTv6BnyfPw2AAj8mZMNcDYUL4ipE8jug== X-Received: by 2002:a17:902:b785:: with SMTP id e5-v6mr28627087pls.339.1534421686944; Thu, 16 Aug 2018 05:14:46 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id j27-v6sm46736311pfj.91.2018.08.16.05.14.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Aug 2018 05:14: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, 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: Thu, 16 Aug 2018 20:12:33 +0800 Message-Id: <20180816121239.44129-31-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180816121239.44129-1-ming.huang@linaro.org> References: <20180816121239.44129-1-ming.huang@linaro.org> Subject: [PATCH edk2-platforms v3 30/36] 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: Thu, 16 Aug 2018 12:14: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 --- 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