Skip to contentSkip to conversation

sh: Merge sh7343 and sh7722 clock code

PATCH New Magnus Damm 1 participant 1 message Jul 17, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: Merge sh7343 and sh7722 clock code

From: Magnus Damm <[email protected]>

This code makes sh7343 share the sh7722 clock code. Instead of just using the good and very old sh7343 clock implmentation, switch to the new MSTPCR enabled clock code. SIU clocks are disabled on sh7343 for now.

With this change all SuperH Mobile devices now use the same clock code.

---

 arch/sh/kernel/cpu/sh4a/Makefile       |    2 
 arch/sh/kernel/cpu/sh4a/clock-sh7343.c |   99 --------------------------------
 arch/sh/kernel/cpu/sh4a/clock-sh7722.c |   70 ++++++++++++----------
 3 files changed, 41 insertions(+), 130 deletions(-)
arch/sh/kernel/cpu/sh4a/Makefile +1 -1
@@ -21,7 +21,7 @@ clock-$(CONFIG_CPU_SUBTYPE_SH7763)	:= cl
 clock-$(CONFIG_CPU_SUBTYPE_SH7770)	:= clock-sh7770.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7780)	:= clock-sh7780.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7785)	:= clock-sh7785.o
-clock-$(CONFIG_CPU_SUBTYPE_SH7343)	:= clock-sh7343.o
+clock-$(CONFIG_CPU_SUBTYPE_SH7343)	:= clock-sh7722.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7722)	:= clock-sh7722.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7723)	:= clock-sh7722.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7366)	:= clock-sh7722.o
arch/sh/kernel/cpu/sh4a/clock-sh7343.c deleted +0 -99

99 lines not on this page · raw message

arch/sh/kernel/cpu/sh4a/clock-sh7722.c +40 -30

117 lines not on this page · raw message