Skip to contentSkip to conversation

Share clock framework code between SH and SH-Mobile ARM

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

lore
Share & tools
lore
#0 lore raw

cover Share clock framework code between SH and SH-Mobile ARM

Share clock framework code between SH and SH-Mobile ARM

[PATCH 01/06] ARM: mach-shmobile: Makefile update for old clock code [PATCH 02/06] sh: move sh asm/clock.h contents to linux/sh_clk.h [PATCH 03/06] sh: move sh clock.c contents to drivers/sh/clk.c [PATCH 04/06] sh: move sh clock-cpg.c contents to drivers/sh/clk-cpg.c [PATCH 05/06] ARM: mach-shmobile: SH-Mobile ARM specific clock code [PATCH 06/06] ARM: mach-shmobile: initial sh7372 clock framework

These patches moves the SH clock framework to drivers/sh so it can be shared between SH and SH-Mobile ARM. On top of this initial clock framework support is added for the sh7372 processor.

I expect to have to rework some and rebase most of these patches, let me know if you have any ideas on how to share the code in a better way.

---

 arch/arm/mach-shmobile/Kconfig               |    5 
 arch/arm/mach-shmobile/Makefile              |   16 
 arch/arm/mach-shmobile/board-ap4evb.c        |   16 
 arch/arm/mach-shmobile/clock-sh7372.c        |  297 +++++++++++
 arch/arm/mach-shmobile/clock.c               |   33 +
 arch/arm/mach-shmobile/include/mach/common.h |    1 
 arch/arm/mach-shmobile/setup-sh7372.c        |    2 
 arch/sh/include/asm/clock.h                  |  167 ------
 arch/sh/kernel/cpu/Makefile                  |    2 
 arch/sh/kernel/cpu/clock-cpg.c               |  291 -----------
 arch/sh/kernel/cpu/clock.c                   |  629 -------------------------
 drivers/sh/Makefile                          |    3 
 drivers/sh/clk-cpg.c                         |  294 +++++++++++
 drivers/sh/clk.c                             |  650 ++++++++++++++++++++++++++
 include/linux/sh_clk.h                       |  172 ++++++
 15 files changed, 1484 insertions(+), 1094 deletions(-)