summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/rt5645/chip.h
diff options
context:
space:
mode:
authorJianeng Ceng <cengjianeng@huaqin.corp-partner.google.com>2024-04-07 20:52:36 +0800
committerEric Lai <ericllai@google.com>2024-04-24 06:13:27 +0000
commit28b01563693c6d51c74c7fd2893978809c372989 (patch)
tree3b00828067639d188338a626abae4859755f45c1 /src/drivers/i2c/rt5645/chip.h
parent3f431844c6cecffa658ec7e2f97aaa903e898b12 (diff)
drivers/i2c/rt5645: Add RT5645 amp driver
RT5663 is very old and it was used the hard code like RT53 or 10EC5663, which is the different series from RT5645/5650, it may caused some ambiguity. Because I2C generic driver dose not support dsd gpio setting, we declared the new rt5645 series driver for expansion. Add RT5645 AMP support. The kernel driver of 5650 is written in rt5645.c. Add acpi name cbj-sleeve-gpios for power gate GPIO. ALC5650 DataSheet Rev 0.93 Realtek upstream link: https://lore.kernel.org/all/20240404035747.118064-1-derek.fang@realtek.com/ Hide the device because of Microsoft Windows. BUG=None TEST=verified in anraggar and probe device rt5650 succeed ``` \_SB.PCI0.I2C3.RT58: Realtek RT5650 ``` Change-Id: I602fcc4dd8576043943f6e20884edc4703350320 Signed-off-by: Jianeng Ceng <cengjianeng@huaqin.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81773 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'src/drivers/i2c/rt5645/chip.h')
-rw-r--r--src/drivers/i2c/rt5645/chip.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/drivers/i2c/rt5645/chip.h b/src/drivers/i2c/rt5645/chip.h
new file mode 100644
index 0000000000..e8537ee6a8
--- /dev/null
+++ b/src/drivers/i2c/rt5645/chip.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <acpi/acpi_device.h>
+
+struct drivers_i2c_rt5645_config {
+ const char *desc; /* Device Description */
+ const char *name; /* ACPI Device Name */
+ const char *hid; /* ACPI _HID */
+ struct acpi_gpio cbj_sleeve; /* sleeve power gate GPIO */
+ struct acpi_gpio hp_detect;
+ unsigned int uid;
+ unsigned int bus_speed;
+ /* Allow GPIO based interrupt or PIRQ */
+ struct acpi_gpio irq_gpio;
+ struct acpi_irq irq;
+ uint32_t jd_mode;
+};