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 <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/17688
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Reto Buerki <reet@codelabs.ch>
This commit is contained in:
Nico Huber
2016-09-08 17:24:52 +02:00
committed by Nico Huber
parent 88a7f17b7d
commit 43cf8d5b12

View File

@@ -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;