Skip to content

Share clock framework code between SH and SH-Mobile ARM

Magnus Damm linux-sh 1 version New

Get series with b4
b4 am 20100325070742.24148.57892.sendpatchset@t400s

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ARM: mach-shmobile: Makefile update for old clock codearch/arm/mach-shmobile/Makefile+6 -30 replies
2/6sh: move sh asm/clock.h contents to linux/sh_clk.harch/sh/include/asm/clock.h arch/sh/kernel/cpu/clock-cpg.c arch/sh/kernel/cpu/clock.c +1 more+174 -1680 replies
3/6sh: move sh clock.c contents to drivers/sh/clk.carch/sh/kernel/cpu/clock.c drivers/sh/Makefile drivers/sh/clk.c +1 more+652 -6270 replies
4/6sh: move sh clock-cpg.c contents to drivers/sh/clk-cpg.carch/sh/kernel/cpu/Makefile arch/sh/kernel/cpu/clock-cpg.c drivers/sh/Makefile +1 more+297 -2900 replies
5/6ARM: mach-shmobile: SH-Mobile ARM specific clock codearch/arm/mach-shmobile/Kconfig arch/arm/mach-shmobile/Makefile arch/arm/mach-shmobile/clock.c+38 -00 replies
6/6ARM: mach-shmobile: initial sh7372 clock frameworkarch/arm/mach-shmobile/Kconfig arch/arm/mach-shmobile/Makefile arch/arm/mach-shmobile/clock-sh7372.c +2 more+314 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/06] 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(-)