aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/amd/i2s_machine_dev/chip.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-07-16 13:16:21 -0700
committerFurquan Shaikh <furquan@google.com>2020-07-17 23:33:23 +0000
commit03294a384906b0d710f1b968e11d75b139e2f4a9 (patch)
tree6a794b5365bea678f22c4d0dd7979c51961178cd /src/drivers/amd/i2s_machine_dev/chip.h
parent550cd0599583c7dc3887f8c728f79855a8f2c149 (diff)
drivers/amd/i2s_machine_dev: Add a driver for AMD I2S machine device
This change adds a new driver for AMD I2S machine device. Currently, this device is added as part of `acp_fill_ssdt()` in Picasso, but with addition of this driver, this device can be added just like any other device in the devicetree. BUG=b:157708581 Change-Id: I49d1a867d7941397acca1054632b6ad855a021de Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43541 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/amd/i2s_machine_dev/chip.h')
-rw-r--r--src/drivers/amd/i2s_machine_dev/chip.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/drivers/amd/i2s_machine_dev/chip.h b/src/drivers/amd/i2s_machine_dev/chip.h
new file mode 100644
index 0000000000..5d3a423b43
--- /dev/null
+++ b/src/drivers/amd/i2s_machine_dev/chip.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#ifndef __DRIVERS_AMD_I2S_MACHINE_DEV_H__
+#define __DRIVERS_AMD_I2S_MACHINE_DEV_H__
+
+#include <acpi/acpi_device.h>
+
+struct drivers_amd_i2s_machine_dev_config {
+ /* ACPI _HID (required) */
+ const char *hid;
+
+ /* ACPI _UID */
+ unsigned int uid;
+
+ /* DMIC select GPIO (required) */
+ struct acpi_gpio dmic_select_gpio;
+};
+
+#endif /* ___DRIVERS_AMD_I2S_MACHINE_DEV_H__ */