drivers/i2c/cs35l53: Add device description and UID
BUG=b:207333035 BRANCH=none TEST=built and verified speaker Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com> Change-Id: I0dd39760dc5f44f46838c07d2e52946edc2a6d7e Reviewed-on: https://review.coreboot.org/c/coreboot/+/64638 Reviewed-by: Vitaly Rodionov <vitaly.rodionov@cirrus.corp-partner.google.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
8f6dd2a4bd
commit
74782cb2f4
|
@ -48,6 +48,12 @@ struct drivers_i2c_cs35l53_config {
|
||||||
|
|
||||||
const char *sub; /* SUB ID to uniquely identify system */
|
const char *sub; /* SUB ID to uniquely identify system */
|
||||||
|
|
||||||
|
/* Device Description */
|
||||||
|
const char *desc;
|
||||||
|
|
||||||
|
/* Identifier for chips */
|
||||||
|
uint32_t uid;
|
||||||
|
|
||||||
/* Interrupt configuration */
|
/* Interrupt configuration */
|
||||||
struct acpi_irq irq;
|
struct acpi_irq irq;
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,11 @@ static void cs35l53_fill_ssdt(const struct device *dev)
|
||||||
acpigen_write_scope(scope);
|
acpigen_write_scope(scope);
|
||||||
acpigen_write_device(acpi_device_name(dev));
|
acpigen_write_device(acpi_device_name(dev));
|
||||||
acpigen_write_name_string("_HID", CS35L53_ACPI_HID);
|
acpigen_write_name_string("_HID", CS35L53_ACPI_HID);
|
||||||
acpigen_write_name_integer("_UID", 0);
|
acpigen_write_name_integer("_UID", config->uid);
|
||||||
|
if (config->desc == NULL)
|
||||||
acpigen_write_name_string("_DDN", dev->chip_ops->name);
|
acpigen_write_name_string("_DDN", dev->chip_ops->name);
|
||||||
|
else
|
||||||
|
acpigen_write_name_string("_DDN", config->desc);
|
||||||
acpigen_write_name_string("_SUB", config->sub);
|
acpigen_write_name_string("_SUB", config->sub);
|
||||||
acpigen_write_STA(acpi_device_status(dev));
|
acpigen_write_STA(acpi_device_status(dev));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue