rs780: use bitwise rather than boolean not
Change-Id: Ie3872c57990f9784aafda14f8c7fc842b3a65260 Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net> Reviewed-on: http://review.coreboot.org/518 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-by: Marc Jones <marcj303@gmail.com>
This commit is contained in:
parent
0786bc6ad8
commit
f3fe3d2140
|
@ -72,7 +72,7 @@ static void PciePowerOffGppPorts(device_t nb_dev, device_t dev, u32 port)
|
|||
state = ~state;
|
||||
state &= (1 << 4) + (1 << 5) + (1 << 6) + (1 << 7);
|
||||
state_save = state << 17;
|
||||
state &= !(AtiPcieCfg.PortHp);
|
||||
state &= ~(AtiPcieCfg.PortHp);
|
||||
reg = nbmisc_read_index(nb_dev, 0x0c);
|
||||
reg |= state;
|
||||
nbmisc_write_index(nb_dev, 0x0c, reg);
|
||||
|
|
Loading…
Reference in New Issue