Commit 1a600d00 authored by Yuri Tikhonov's avatar Yuri Tikhonov

RM-770 stm32f7: fix-up UCL-BSB PWR_EN configuring

Signed-off-by: default avatarYuri Tikhonov <yur@emcraft.com>
parent d8be6022
......@@ -233,8 +233,15 @@ static int pwr_setup_gpio(void)
struct stm32f2_gpio_dsc pwr_en_gpio = {
STM32F2_GPIO_PORT_F, STM32F2_GPIO_PIN_10
};
int rv;
rv = stm32f2_gpio_config(&pwr_en_gpio, STM32F2_GPIO_ROLE_GPOUT);
if (rv)
goto out;
return stm32f2_gpout_set(&pwr_en_gpio, 1);
rv = stm32f2_gpout_set(&pwr_en_gpio, 1);
out:
return rv;
}
#endif /* CONFIG_SYS_BOARD_UCL_BSB */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment