From patchwork Thu Aug 8 06:15:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris BREZILLON X-Patchwork-Id: 2840771 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B15AFBF535 for ; Thu, 8 Aug 2013 06:17:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C33D9202DB for ; Thu, 8 Aug 2013 06:17:02 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B83EF202D1 for ; Thu, 8 Aug 2013 06:17:01 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7JWt-0002u2-5T; Thu, 08 Aug 2013 06:16:59 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7JWo-0007PW-O2; Thu, 08 Aug 2013 06:16:55 +0000 Received: from 4.mo4.mail-out.ovh.net ([178.32.98.131] helo=mo4.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7JWm-0007OP-Fi for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2013 06:16:53 +0000 Received: from mail438.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo4.mail-out.ovh.net (Postfix) with SMTP id 21230104DDBB for ; Thu, 8 Aug 2013 08:16:31 +0200 (CEST) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 8 Aug 2013 08:20:04 +0200 Received: from cha74-5-78-236-240-82.fbx.proxad.net (HELO localhost.localdomain) (b.brezillon@overkiz.com@78.236.240.82) by ns0.ovh.net with SMTP; 8 Aug 2013 08:20:03 +0200 From: Boris BREZILLON To: Grant Likely , Rob Herring , Rob Landley , Andrew Victor , Nicolas Ferre , Jean-Christophe Plagniol-Villard , Russell King , Mike Turquette , Felipe Balbi , Greg Kroah-Hartman , Ludovic Desroches , Josh Wu , Richard Genoud X-Ovh-Mailout: 178.32.228.4 (mo4.mail-out.ovh.net) Subject: [PATCH v3 10/19] ARM: at91/dt: add system clk id definitions in dt-bindings include dir Date: Thu, 8 Aug 2013 08:15:04 +0200 Message-Id: <1375942504-9010-1-git-send-email-b.brezillon@overkiz.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1375937608-3773-1-git-send-email-b.brezillon@overkiz.com> References: <1375937608-3773-1-git-send-email-b.brezillon@overkiz.com> X-Ovh-Tracer-Id: 4054084090394671152 X-Ovh-Remote: 78.236.240.82 (cha74-5-78-236-240-82.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeikedrtdehucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeikedrtdehucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130808_021652_708020_6BCE3E91 X-CRM114-Status: GOOD ( 13.89 ) X-Spam-Score: -0.2 (/) Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Boris BREZILLON X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds system clk ids definitions into dt-bindinds include dir (include/dt-bindings/clk/at91/'soc-name'/system-clk.h). These definitions will be used by dt definition to define and reference system clks. Signed-off-by: Boris BREZILLON --- .../dt-bindings/clk/at91/at91rm9200/clk-system.h | 16 +++++++++++++++ .../dt-bindings/clk/at91/at91sam9261/clk-system.h | 15 ++++++++++++++ include/dt-bindings/clk/at91/common/clk-system.h | 21 ++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 include/dt-bindings/clk/at91/at91rm9200/clk-system.h create mode 100644 include/dt-bindings/clk/at91/at91sam9261/clk-system.h create mode 100644 include/dt-bindings/clk/at91/common/clk-system.h diff --git a/include/dt-bindings/clk/at91/at91rm9200/clk-system.h b/include/dt-bindings/clk/at91/at91rm9200/clk-system.h new file mode 100644 index 0000000..43bccd5 --- /dev/null +++ b/include/dt-bindings/clk/at91/at91rm9200/clk-system.h @@ -0,0 +1,16 @@ +/* + * This header provides constants for AT91RM9200 system clocks. + * + * The constants defined in this header are being used in dts. + */ + +#ifndef _DT_BINDINGS_CLK_AT91RM9200_SYSTEM_H +#define _DT_BINDINGS_CLK_AT91RM9200_SYSTEM_H + +#include + +#define AT91RM9200_UDP_SYS_CLK 1 +#define AT91RM9200_MCKUDP_SYS_CLK 2 +#define AT91RM9200_UHP_SYS_CLK 4 + +#endif diff --git a/include/dt-bindings/clk/at91/at91sam9261/clk-system.h b/include/dt-bindings/clk/at91/at91sam9261/clk-system.h new file mode 100644 index 0000000..28a140a --- /dev/null +++ b/include/dt-bindings/clk/at91/at91sam9261/clk-system.h @@ -0,0 +1,15 @@ +/* + * This header provides constants for AT91SAM9261 system clocks. + * + * The constants defined in this header are being used in dts. + */ + +#ifndef _DT_BINDINGS_CLK_AT91SAM9261_SYSTEM_H +#define _DT_BINDINGS_CLK_AT91SAM9261_SYSTEM_H + +#include + +#define AT91SAM9261_HCK0_SYS_CLK 16 +#define AT91SAM9261_HCK1_SYS_CLK 17 + +#endif diff --git a/include/dt-bindings/clk/at91/common/clk-system.h b/include/dt-bindings/clk/at91/common/clk-system.h new file mode 100644 index 0000000..c0fb124 --- /dev/null +++ b/include/dt-bindings/clk/at91/common/clk-system.h @@ -0,0 +1,21 @@ +/* + * This header provides constants for AT91 system clocks. + * + * The constants defined in this header are being used in dts. + */ + +#ifndef _DT_BINDINGS_CLK_AT91_SYSTEM_H +#define _DT_BINDINGS_CLK_AT91_SYSTEM_H + +#define AT91_PCK_SYS_CLK 0 +#define AT91_DDRCK_SYS_CLK 2 +#define AT91_LCDCK_SYS_CLK 3 +#define AT91_SMDCK_SYS_CLK 4 +#define AT91_UHP_SYS_CLK 6 +#define AT91_UDP_SYS_CLK 7 + +#define AT91_PROG_SYS_CLK(id) (8 + id) + +#define AT91_MAX_SYS_CLKS 32 + +#endif