diff options
author | Alexander Sverdlin <alexander.sverdlin@gmail.com> | 2015-11-22 09:24:28 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2017-07-27 16:57:24 -0400 |
commit | ef8aa4e0a0df2470148203725acd8b6e75acdc0b (patch) | |
tree | c96db9ba4a72df7e93886bd01249710513ed8c64 | |
parent | 77a374c29992b1a0e2f4a6e2867324c4de6e23c4 (diff) |
ARM: ep93xx: normalize clk API
It's a combination of the patch from Arnd Bergmann, which added empty stubs
for clk_round_rate() and clk_set_parent() and a working trivial
implementation of clk_get_parent(). The later is required for ADC driver.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/mach-ep93xx/clock.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index 39ef3b613912..beec5f16443a 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c | |||
@@ -475,6 +475,26 @@ int clk_set_rate(struct clk *clk, unsigned long rate) | |||
475 | } | 475 | } |
476 | EXPORT_SYMBOL(clk_set_rate); | 476 | EXPORT_SYMBOL(clk_set_rate); |
477 | 477 | ||
478 | long clk_round_rate(struct clk *clk, unsigned long rate) | ||
479 | { | ||
480 | WARN_ON(clk); | ||
481 | return 0; | ||
482 | } | ||
483 | EXPORT_SYMBOL(clk_round_rate); | ||
484 | |||
485 | int clk_set_parent(struct clk *clk, struct clk *parent) | ||
486 | { | ||
487 | WARN_ON(clk); | ||
488 | return 0; | ||
489 | } | ||
490 | EXPORT_SYMBOL(clk_set_parent); | ||
491 | |||
492 | struct clk *clk_get_parent(struct clk *clk) | ||
493 | { | ||
494 | return clk->parent; | ||
495 | } | ||
496 | EXPORT_SYMBOL(clk_get_parent); | ||
497 | |||
478 | 498 | ||
479 | static char fclk_divisors[] = { 1, 2, 4, 8, 16, 1, 1, 1 }; | 499 | static char fclk_divisors[] = { 1, 2, 4, 8, 16, 1, 1, 1 }; |
480 | static char hclk_divisors[] = { 1, 2, 4, 5, 6, 8, 16, 32 }; | 500 | static char hclk_divisors[] = { 1, 2, 4, 5, 6, 8, 16, 32 }; |