summaryrefslogtreecommitdiffstats
path: root/src/mainboard/lenovo/t520/mainboard.c
diff options
context:
space:
mode:
authorNicolas Reinecke <nr@das-labor.org>2014-08-22 15:10:49 +0200
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-08-23 05:33:01 +0200
commit6d790f730500ce6a79aeb9e4d57b0ea4c9e9ee69 (patch)
treedfb208b1754553122bfd50528f5d944509031945 /src/mainboard/lenovo/t520/mainboard.c
parentd2da65e3abd93840c81fbc30c6488b625baf359b (diff)
downloadcoreboot-6d790f730500ce6a79aeb9e4d57b0ea4c9e9ee69.tar.gz
coreboot-6d790f730500ce6a79aeb9e4d57b0ea4c9e9ee69.tar.bz2
coreboot-6d790f730500ce6a79aeb9e4d57b0ea4c9e9ee69.zip
lenovo/t520: Fix ExpressCard hotplug
Thinkpad T520 ExpressCard Slot PCIe lanes are connected to port 4. Tested with Serial Port Card. Information read from schematic / lspci Change-Id: I459943d427578d135f9aed1aa66da269ddfeee87 Signed-off-by: Nicolas Reinecke <nr@das-labor.org> Reviewed-on: http://review.coreboot.org/6735 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/mainboard/lenovo/t520/mainboard.c')
-rw-r--r--src/mainboard/lenovo/t520/mainboard.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mainboard/lenovo/t520/mainboard.c b/src/mainboard/lenovo/t520/mainboard.c
index c37e6b981fb3..8b1aa0d02a52 100644
--- a/src/mainboard/lenovo/t520/mainboard.c
+++ b/src/mainboard/lenovo/t520/mainboard.c
@@ -158,12 +158,11 @@ static void mainboard_init(device_t dev)
pc_keyboard_init();
/* Enable expresscard hotplug events. */
- pci_write_config32(dev_find_slot(0, PCI_DEVFN(0x1c, 2)),
+ pci_write_config32(dev_find_slot(0, PCI_DEVFN(0x1c, 3)),
0xd8,
- pci_read_config32(dev_find_slot(0, PCI_DEVFN(0x1c, 2)), 0xd8)
+ pci_read_config32(dev_find_slot(0, PCI_DEVFN(0x1c, 3)), 0xd8)
| (1 << 30));
-
- pci_write_config16(dev_find_slot(0, PCI_DEVFN(0x1c, 2)),
+ pci_write_config16(dev_find_slot(0, PCI_DEVFN(0x1c, 3)),
0x42, 0x142);
}