mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-17 18:41:22 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user