From 604f69868ffc47c4cfc7623c83ccff89a0afcee8 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Wed, 7 Jun 2017 09:46:52 +0200 Subject: sb/intel/bd82x6x: Fill in acpi_name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fill in acpi_name to return proper ACPI names. To be used with SSDT generators. The ACPI names have to match those already used in ASL code. By providing the ACPI name it can be retrieved by the acpi_device_name() method and doesn't need to be hardcoded in SSDT generators any more. HDEF is defined in sb/intel/bd82x6x/acpi/audio.asl. LPCB is defined in sb/intel/bd82x6x/acpi/lpc.asl. RP0* is defined in sb/intel/bd82x6x/acpi/pcie.asl. SATA is defined in sb/intel/bd82x6x/acpi/sata.asl. SBUS is defined in sb/intel/bd82x6x/acpi/smbus.asl. EHC? is defined in sb/intel/bd82x6x/acpi/usb.asl. XHC is defined in sb/intel/bd82x6x/acpi/usb.asl. Change-Id: I08611b11c694ee5034bca11cb321915d5c73c2f6 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/20086 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Nico Huber --- src/southbridge/intel/bd82x6x/usb_xhci.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/southbridge/intel/bd82x6x/usb_xhci.c') diff --git a/src/southbridge/intel/bd82x6x/usb_xhci.c b/src/southbridge/intel/bd82x6x/usb_xhci.c index 74deb522a6..1aeb8643b3 100644 --- a/src/southbridge/intel/bd82x6x/usb_xhci.c +++ b/src/southbridge/intel/bd82x6x/usb_xhci.c @@ -51,6 +51,11 @@ static void usb_xhci_init(struct device *dev) printk(BIOS_DEBUG, "done.\n"); } +static const char *xhci_acpi_name(device_t dev) +{ + return "XHC"; +} + static void xhci_set_subsystem(device_t dev, unsigned vendor, unsigned device) { if (!vendor || !device) { @@ -73,6 +78,7 @@ static struct device_operations usb_xhci_ops = { .init = usb_xhci_init, .scan_bus = 0, .ops_pci = &xhci_pci_ops, + .acpi_name = xhci_acpi_name, }; static const unsigned short pci_device_ids[] = { 0x1e31, 0 }; -- cgit v1.2.3