lkml.org 
[lkml]   [2011]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/7] Add a generic struct clk
Date
Hi all,

The goal of this series is to provide a cross-platform clock framework
that platforms can use to model their clock trees and perform common
operations on them. Currently everyone re-invents their own clock tree
inside platform code which makes it impossible for drivers to use the
clock APIs safely across many platforms and for distro's to compile
multi-platform kernels which all redefine struct clk and its operations.

This is the second version of the common clock patches which were
originally posted by Jeremy Kerr and then re-posted with some additional
patches by Mark Brown. Mark's re-post didn't have any changes done to
the original four patches from Jeremy which is why this series is "v2".

The changes in this series are minimal: I've folded in some of Mark's
fixes and most of the comments posted to his series as well as rebasing
on top of v3.1-rc7. The design and functionality hasn't changed much
since Jeremy posted v1 of this series. Propagating the rate change up
to the parent has been removed from clk_set_rate since that needs some
more thought. I also dropped Mark's change to append a device's name to
a clk name since device tree might solve this neatly. Again more
discussion around that would be good.

v1 of the series can be found at,
http://article.gmane.org/gmane.linux.kernel/1143182

Mark's re-post (v1+) can be found at,
http://article.gmane.org/gmane.linux.ports.arm.kernel/129889

Todo in follow-up patches:
clk_set_parent
Implement a *safe* upstream propagation for parent rate changes
Track tree topology and export to userspace (sysfs or debugfs)
Manage root clocks globally
Device tree support
Per-tree locking instead of framework-wide locking
Device driver rate-change notifiers

Jeremy Kerr (4):
clk: Add a generic clock infrastructure
clk: Implement clk_set_rate
clk: Add fixed-rate clock
clk: Add simple gated clock

Mark Brown (3):
clk: Add Kconfig option to build all generic clk drivers
clk: Add initial WM831x clock driver
x86: Enable generic clk API on x86

MAINTAINERS | 1 +
arch/x86/Kconfig | 1 +
drivers/clk/Kconfig | 27 +++-
drivers/clk/Makefile | 4 +
drivers/clk/clk-fixed.c | 24 +++
drivers/clk/clk-gate.c | 78 ++++++++++
drivers/clk/clk-wm831x.c | 386 ++++++++++++++++++++++++++++++++++++++++++++++
drivers/clk/clk.c | 291 ++++++++++++++++++++++++++++++++++
drivers/clk/clkdev.c | 7 +
include/linux/clk.h | 179 ++++++++++++++++++++--
10 files changed, 985 insertions(+), 13 deletions(-)
create mode 100644 drivers/clk/clk-fixed.c
create mode 100644 drivers/clk/clk-gate.c
create mode 100644 drivers/clk/clk-wm831x.c
create mode 100644 drivers/clk/clk.c

--
1.7.4.1



\
 
 \ /
  Last update: 2011-09-23 00:33    [W:0.442 / U:0.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site