]> git.baikalelectronics.ru Git - kernel.git/commit
clk: stm32: Add clock driver for STM32F4[23]xxx devices
authorDaniel Thompson <daniel.thompson@linaro.org>
Wed, 10 Jun 2015 20:09:37 +0000 (21:09 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 22 Jun 2015 23:17:01 +0000 (16:17 -0700)
commit9d51bd3969bafd1fdf98d572e5529ad113f24f7e
treec4505e8178f562ebf7798a38cd03226f1c6e8cfb
parentffd67ee6349f0b6be17ceb0d87578ee74d4ee936
clk: stm32: Add clock driver for STM32F4[23]xxx devices

The driver supports decoding and statically modelling PLL state (i.e.
we inherit state from bootloader) and provides support for all
peripherals that support simple one-bit gated clocks. The covers all
peripherals whose clocks come from the AHB, APB1 or APB2 buses.

It has been tested on an STM32F429I-Discovery board. The clock counts
for TIM2, USART1 and SYSTICK are all set correctly and the wall clock
looks OK when checked with a stopwatch. I have also tested a prototype
driver for the RNG hardware. The RNG clock is correctly enabled by the
framework (also did inverse test and proved that by changing DT to
configure the wrong clock bit then we observe the RNG driver to fail).

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
[sboyd@codeaurora.org: Silence sparse warnings]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/Makefile
drivers/clk/clk-stm32f4.c [new file with mode: 0644]