HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44830 )
Change subject: mb/izmosphere/gizmo/mainboard.c: Use 'PCI_*' macros instead of magic number ......................................................................
mb/izmosphere/gizmo/mainboard.c: Use 'PCI_*' macros instead of magic number
Change-Id: If5b37b11ceccc797c0c84b0ae88e6df53fd356a2 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/mainboard/gizmosphere/gizmo/mainboard.c 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/30/44830/1
diff --git a/src/mainboard/gizmosphere/gizmo/mainboard.c b/src/mainboard/gizmosphere/gizmo/mainboard.c index f24c9e9..c53604e 100644 --- a/src/mainboard/gizmosphere/gizmo/mainboard.c +++ b/src/mainboard/gizmosphere/gizmo/mainboard.c @@ -5,6 +5,7 @@ #include <console/console.h> #include <delay.h> #include <device/device.h> +#include <device/pci_def.h> #include <device/pci_ops.h>
/********************************************** @@ -36,7 +37,7 @@ u8 *memptr;
ahci_dev = pcidev_on_root(0x11, 0); - ABAR = pci_read_config32(ahci_dev, 0x24); + ABAR = pci_read_config32(ahci_dev, PCI_BASE_ADDRESS_5); ABAR &= 0xFFFFFC00; memptr = (u8 *)(ABAR + 0x100 + 0x80 + 0x2C); /* we're on the 2nd port */ *memptr = 0x21; /* force to GEN2 and start re-negotiate */