From 43cf8d5b120bda9a3ecbec5dd4cfa479818d32b6 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Thu, 8 Sep 2016 17:24:52 +0200 Subject: [PATCH] gma haswell: Turn comment into sane code Registers.Wait_Unset_Mask() has a timeout parameter for some time now. Change-Id: Ib35952c490b2d5d607d5d00db52411d5dc449d8e Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/17688 Tested-by: Nico Huber Reviewed-by: Reto Buerki --- .../haswell_shared/hw-gfx-gma-power_and_clocks_haswell.adb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/haswell_shared/hw-gfx-gma-power_and_clocks_haswell.adb b/common/haswell_shared/hw-gfx-gma-power_and_clocks_haswell.adb index 555a9b7da8..e83efa90ca 100644 --- a/common/haswell_shared/hw-gfx-gma-power_and_clocks_haswell.adb +++ b/common/haswell_shared/hw-gfx-gma-power_and_clocks_haswell.adb @@ -111,8 +111,10 @@ package body HW.GFX.GMA.Power_And_Clocks_Haswell is if Enabled then if Config.Has_IPS_CTL_Mailbox then GT_Mailbox_Write (DISPLAY_IPS_CONTROL, 0); - -- May take up to 42ms. - Registers.Wait_Unset_Mask (Registers.IPS_CTL, IPS_CTL_ENABLE); + Registers.Wait_Unset_Mask + (Register => Registers.IPS_CTL, + Mask => IPS_CTL_ENABLE, + TOut_MS => 42); else Registers.Unset_Mask (Registers.IPS_CTL, IPS_CTL_ENABLE); end if;