Skip to content

ARM: sa1100: use clock api to get cpu freq in fb and pcmcia drivers

Dmitry Eremin-Solenikov linux-arm-kernel linux-fbdev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v15 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ARM: sa1100: add cpu clockarch/arm/mach-sa1100/clock.c+34 -70 replies
2/6ARM: sa1100: add a clock alias for sa1111 pcmcia devicearch/arm/mach-sa1100/clock.c+2 -00 replies
3/6fbdev: sa1100fb: make use of device clockdrivers/video/fbdev/sa1100fb.c drivers/video/fbdev/sa1100fb.h+24 -70 replies
4/6pcmcia: soc-common: enable/disable socket clocksdrivers/pcmcia/soc_common.c+4 -00 replies
5/6pcmcia: sa1111: provide device clockdrivers/pcmcia/sa1111_generic.c+7 -00 replies
6/6pcmcia: sa1100: make use of device clockdrivers/pcmcia/sa1100_generic.c drivers/pcmcia/sa11xx_base.c+13 -20 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchTomi Valkeinen
1/6
2/6
3/6A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/6] ARM: sa1100: use clock api to get cpu freq in fb and pcmcia drivers

[Changes since V1:
- reorder patches to add sa1100 and sa1111 clocks before using them in sa1100 pcmcia driver.
- Fix error returns in case clk_get returns an error.
- Call clk_prepare_enable/clk_disable_unprepare for the proper API usage.]

On SA-1100 framebuffer and PCMCIA drivers make use of cpufreq_get(0) function call to determine the cpu frequency. Russell's commit 1937f5b91833e2e8e53bcc821fc7a5fbe6ccb9b5 (ARM: fix sa1100 build) fixed the build issues, but broke two devices (Collie and Jornada720). For those two boards the cpufreq code gets compiled but is not enabled (as board files do not provide timing information for the CPUFREQ driver). Thus cpufreq_get(0) returns incorrect value and incorrect timings get programmed into the hardware.

PXA2xx (the very similar platform) uses Clock API to determine CPU frequency both in framebuffer and PCMCIA drivers. These patches make similar changes to StrongARM drivers.

--
With best wishes
Dmitry