Skip to content

OMAP3 clock patches: first set (take two)

Paul Walmsley linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7omap2 arch: fix CONTROL_DEVCONF addresses for OMAP3430include/asm-arm/arch-omap/omap34xx.h+8 -10 replies
2/7omap2 clock: split out OMAP2/3 common defines, clksel ratesarch/arm/mach-omap2/clock.c arch/arm/mach-omap2/clock.h arch/arm/mach-omap2/clock24xx.c +3 more+74 -700 replies
3/7omap2 clock: add support for inverted enable bitsarch/arm/mach-omap2/clock.c include/asm-arm/arch-omap/clock.h+19 -50 replies
4/7omap2 clock: add OMAP3430 clock definitions, basic codearch/arm/mach-omap2/Makefile arch/arm/mach-omap2/clock.c arch/arm/mach-omap2/clock34xx.c +7 more+2655 -280 replies
5/7gpmc: fix GPMC code to boot on 3430arch/arm/mach-omap2/gpmc.c+5 -10 replies
6/7dmtimer: fix source clocks for 3430arch/arm/plat-omap/dmtimer.c+2 -30 replies
7/7gpio: fix GPIO clock code for 3430arch/arm/plat-omap/gpio.c include/asm-arm/arch-omap/gpio.h+38 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] OMAP3 clock patches: first set (take two)

Hello,

this is take two of the initial OMAP3430 clock tree patches, with several bug fixes. UART clock enable warnings are now fixed, and some clocks that didn't recalculate rates correctly are now fixed. A few more details are in the per-patch notes.

Boot tested on N800 and 3430SDP. Diffstat and size have been updated at the end of the message. Testing welcome, as always.

- Paul

-----------------------------------------------------------------------

These patches implement the OMAP3430 clock tree, along with the basic clock code necessary to support it. The clock definitions were drawn from 3430 ES1 and ES2 TRMs, and the patches try to adhere to the TRM as closely as is practicable.

The clock tree is mostly 3430ES1-based. A few 3430ES2 features are implemented, such as 16.8MHz SYS_CLK and PWRDN bits. Some ES2 clocks are yet to be defined, and will be added in subsequent patches. Also not included in this patch set are DPLL control patches, L3 divider code, and OPP code; these will be sent as separate patch sets.

Most of the new code is in patch 4. Patches 1 & 2 are cleanup/bugfix patches; patch 3 adds support for PWRDN bit usage in the clock framework; patches 5-7 fix the GPMC, dmtimer, and GPIO drivers for boot.

The code has been boot-tested on 3430SDP using a 3430ES1 chip.

Thanks to Tony Lindgren and Richard Woodruff for their assistance in providing support and information. These patches also include some silicon errata drawn from the TI CDP kernel clock code, written by Karthik Dasu.

Review and comments are appreciated,

- Paul

 arch/arm/mach-omap2/clock.c                       |   66
 arch/arm/mach-omap2/cm.h                          |    2
 include/asm-arm/arch-omap/clock.h                 |   12
 linux-omap/arch/arm/mach-omap2/Makefile           |    1
 linux-omap/arch/arm/mach-omap2/clock.c            |   36
 linux-omap/arch/arm/mach-omap2/clock.h            |   22
 linux-omap/arch/arm/mach-omap2/clock24xx.c        |    7
 linux-omap/arch/arm/mach-omap2/clock24xx.h        |   75
 linux-omap/arch/arm/mach-omap2/clock34xx.c        |  222 ++
 linux-omap/arch/arm/mach-omap2/clock34xx.h        | 2214 ++++++++++++++++++++++
 linux-omap/arch/arm/mach-omap2/cm.h               |    2
 linux-omap/arch/arm/mach-omap2/cm_regbits_34xx.h  |  138 +
 linux-omap/arch/arm/mach-omap2/gpmc.c             |    6
 linux-omap/arch/arm/mach-omap2/prcm_common.h      |   41
 linux-omap/arch/arm/mach-omap2/prm.h              |    2
 linux-omap/arch/arm/mach-omap2/prm_regbits_34xx.h |    9
 linux-omap/arch/arm/plat-omap/dmtimer.c           |    5
 linux-omap/arch/arm/plat-omap/gpio.c              |   40
 linux-omap/include/asm-arm/arch-omap/clock.h      |    2
 linux-omap/include/asm-arm/arch-omap/gpio.h       |    2
 linux-omap/include/asm-arm/arch-omap/omap34xx.h   |    9
 21 files changed, 2801 insertions(+), 112 deletions(-)

size:
text data bss dec hex filename

2763816  115776   96224 2975816  2d6848 vmlinux.orig
2768744  130432   96256 2995432  2db4e8 vmlinux