]> git.baikalelectronics.ru Git - uboot.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)
commit2d5b922445de3032e4a49b52cb11964b96a68add
tree91724b2c42297e4d8f7bc5735f9881ada4a99903
parent9a14e8f5cd6b65bc2fc8983ecc0efb0e3748c8bf
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