aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede/variants/waddledee/gpio.c
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@google.com>2020-10-01 10:22:57 -0600
committerPatrick Georgi <pgeorgi@google.com>2020-10-19 06:58:03 +0000
commit94ce8c3b3d1b7997dbad020eb955ea3b3038a5f2 (patch)
treee832087c71f659312081a0cf315662ad88ae734b /src/mainboard/google/dedede/variants/waddledee/gpio.c
parentbf089d2a6286eae4e25b7cb51e92633ae39252d4 (diff)
mb/google/dedede/var/waddledee: Enable GPIO based I2C Multiplexer
The camera sensor component chosen for UFC and WFC have an address conflict. Resolve it by enabling GPIO based I2C Multiplexer. Also configure the GPIO that is used as select line. BUG=b:169444894 TEST=Build and boot waddledee to OS. Ensure that the ACPI identifiers are added for I2C devices multiplexed using I2C MUX under the appropriate scope. Change-Id: I9b09e063b4377587019ade9e6e194f4aadcdd312 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45912 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/dedede/variants/waddledee/gpio.c')
-rw-r--r--src/mainboard/google/dedede/variants/waddledee/gpio.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/waddledee/gpio.c b/src/mainboard/google/dedede/variants/waddledee/gpio.c
new file mode 100644
index 0000000000..0905e8f217
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/waddledee/gpio.c
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/gpio.h>
+#include <baseboard/variants.h>
+
+/* Pad configuration in ramstage*/
+static const struct pad_config gpio_table[] = {
+ /* E5 : AP_SUB_IO_2 */
+ PAD_CFG_GPO(GPP_E5, 0, PLTRST),
+};
+
+const struct pad_config *variant_override_gpio_table(size_t *num)
+{
+ *num = ARRAY_SIZE(gpio_table);
+ return gpio_table;
+}