drivers/generic/alc1015: Add HID to support alc1019

ALC1019 will use the ACPI compatible and share the same driver with
ALC1015. Add HID to support more compatible ICs.

BUG=b:195891240
TEST=ALC1019P driver can probe properly.

Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com>
Change-Id: I3e98297f3a39048b24d61e61ca95c60cd2037eb5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56877
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Eric Lai 2021-08-09 14:54:00 +08:00 committed by Nick Vaccaro
parent 6cf47f524a
commit b6f6e01bcb
2 changed files with 6 additions and 3 deletions

View File

@ -25,7 +25,10 @@ static void alc1015_fill_ssdt(const struct device *dev)
acpigen_write_scope(scope);
acpigen_write_device(name);
acpigen_write_name_string("_HID", "RTL1015");
if (config->hid)
acpigen_write_name_string("_HID", config->hid);
else
acpigen_write_name_string("_HID", "RTL1015");
acpigen_write_name_integer("_UID", 0);
acpigen_write_name_string("_DDN", dev->chip_ops->name);
acpigen_write_STA(acpi_device_status(dev));

View File

@ -3,6 +3,6 @@
#include <acpi/acpi_device.h>
struct drivers_generic_alc1015_config {
/* SDMODE GPIO */
struct acpi_gpio sdb;
const char *hid; /* ACPI _HID */
struct acpi_gpio sdb; /* SDMODE GPIO */
};