Skip to content

Commit af76ef6

Browse files
author
Raffael Rostagno
committed
drivers: gpio: esp32h2: Add support
Add gpio support for ESP32-H2. Signed-off-by: Raffael Rostagno <[email protected]>
1 parent 0f907f0 commit af76ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio_esp32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ LOG_MODULE_REGISTER(gpio_esp32, CONFIG_LOG_DEFAULT_LEVEL);
4444
#define out_w1tc out_w1tc.val
4545
/* arch_curr_cpu() is not available for riscv based chips */
4646
#define ESP32_CPU_ID() 0
47-
#elif defined(CONFIG_SOC_SERIES_ESP32C6)
48-
/* gpio structs in esp32c6 are also different */
47+
#elif defined(CONFIG_SOC_SERIES_ESP32C6) || defined(CONFIG_SOC_SERIES_ESP32H2)
48+
/* gpio structs in esp32c6/h2 are also different */
4949
#define out out.out_data_orig
5050
#define in in.in_data_next
5151
#define out_w1ts out_w1ts.val

0 commit comments

Comments
 (0)