summaryrefslogtreecommitdiff
path: root/zephyr/projects/asurada
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-06-11 16:42:29 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-22 17:38:57 +0000
commitbc6852a68d70266fcb5abcd4663e30984347a8de (patch)
treefcfce2d3bab6fa489e96b91394c9599f098990a5 /zephyr/projects/asurada
parentf22f45ed3ac381129755e995d039ef7391fbaa3b (diff)
downloadchrome-ec-bc6852a68d70266fcb5abcd4663e30984347a8de.tar.gz
zephyr: hayato: Add XHCI init interrupt
This interrupt appears to be missing from the GPIO list. Add it. Note: It is marked as open-drain so I am not sure how to describe it in the gpio_map, but have made an attempt. BUG=b:189855648 BRANCH=none TEST=see that it builds OK with the new interrupt handler Change-Id: Id6c23cc67a17fd221eb977faab18e6bdfa14f324 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2957550 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/projects/asurada')
-rw-r--r--zephyr/projects/asurada/hayato/gpio.dts6
-rw-r--r--zephyr/projects/asurada/hayato/include/gpio_map.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/zephyr/projects/asurada/hayato/gpio.dts b/zephyr/projects/asurada/hayato/gpio.dts
index 8431bb7aad..a09290374d 100644
--- a/zephyr/projects/asurada/hayato/gpio.dts
+++ b/zephyr/projects/asurada/hayato/gpio.dts
@@ -38,6 +38,12 @@
enum-name = "GPIO_AP_IN_SLEEP_L";
label = "AP_IN_SLEEP_L";
};
+ ap-xhci-init-done {
+ gpios = <&gpiod 2 (GPIO_INPUT | GPIO_PULL_DOWN |
+ GPIO_VOLTAGE_1P8)>;
+ enum-name = "GPIO_AP_XHCI_INIT_DONE";
+ label = "AP_XHCI_INIT_DONE";
+ };
pmic_ec_pwrgd {
gpios = <&gpiof 3 (GPIO_INPUT | GPIO_PULL_DOWN |
GPIO_VOLTAGE_1P8)>;
diff --git a/zephyr/projects/asurada/hayato/include/gpio_map.h b/zephyr/projects/asurada/hayato/include/gpio_map.h
index 67263d7a83..884361f43f 100644
--- a/zephyr/projects/asurada/hayato/include/gpio_map.h
+++ b/zephyr/projects/asurada/hayato/include/gpio_map.h
@@ -51,7 +51,9 @@
GPIO_INT(GPIO_AC_PRESENT, \
GPIO_INT_EDGE_BOTH, extpower_interrupt) \
GPIO_INT(GPIO_X_EC_GPIO2, \
- GPIO_INT_EDGE_FALLING, x_ec_interrupt)
+ GPIO_INT_EDGE_FALLING, x_ec_interrupt) \
+ GPIO_INT(GPIO_AP_XHCI_INIT_DONE, \
+ GPIO_INT_EDGE_BOTH, usb_a0_interrupt)
#define GPIO_EN_PP5000 GPIO_EN_PP5000_A