clk: Add CLPS711X clk driver
Subsystems (2)
PATCH v2 1/2 clk: Add CLPS711X clk driver
This adds the clock driver for Cirrus Logic CLPS711X series SoCs using common clock infrastructure.
Designed primarily for migration CLPS711X subarch for multiplatform & DT, for this as the "OF" and "non-OF" calls implemented.
Signed-off-by Alexander Shiyan <[email protected]>
---
Actual calls for driver initialization of the boards will be added later in a separate patch for the arm-soc tree to avoid possible conflicts between clk, clocksource and arm-soc trees.
--- drivers/clk/Makefile | 1 + drivers/clk/clk-clps711x.c | 192 +++++++++++++++++++++++++++++ include/dt-bindings/clock/clps711x-clock.h | 27 ++++ 3 files changed, 220 insertions(+) create mode 100644 drivers/clk/clk-clps711x.c create mode 100644 include/dt-bindings/clock/clps711x-clock.h
drivers/clk/Makefile +1 -0
@@ -15,6 +15,7 @@ obj-$(CONFIG_COMMON_CLK) += clk-fractional-divider.o obj-$(CONFIG_COMMON_CLK_AXI_CLKGEN) += clk-axi-clkgen.o obj-$(CONFIG_ARCH_AXXIA) += clk-axm5516.o obj-$(CONFIG_ARCH_BCM2835) += clk-bcm2835.o +obj-$(CONFIG_ARCH_CLPS711X) += clk-clps711x.o obj-$(CONFIG_ARCH_EFM32) += clk-efm32gg.o obj-$(CONFIG_ARCH_HIGHBANK) += clk-highbank.o obj-$(CONFIG_MACH_LOONGSON1) += clk-ls1x.o
drivers/clk/clk-clps711x.c new file +192 -0
192 lines not on this page · raw message
include/dt-bindings/clock/clps711x-clock.h new file +27 -0
@@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 Alexander Shiyan <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +*/ + +#ifndef __DT_BINDINGS_CLOCK_CLPS711X_H +#define __DT_BINDINGS_CLOCK_CLPS711X_H + +#define CLPS711X_CLK_DUMMY 0 +#define CLPS711X_CLK_CPU 1 +#define CLPS711X_CLK_BUS 2 +#define CLPS711X_CLK_PLL 3 +#define CLPS711X_CLK_TIMERREF 4 +#define CLPS711X_CLK_TIMER1 5 +#define CLPS711X_CLK_TIMER2 6 +#define CLPS711X_CLK_PWM 7 +#define CLPS711X_CLK_SPIREF 8 +#define CLPS711X_CLK_SPI 9 +#define CLPS711X_CLK_UART 10 +#define CLPS711X_CLK_TICK 11 +#define CLPS711X_CLK_MAX 12 + +#endif
Signature · 1 line
1.8.5.5