intel/i945: Another magic number
Replace it with the existing #define Change-Id: I6e67ed1a455cd4f9eeed1865b9ef981e7ef0a874 Found-by: Idwer Vollering Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/6992 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Idwer Vollering <vidwer@gmail.com>
This commit is contained in:
parent
a341a77177
commit
3cb86de474
|
@ -757,7 +757,7 @@ static void i945_setup_pci_express_x16(void)
|
|||
/* Set voltage specific parameters */
|
||||
reg32 = pci_read_config32(PCI_DEV(0, 0x01, 0), 0xe80);
|
||||
reg32 &= (0xf << 4); /* Default case 1.05V */
|
||||
if ((MCHBAR32(0xe08) & (1 << 20)) == 0) { /* 1.50V */
|
||||
if ((MCHBAR32(DFT_STRAP1) & (1 << 20)) == 0) { /* 1.50V */
|
||||
reg32 |= (7 << 4);
|
||||
}
|
||||
pci_write_config32(PCI_DEV(0, 0x01, 0), 0xe80, reg32);
|
||||
|
|
Loading…
Reference in New Issue