]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: at91: Improve the clock implementation
authorWenyou Yang <wenyou.yang@atmel.com>
Tue, 27 Sep 2016 03:00:29 +0000 (11:00 +0800)
committerAndreas Bießmann <andreas@biessmann.org>
Fri, 28 Oct 2016 16:37:14 +0000 (18:37 +0200)
commit6cadaa046b196bebebd7acb13edd840bcfef98e2
tree91724b2c42297e4d8f7bc5735f9881ada4a99903
parent3f56b1321593c0081e77a3bc900177e6cf2f21d6
clk: at91: Improve the clock implementation

For the peripheral clock, provide the clock ops for the clock
provider, such as spi0_clk. The .of_xlate is to get the clk->id,
the .enable is to enable the spi0 peripheral clock, the .get_rate
is to get the clock frequency.

The driver for periph32ck node is responsible for recursively
binding its children as clk devices, not provide the clock ops.

So do the generated clock and system clock.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
drivers/clk/at91/Kconfig
drivers/clk/at91/clk-generated.c
drivers/clk/at91/clk-peripheral.c
drivers/clk/at91/clk-system.c
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h