[coreboot-gerrit] Change in libgfxinit[master]: gma skylake power/clocks: Refactor to allow proof without inlining

Nico Huber (Code Review) gerrit at coreboot.org
Mon Jun 4 22:48:16 CEST 2018


Nico Huber has uploaded this change for review. ( https://review.coreboot.org/26847


Change subject: gma skylake power/clocks: Refactor to allow proof without inlining
......................................................................

gma skylake power/clocks: Refactor to allow proof without inlining

Change-Id: Ie660c69377d8624a3a6662c6ccb7b5e4efcd4629
Signed-off-by: Nico Huber <nico.huber at secunet.com>
---
M common/skylake/hw-gfx-gma-power_and_clocks_skylake.adb
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/47/26847/1

diff --git a/common/skylake/hw-gfx-gma-power_and_clocks_skylake.adb b/common/skylake/hw-gfx-gma-power_and_clocks_skylake.adb
index ea84992..c6eb2cf 100644
--- a/common/skylake/hw-gfx-gma-power_and_clocks_skylake.adb
+++ b/common/skylake/hw-gfx-gma-power_and_clocks_skylake.adb
@@ -89,11 +89,11 @@
    GT_MAILBOX_READY                    : constant := 1 * 2 ** 31;
 
    function CDCLK_CTL_CD_FREQ_DECIMAL
-     (Freq        : Positive;
+     (Freq        : Pos16;
       Plus_Half   : Boolean)
       return Word32 is
    begin
-      return Word32 (2 * (Freq - 1)) or (if Plus_Half then 1 else 0);
+      return Word32 (2 * (Pos32 (Freq) - 1)) or (if Plus_Half then 1 else 0);
    end CDCLK_CTL_CD_FREQ_DECIMAL;
 
    ----------------------------------------------------------------------------

-- 
To view, visit https://review.coreboot.org/26847
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie660c69377d8624a3a6662c6ccb7b5e4efcd4629
Gerrit-Change-Number: 26847
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180604/6b3f80aa/attachment-0001.html>


More information about the coreboot-gerrit mailing list