From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965144AbaE2OGI (ORCPT ); Thu, 29 May 2014 10:06:08 -0400 Received: from mail-ig0-f171.google.com ([209.85.213.171]:61126 "EHLO mail-ig0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965126AbaE2OGE (ORCPT ); Thu, 29 May 2014 10:06:04 -0400 From: Alex Elder To: mturquette@linaro.org, mporter@linaro.org, bcm@fixthebug.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/5] clk: bcm: prerequisite and bus clock support Date: Thu, 29 May 2014 09:05:56 -0500 Message-Id: <1401372361-18842-1-git-send-email-elder@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 initialized 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 initialized *before* 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 initialized first. For now this only affects startup-time initialization. These patches are based on Mike Turquette's current "clk-next" branch. 4c8f806 Merge branch 'clk-fixes' into clk-next They are available here: http://git.linaro.org/landing-teams/working/broadcom/kernel.git Branch review/bcm-bus-clk-v3 -Alex Version history: v3: - Deleted unused 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 (5): 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 | 96 +++++++++++++++++++++++++++- drivers/clk/bcm/clk-kona.c | 120 ++++++++++++++++++++++++++++++++++- drivers/clk/bcm/clk-kona.h | 34 +++++++++- include/dt-bindings/clock/bcm281xx.h | 3 +- 6 files changed, 258 insertions(+), 11 deletions(-) -- 1.9.1