Skip to content
Commit a6a774c9 authored by Benjamin Bigler's avatar Benjamin Bigler Committed by Carles Cufí
Browse files

drivers: clock_control: stm32h7: Fix frequency calculation overflow



STM32h7 pllout frequency calculation overflows. In the
worst case pllsrc_freq can be 50Mhz and plln_mul 512 which will cause
an overflow of the intermediate result which leads to wrong frequency
returned. As no intermediate result can be bigger than 960MHz only the
order of operations is changed.

Signed-off-by: default avatarBenjamin Bigler <benjamin.bigler@securiton.ch>
parent e408c455
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment