drivers/gpio: stm32l4: PortG[15:2] requires dedicated VDDio2
On STM32L4, 14 pins (Port G[15:2]), require external power supply. Activate this at port G init when PWR_CR2_IOSV is defined. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
c8d3b3f768
commit
f5d48240e9
2 changed files with 19 additions and 0 deletions
|
@ -34,6 +34,11 @@
|
|||
/* base address for where GPIO registers start */
|
||||
#define GPIO_PORTS_BASE (GPIOA_BASE)
|
||||
|
||||
#ifdef CONFIG_GPIO_STM32
|
||||
/* Required to enable VDDio2 for port G */
|
||||
#include <stm32l4xx_ll_pwr.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32l4xx_ll_usart.h>
|
||||
#include <stm32l4xx_ll_lpuart.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue