Skip to contentSkip to conversation

sh: move sh clock-cpg.c contents to drivers/sh/clk-cpg.c

PATCH New Magnus Damm 1 participant 1 message Mar 25, 2010 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 sh: move sh clock-cpg.c contents to drivers/sh/clk-cpg.c

From: Magnus Damm <[email protected]>

Move the CPG helpers to drivers/sh/clk-cpg.c to
allow SH-Mobile ARM to make use of them. All
functions except the legacy CPG stuff is moved.

---

 arch/sh/kernel/cpu/Makefile    |    2 
 arch/sh/kernel/cpu/clock-cpg.c |  289 ---------------------------------------
 drivers/sh/Makefile            |    2 
 drivers/sh/clk-cpg.c           |  294 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 297 insertions(+), 290 deletions(-)
arch/sh/kernel/cpu/Makefile +1 -1
@@ -16,7 +16,7 @@ obj-$(CONFIG_ARCH_SHMOBILE)	+= shmobile/
 # Common interfaces.
 
 obj-$(CONFIG_SH_ADC)		+= adc.o
-obj-$(CONFIG_SH_CLK_CPG)	+= clock-cpg.o
+obj-$(CONFIG_SH_CLK_CPG_LEGACY)	+= clock-cpg.o
 obj-$(CONFIG_SH_FPU)		+= fpu.o
 obj-$(CONFIG_SH_FPU_EMU)	+= fpu.o
 
arch/sh/kernel/cpu/clock-cpg.c +0 -289

299 lines not on this page · raw message

drivers/sh/Makefile +2 -0
@@ -5,4 +5,6 @@ obj-$(CONFIG_SUPERHYWAY)	+= superhyway/
 obj-$(CONFIG_MAPLE)		+= maple/
 obj-$(CONFIG_GENERIC_GPIO)	+= pfc.o
 obj-$(CONFIG_SUPERH)		+= clk.o
+# both clk.o and clk-cpg.o needed by SH-Mobile ARM
+obj-$(CONFIG_SH_CLK_CPG)	+= clk.o clk-cpg.o
 obj-y				+= intc.o
drivers/sh/clk-cpg.c new file +294 -0

294 lines not on this page · raw message