clk: bcm: prerequisite and bus clock support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest7 patches 0 repliesNew
- v57 patches 0 repliesSuperseded
- v47 patches 5 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 5 patches | 0 replies | Superseded | |
| v2 | 4 of 5 patches | 9 replies | Superseded | |
| v1 | 5 patches | 0 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | clk: kona: move some codedrivers/ | +87 | 0 replies | |
| 2/7 | clk: kona: don't init clocks at startup timedrivers/ drivers/ drivers/ | +23 | 0 replies | |
| 3/7 | clk: bcm281xx: add an initialized flagdrivers/ drivers/ | +19 | 0 replies | |
| 4/7 | clk: bcm281xx: implement prerequisite clocksdrivers/ drivers/ | +85 | 0 replies | |
| 5/7 | clk: bcm281xx: add bus clock supportdrivers/ drivers/ drivers/ | +162 | 0 replies | |
| 6/7 | clk: bcm281xx: define a bus clockdrivers/ include/ | +14 | 0 replies | |
| 7/7 | ARM: dts: add bus clock bsc3_apb for bcm281xxarch/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
Cover letter [PATCH v6 0/7] clk: bcm: prerequisite and bus clock support
Currently only peripheral clocks are supported for Broadcom platforms that use Kona style CCUs for clocking. This series adds support for bus clocks as well.
One motivation for doing this is that there exist peripheral clocks that cannot be configured without having first enabled a related bus clock. Adding bus clock support allows such peripheral clocks to be usable.
This also imposes a new requirement, however--that the bus clock be enabled *before* operating on the clock that depends on it. For this, we define the notion of a "prerequisite" clock. If a clock has a prerequisite specified, that prequisite clock will be prepared and enabled at the beginning of the dependent clock's ->prepare method. The prerequisite clock is similarly disabled and unprepared at the end of the dependent clock's ->unprepare method.
These patches are based on Linux 3.16-rc1.
They are available here:
http://git.linaro.org/landing-teams/working/broadcom/kernel.git
Branch review/bcm-bus-clk-v6
-Alex
Version history:
v6 - No change; just rebased on v3.16-rc1.
v5 - All clocks get initialized the first time they are prepared.
- A per-clock flag now avoids doing initialization more than once.
- Prerequisite clocks get prepared and enabled in a dependent clock's prepare routine, *before* preparing the dependent.
- No longer require nestable CCU write enable requests.
- Dropped requirement that clock and prerequisite share CCU.
v4 - Remove boot-time initialization of clocks, opting instead to
do this work when needed, via clock ->prepare method.
- Prerequisite clocks are now prepared and enabled in a dependent clock's ->prepare method.
- Use __clk_lookup() to get the prerequisite clock pointer.
- ccu_write_enable() calls can now be nested
v3: - Deleted clk_lookup field from struct kona_clk.
- Now use term "initialized" rather than "enabled".
v2: - Added field "p" to the previously unnamed prereq union.
Alex Elder (7):
clk: kona: move some code
clk: kona: don't init clocks at startup time
clk: bcm281xx: add an initialized flag
clk: bcm281xx: implement prerequisite clocks
clk: bcm281xx: add bus clock support
clk: bcm281xx: define a bus clock
ARM: dts: add bus clock bsc3_apb for bcm281xx
arch/arm/boot/dts/bcm11351.dtsi | 3 +- drivers/clk/bcm/clk-bcm281xx.c | 13 +- drivers/clk/bcm/clk-kona-setup.c | 99 ++++++++++- drivers/clk/bcm/clk-kona.c | 310 +++++++++++++++++++++++++---------- drivers/clk/bcm/clk-kona.h | 36 +++- include/dt-bindings/clock/bcm281xx.h | 3 +- 6 files changed, 364 insertions(+), 100 deletions(-)
Signature · 1 line
1.9.1