T60: enable Ultrabay if device is plugged in
Signed-off-by: Sven Schnelle <svens@stackframe.org> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6547 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
bf9e9309c0
commit
edabf54da9
|
@ -180,7 +180,7 @@ chip northbridge/intel/i945
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
device pci 1f.1 off # IDE
|
device pci 1f.1 on # IDE
|
||||||
subsystemid 0x17aa 0x200c
|
subsystemid 0x17aa 0x200c
|
||||||
end
|
end
|
||||||
device pci 1f.2 on # SATA
|
device pci 1f.2 on # SATA
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(device_t dev)
|
||||||
{
|
{
|
||||||
device_t dev0;
|
device_t dev0, idedev;
|
||||||
int touchpad;
|
int touchpad;
|
||||||
|
|
||||||
/* enable Audio */
|
/* enable Audio */
|
||||||
|
@ -53,6 +53,17 @@ static void mainboard_enable(device_t dev)
|
||||||
touchpad = 1;
|
touchpad = 1;
|
||||||
|
|
||||||
pmh7_touchpad_enable(touchpad);
|
pmh7_touchpad_enable(touchpad);
|
||||||
|
|
||||||
|
idedev = dev_find_slot(0, PCI_DEVFN(0x1f,1));
|
||||||
|
if (idedev && idedev->chip_info && h8_ultrabay_device_present()) {
|
||||||
|
struct southbridge_intel_i82801gx_config *config = idedev->chip_info;
|
||||||
|
config->ide_enable_primary = 1;
|
||||||
|
pmh7_ultrabay_power_enable(1);
|
||||||
|
ec_write(0x0c, 0x84);
|
||||||
|
} else {
|
||||||
|
pmh7_ultrabay_power_enable(0);
|
||||||
|
ec_write(0x0c, 0x04);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct chip_operations mainboard_ops = {
|
struct chip_operations mainboard_ops = {
|
||||||
|
|
Loading…
Reference in New Issue