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 May 11, 2010 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 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 V2.

This to allow SH-Mobile ARM to share the code with SH. All functions except the legacy CPG stuff is moved.

---

 arch/sh/kernel/cpu/Makefile    |    2 
 arch/sh/kernel/cpu/clock-cpg.c |  295 ---------------------------------------
 drivers/sh/Makefile            |    1 
 drivers/sh/clk-cpg.c           |  298 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 300 insertions(+), 296 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 -295

304 lines not on this page · raw message

drivers/sh/Makefile +1 -0
@@ -5,4 +5,5 @@ obj-$(CONFIG_SUPERHYWAY)	+= superhyway/
 obj-$(CONFIG_MAPLE)		+= maple/
 obj-$(CONFIG_GENERIC_GPIO)	+= pfc.o
 obj-$(CONFIG_SUPERH)		+= clk.o
+obj-$(CONFIG_SH_CLK_CPG)	+= clk-cpg.o
 obj-y				+= intc.o
drivers/sh/clk-cpg.c new file +298 -0

298 lines not on this page · raw message