Skip to content

Commit 4744022

Browse files
mlauss2ralfbaechle
authored andcommitted
MIPS: Alchemy: clock framework integration of onchip clocks
This patch introduces common clock framework integration for all configurable on-chip clocks on Alchemy chips: - 2 or 3 PLLs which generate integer multiples of the root rate 12MHz, - 6 dividers which take one of the 3 PLLs as input and divide their rate by either multiples of 2 or 1 (Au1300). - another bank of up to 6 muxes which take either one of the 6 above dividers or one of the PLLs directly and divide their rate further by 1, 2, 3 or 4. - a few other sources which are used by onchip peripherals and are informational. This implementation will take the clock tree as it was set up by boot firmware: all in-kernel boards should continue to work without having to set up the clock tree in board code. CLK_IGNORE_DISABLED will be removed once all drivers have been converted. Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> Cc: Mike Turquette <mturquette@linaro.org> Cc: Linux-MIPS <linux-mips@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/7466/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 2f73bfb commit 4744022

4 files changed

Lines changed: 1115 additions & 2 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ config MIPS_ALCHEMY
7272
select SYS_SUPPORTS_APM_EMULATION
7373
select ARCH_REQUIRE_GPIOLIB
7474
select SYS_SUPPORTS_ZBOOT
75+
select COMMON_CLK
7576

7677
config AR7
7778
bool "Texas Instruments AR7"

‎arch/mips/alchemy/common/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# Makefile for the Alchemy Au1xx0 CPUs, generic files.
66
#
77

8-
obj-y += prom.o time.o clocks.o platform.o power.o setup.o \
9-
sleeper.o dma.o dbdma.o vss.o irq.o usb.o
8+
obj-y += prom.o time.o clock.o clocks.o platform.o power.o \
9+
setup.o sleeper.o dma.o dbdma.o vss.o irq.o usb.o
1010

1111
# optional gpiolib support
1212
ifeq ($(CONFIG_ALCHEMY_GPIO_INDIRECT),)

0 commit comments

Comments
 (0)