diff options
author | Wenyou Yang <wenyou.yang@atmel.com> | 2016-09-27 11:00:29 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas@biessmann.org> | 2016-10-28 18:37:14 +0200 |
commit | 6cadaa046b196bebebd7acb13edd840bcfef98e2 (patch) | |
tree | 91724b2c42297e4d8f7bc5735f9881ada4a99903 /drivers/clk/at91/pmc.h | |
parent | 3f56b1321593c0081e77a3bc900177e6cf2f21d6 (diff) |
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>
Diffstat (limited to 'drivers/clk/at91/pmc.h')
-rw-r--r-- | drivers/clk/at91/pmc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h index 5444c84db6..f222fce11f 100644 --- a/drivers/clk/at91/pmc.h +++ b/drivers/clk/at91/pmc.h @@ -13,6 +13,9 @@ struct pmc_platdata { }; int at91_pmc_core_probe(struct udevice *dev); -int at91_pmc_clk_node_bind(struct udevice *dev); +int at91_clk_sub_device_bind(struct udevice *dev, const char *drv_name); + +int at91_clk_of_xlate(struct clk *clk, struct fdtdec_phandle_args *args); +int at91_clk_probe(struct udevice *dev); #endif |