summaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32/stm32f7
diff options
context:
space:
mode:
authorToshifumi NISHINAGA <tnishinaga.dev@gmail.com>2016-07-08 01:02:26 +0900
committerTom Rini <trini@konsulko.com>2016-07-14 18:22:44 -0400
commit4b2fd720a7b2f78c42d1565edf4c67f378c65440 (patch)
tree97c496a53008f138475a3991ac4c0ed3920ce26e /arch/arm/mach-stm32/stm32f7
parent25c1b1353ce4b8188de6058f9f3b0d5d2dad8230 (diff)
downloadu-boot-imx-4b2fd720a7b2f78c42d1565edf4c67f378c65440.zip
u-boot-imx-4b2fd720a7b2f78c42d1565edf4c67f378c65440.tar.gz
u-boot-imx-4b2fd720a7b2f78c42d1565edf4c67f378c65440.tar.bz2
stm32: Change USART port to USART6 for stm32f746 discovery board
This change is to remove a halt at about 200KiB while sending a large(1MiB) binary to a micro controller using USART1. USART1 is connected to a PC via an on-board ST-Link debugger that also functions as a USB-Serial converter. However, it seems to loss some data occasionally. So I changed the serial port to USART6 and connected it to the PC using an FTDI USB-Serial cable, therefore the transmission was successfully completed. Signed-off-by: Toshifumi NISHINAGA <tnishinaga.dev@gmail.com>
Diffstat (limited to 'arch/arm/mach-stm32/stm32f7')
-rw-r--r--arch/arm/mach-stm32/stm32f7/clock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32/stm32f7/clock.c b/arch/arm/mach-stm32/stm32f7/clock.c
index 78d22d4..ac47850 100644
--- a/arch/arm/mach-stm32/stm32f7/clock.c
+++ b/arch/arm/mach-stm32/stm32f7/clock.c
@@ -245,6 +245,9 @@ void clock_setup(int peripheral)
case USART1_CLOCK_CFG:
setbits_le32(RCC_BASE + RCC_APB2ENR, RCC_ENR_USART1EN);
break;
+ case USART6_CLOCK_CFG:
+ setbits_le32(RCC_BASE + RCC_APB2ENR, RCC_ENR_USART6EN);
+ break;
case GPIO_A_CLOCK_CFG:
setbits_le32(RCC_BASE + RCC_AHB1ENR, RCC_ENR_GPIO_A_EN);
break;