]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: stm32f7: fix prescaler calculation of timer
authorBo Shen <voice.shen@gmail.com>
Tue, 3 Oct 2017 05:47:59 +0000 (22:47 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 8 Oct 2017 20:19:56 +0000 (16:19 -0400)
commit41f91d40e375d17d0fc3d8761fe1b799a4289e79
treee5c0a0da6472c586f404e0d41ea223d3fdee4b74
parent4af1a86c994d6e58459c801697d5ea4a69c47a43
ARM: stm32f7: fix prescaler calculation of timer

As the timer 2 is on APB1 bus, the maximum of clock frequency of APB1 timer
clock is half of SYSCLK. Then to calculate the timer prescaler for timer 2
which need to be divided by 2.

Signed-off-by: Bo Shen <voice.shen@gmail.com>
Reviewed-by: Vikas Manocha <vikas.manocha@st.com>
arch/arm/mach-stm32/stm32f7/timer.c