diff options
author | Li Feng <li1.feng@intel.com> | 2023-01-12 19:39:33 -0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-20 22:53:02 +0000 |
commit | 0c982121aef6ac125c54a16736c616a336b417c5 (patch) | |
tree | 0084c727bdf16c7d200a821c7755fbd6b63b22bb | |
parent | 5029c35c3529fa651f4ea983a6797944aa87d2c3 (diff) | |
download | chrome-ec-0c982121aef6ac125c54a16736c616a336b417c5.tar.gz |
rex: enable volume button interrupts
Enable interrupts so EC can respond to hardware volume button press.
BUG=none
BRANCH=none
TEST=Press volume up/down button on Rex DB, EC console prints correct
trace messages.
Change-Id: I5d7e22765e81842bc247f635dc703b4a2d1f5e3b
Signed-off-by: Li Feng <li1.feng@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4163828
Reviewed-by: RAJESH KUMAR <rajesh3.kumar@intel.com>
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r-- | zephyr/program/rex/interrupts.dtsi | 10 | ||||
-rw-r--r-- | zephyr/program/rex/program.conf | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/program/rex/interrupts.dtsi b/zephyr/program/rex/interrupts.dtsi index 7de9141caf..a4532c3e95 100644 --- a/zephyr/program/rex/interrupts.dtsi +++ b/zephyr/program/rex/interrupts.dtsi @@ -72,6 +72,16 @@ flags = <GPIO_INT_EDGE_FALLING>; handler = "lis2dw12_interrupt"; }; + int_volume_up: volume_up { + irq-pin = <&gpio_ec_volup_btn_odl>; + flags = <GPIO_INT_EDGE_BOTH>; + handler = "button_interrupt"; + }; + int_volume_down: volume_down { + irq-pin = <&gpio_ec_voldn_btn_odl>; + flags = <GPIO_INT_EDGE_BOTH>; + handler = "button_interrupt"; + }; }; }; diff --git a/zephyr/program/rex/program.conf b/zephyr/program/rex/program.conf index 55dfd930c5..9e8dfc7dfb 100644 --- a/zephyr/program/rex/program.conf +++ b/zephyr/program/rex/program.conf @@ -113,6 +113,7 @@ CONFIG_PLATFORM_EC_LID_SWITCH=y CONFIG_PLATFORM_EC_KEYBOARD_PROTOCOL_8042=y # Column 2 is driven through the GSC, which inverts the signal going through it CONFIG_PLATFORM_EC_KEYBOARD_COL2_INVERTED=y +CONFIG_PLATFORM_EC_VOLUME_BUTTONS=y # MKBP event CONFIG_PLATFORM_EC_MKBP_EVENT=y |