diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2015-04-16 02:00:21 +0200 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2015-09-02 21:11:10 +0000 |
commit | 7bf47eecd60415c5151cd9906947b5ef375f29de (patch) | |
tree | d7711e476db4648cedd90cc5b1559273fd947e0b /src/southbridge/intel/bd82x6x/sata.c | |
parent | ef549a04c50aaef425b6f21324aa275d2e1318f4 (diff) | |
download | coreboot-7bf47eecd60415c5151cd9906947b5ef375f29de.tar.gz coreboot-7bf47eecd60415c5151cd9906947b5ef375f29de.tar.bz2 coreboot-7bf47eecd60415c5151cd9906947b5ef375f29de.zip |
southbridge/bd82x6x: 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: I2be76097ebd27f2529e3fbbecefd314a0eea3cb0
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-on: http://review.coreboot.org/9709
Tested-by: build bot (Jenkins)
Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'src/southbridge/intel/bd82x6x/sata.c')
-rw-r--r-- | src/southbridge/intel/bd82x6x/sata.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/southbridge/intel/bd82x6x/sata.c b/src/southbridge/intel/bd82x6x/sata.c index 1cdc5e2b8bed..66a4c561aecb 100644 --- a/src/southbridge/intel/bd82x6x/sata.c +++ b/src/southbridge/intel/bd82x6x/sata.c @@ -25,6 +25,7 @@ #include <device/pci_ids.h> #include "pch.h" #include <pc80/mc146818rtc.h> +#include <acpi/sata.h> typedef struct southbridge_intel_bd82x6x_config config_t; @@ -247,6 +248,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 = { .set_subsystem = sata_set_subsystem, }; @@ -255,6 +262,8 @@ static struct device_operations sata_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, + .acpi_fill_ssdt_generator + = sata_fill_ssdt, .init = sata_init, .enable = sata_enable, .scan_bus = 0, |