clk: clk_stm32f: Fix stm32_clk_get_rate() for timer

For timer clock, an additionnal prescaler is used which was
not taken into account previously.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
Patrice Chotard 2018-02-07 10:44:46 +01:00 committed by Tom Rini
parent 5120a083e7
commit 61803a95a1
2 changed files with 105 additions and 18 deletions

View file

@ -45,6 +45,11 @@ enum soc_family {
STM32F7,
};
enum apb {
APB1,
APB2,
};
struct stm32_rcc_clk {
char *drv_name;
enum soc_family soc;