aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/i2c/max98390/chip.h
diff options
context:
space:
mode:
authorSeunghwan Kim <sh_.kim@samsung.corp-partner.google.com>2020-01-22 10:53:55 +0900
committerPatrick Georgi <pgeorgi@google.com>2020-05-11 17:19:32 +0000
commit320d5528c39f6e8d68f8f52db95ede6978f02f83 (patch)
treed85578fde4995bbb4aa293732ab746028714d8fe /src/drivers/i2c/max98390/chip.h
parent7051707129db51e44d3698bbe145febc875c1cd4 (diff)
driver/i2c/max98390: Add i2c driver for Maxim 98390 codec
Add an SSDT generator for Maxim 98390 kernel driver. Copied from 'drivers/i2c/rt1011'. BUG=b:149443429 BRANCH=None TEST=built coreboot and checked audio function with kernel patch on nightfury Change-Id: I64d776c6c9726eb5822ad4dd82f6826c2a30cb1d Signed-off-by: Seunghwan Kim <sh_.kim@samsung.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39463 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/i2c/max98390/chip.h')
-rw-r--r--src/drivers/i2c/max98390/chip.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/drivers/i2c/max98390/chip.h b/src/drivers/i2c/max98390/chip.h
new file mode 100644
index 0000000000..26cad4c728
--- /dev/null
+++ b/src/drivers/i2c/max98390/chip.h
@@ -0,0 +1,17 @@
+/* This file is part of the coreboot project. */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+/*
+ * MAXIM MAX98390 audio codec devicetree bindings
+ */
+
+struct drivers_i2c_max98390_config {
+ const char *name; /* ACPI Device Name */
+ const char *desc; /* Device Description */
+ unsigned int uid; /* ACPI _UID */
+
+ /* The VPD key of calibrated speaker resistance. */
+ const char *r0_calib_key;
+ /* The VPD key of temperature during speaker calibration. */
+ const char *temperature_calib_key;
+};