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>
This commit is contained in:
committed by
Edward O'Callaghan
parent
d2da65e3ab
commit
6d790f7305
@@ -23,7 +23,7 @@
|
|||||||
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.LCD0.INCB
|
#define BRIGHTNESS_UP \_SB.PCI0.GFX0.LCD0.INCB
|
||||||
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.LCD0.DECB
|
#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.LCD0.DECB
|
||||||
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
|
||||||
#define RP03_IS_EXPRESSCARD 1
|
#define RP04_IS_EXPRESSCARD 1
|
||||||
#define HAVE_LCD_SCREEN 1
|
#define HAVE_LCD_SCREEN 1
|
||||||
|
|
||||||
DefinitionBlock(
|
DefinitionBlock(
|
||||||
|
@@ -158,12 +158,11 @@ static void mainboard_init(device_t dev)
|
|||||||
pc_keyboard_init();
|
pc_keyboard_init();
|
||||||
|
|
||||||
/* Enable expresscard hotplug events. */
|
/* 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,
|
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));
|
| (1 << 30));
|
||||||
|
pci_write_config16(dev_find_slot(0, PCI_DEVFN(0x1c, 3)),
|
||||||
pci_write_config16(dev_find_slot(0, PCI_DEVFN(0x1c, 2)),
|
|
||||||
0x42, 0x142);
|
0x42, 0x142);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user