Commit c4b79038 authored by Raffael Rostagno's avatar Raffael Rostagno Committed by Mahesh Mahadevan
Browse files

pinctrl: esp32c6: Fix for input/output enable flags

Fix missing input/output enable flags on pinctrl macro, which
wouldn't allow for driver to see and apply flags configuration
made in the device tree.

Signed-off-by: default avatarRaffael Rostagno <raffael.rostagno@espressif.com>
parent a8ab8b49
Loading
Loading
Loading
Loading
+3 −1
Changes for soc/espressif/esp32c6/pinctrl_soc.h: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,9 @@ typedef struct pinctrl_soc_pin {
	 ((ESP32_PUSH_PULL * DT_PROP(node_id, drive_push_pull)) << ESP32_PIN_DRV_SHIFT) |          \
	 ((ESP32_OPEN_DRAIN * DT_PROP(node_id, drive_open_drain)) << ESP32_PIN_DRV_SHIFT) |        \
	 ((ESP32_PIN_OUT_HIGH * DT_PROP(node_id, output_high)) << ESP32_PIN_OUT_SHIFT) |           \
	 ((ESP32_PIN_OUT_LOW * DT_PROP(node_id, output_low)) << ESP32_PIN_OUT_SHIFT))
	 ((ESP32_PIN_OUT_LOW * DT_PROP(node_id, output_low)) << ESP32_PIN_OUT_SHIFT) |             \
	 ((ESP32_PIN_OUT_EN * DT_PROP(node_id, output_enable)) << ESP32_PIN_EN_DIR_SHIFT) |        \
	 ((ESP32_PIN_IN_EN * DT_PROP(node_id, input_enable)) << ESP32_PIN_EN_DIR_SHIFT))

/**
 * @brief Utility macro to initialize each pin.