southbridge/ibexpeak: use new ssdt sata port generator
Drop old incomplete, broken and hardcoded sata.asl properties. The new sata acpi generator only needs a proper defined device. Change-Id: Id3eca5551a070dfdd6fa674e1d5b6627e28ab5a7 Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-on: http://review.coreboot.org/9710 Tested-by: build bot (Jenkins) Reviewed-by: Peter Stuge <peter@stuge.se>
This commit is contained in:
parent
7bf47eecd6
commit
beb31d0cdc
|
@ -35,6 +35,7 @@ config SOUTH_BRIDGE_OPTIONS # dummy
|
||||||
select SOUTHBRIDGE_INTEL_COMMON
|
select SOUTHBRIDGE_INTEL_COMMON
|
||||||
select HAVE_USBDEBUG_OPTIONS
|
select HAVE_USBDEBUG_OPTIONS
|
||||||
select COMMON_FADT
|
select COMMON_FADT
|
||||||
|
select ACPI_SATA_GENERATOR
|
||||||
|
|
||||||
config EHCI_BAR
|
config EHCI_BAR
|
||||||
hex
|
hex
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include <pc80/mc146818rtc.h>
|
#include <pc80/mc146818rtc.h>
|
||||||
|
#include <acpi/sata.h>
|
||||||
|
|
||||||
typedef struct southbridge_intel_ibexpeak_config config_t;
|
typedef struct southbridge_intel_ibexpeak_config config_t;
|
||||||
|
|
||||||
|
@ -249,6 +250,12 @@ static void sata_set_subsystem(device_t dev, unsigned vendor, unsigned device)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void sata_fill_ssdt(device_t dev)
|
||||||
|
{
|
||||||
|
config_t *config = dev->chip_info;
|
||||||
|
generate_sata_ssdt_ports("\\_SB_.PCI0.SATA", config->sata_port_map);
|
||||||
|
}
|
||||||
|
|
||||||
static struct pci_operations sata_pci_ops = {
|
static struct pci_operations sata_pci_ops = {
|
||||||
.set_subsystem = sata_set_subsystem,
|
.set_subsystem = sata_set_subsystem,
|
||||||
};
|
};
|
||||||
|
@ -259,6 +266,7 @@ static struct device_operations sata_ops = {
|
||||||
.enable_resources = pci_dev_enable_resources,
|
.enable_resources = pci_dev_enable_resources,
|
||||||
.init = sata_init,
|
.init = sata_init,
|
||||||
.enable = sata_enable,
|
.enable = sata_enable,
|
||||||
|
.acpi_fill_ssdt_generator = sata_fill_ssdt,
|
||||||
.scan_bus = 0,
|
.scan_bus = 0,
|
||||||
.ops_pci = &sata_pci_ops,
|
.ops_pci = &sata_pci_ops,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue