diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-08-28 04:41:47 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-09-03 17:22:18 -0400 |
commit | 2c4f1ac5623750e715ae2a5fc7e0569999b9bfc5 (patch) | |
tree | 597a3bd6c681e40174abdafb82ad13e472957753 /arch/mips/Kconfig | |
parent | 6612a6885b47e73a55d159e5aa4654de89fbfc29 (diff) |
MIPS: ath79: Switch to the clkdev framework
The ath79 code uses static clock devices and
provides its own clk_{get,put} implementations.
Change the code to use dynamically allocated
clock devices and register the clocks within
the clkdev framework.
Additionally, remove the local clk_{get,put}
implementation. The clkdev framework has a
common implementation of those.
Also move the call of ath79_clock_init() from
plat_mem_init() to plat_time_init(). Otherwise
it would not be possible to use memory allocation
functions from ath79clock_init() becasuse the
memory subsystem is not yet initialized when
plat_mem_init() runs.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5780/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index fdaf6280a39b..24727a082e19 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -95,6 +95,7 @@ config ATH79 | |||
95 | select CSRC_R4K | 95 | select CSRC_R4K |
96 | select DMA_NONCOHERENT | 96 | select DMA_NONCOHERENT |
97 | select HAVE_CLK | 97 | select HAVE_CLK |
98 | select CLKDEV_LOOKUP | ||
98 | select IRQ_CPU | 99 | select IRQ_CPU |
99 | select MIPS_MACHINE | 100 | select MIPS_MACHINE |
100 | select SYS_HAS_CPU_MIPS32_R2 | 101 | select SYS_HAS_CPU_MIPS32_R2 |