summaryrefslogtreecommitdiff
path: root/board/st/stm32f746-disco
diff options
context:
space:
mode:
authorVikas Manocha <vikas.manocha@st.com>2017-02-12 10:25:51 -0800
committerTom Rini <trini@konsulko.com>2017-03-17 14:15:15 -0400
commite34e19feb7d06c2c0baf28ed145fe8f63b166fc8 (patch)
tree9b371528fd57152dda12f20c3e6d359f6a154adc /board/st/stm32f746-disco
parentda4e17f24c5b01e735ff5414256329f719203104 (diff)
ARM: DT: stm32f7: add pin control node for serial port pins
And remove the uart pin configuration from board initialization. Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Diffstat (limited to 'board/st/stm32f746-disco')
-rw-r--r--board/st/stm32f746-disco/stm32f746-disco.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
index ee1deb5275..9ebc36b846 100644
--- a/board/st/stm32f746-disco/stm32f746-disco.c
+++ b/board/st/stm32f746-disco/stm32f746-disco.c
@@ -27,14 +27,6 @@ const struct stm32_gpio_ctl gpio_ctl_gpout = {
.af = STM32_GPIO_AF0
};
-const struct stm32_gpio_ctl gpio_ctl_usart = {
- .mode = STM32_GPIO_MODE_AF,
- .otype = STM32_GPIO_OTYPE_PP,
- .speed = STM32_GPIO_SPEED_50M,
- .pupd = STM32_GPIO_PUPD_UP,
- .af = STM32_GPIO_AF7
-};
-
const struct stm32_gpio_ctl gpio_ctl_fmc = {
.mode = STM32_GPIO_MODE_AF,
.otype = STM32_GPIO_OTYPE_PP,
@@ -245,26 +237,11 @@ int dram_init(void)
return rv;
}
-static const struct stm32_gpio_dsc usart_gpio[] = {
- {STM32_GPIO_PORT_A, STM32_GPIO_PIN_9}, /* TX */
- {STM32_GPIO_PORT_B, STM32_GPIO_PIN_7}, /* RX */
-};
-
int uart_setup_gpio(void)
{
- int i;
- int rv = 0;
-
clock_setup(GPIO_A_CLOCK_CFG);
clock_setup(GPIO_B_CLOCK_CFG);
- for (i = 0; i < ARRAY_SIZE(usart_gpio); i++) {
- rv = stm32_gpio_config(&usart_gpio[i], &gpio_ctl_usart);
- if (rv)
- goto out;
- }
-
-out:
- return rv;
+ return 0;
}
#ifdef CONFIG_ETH_DESIGNWARE