Skip to content

Commit

Permalink
soc/arm/microchip_mec/mec17x: Initialise GPIO after ECIA
Browse files Browse the repository at this point in the history
Since bb590b5, which enforces a more consistent ordering of
initialisation for devices, the ECIA initialisation was happening after
GPIO initialisation. This caused interrupts to stop working on GPIO
input.

This patch fixes that by increasing the default GPIO initialisation
priority, so that it happens after ECIA.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
  • Loading branch information
edersondisouza authored and mbolivar-ampere committed Aug 15, 2023
1 parent 0295edf commit 91450a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions soc/arm/microchip_mec/mec172x/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,13 @@ choice
JTAG port in SWD mode and SWV as tracing method.
I2C09 cannot be used. ADC00-03 can be used.
endchoice

# GPIO initialization depends on ECIA initialization, which happen at
# CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, so GPIO_INIT_PRIORITY needs to be
# higher than that.
if GPIO

config GPIO_INIT_PRIORITY
default 41

endif # GPIO

0 comments on commit 91450a4

Please sign in to comment.