From patchwork Fri Sep 6 10:12:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 2854474 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5455B9F494 for ; Fri, 6 Sep 2013 10:14:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E760202B1 for ; Fri, 6 Sep 2013 10:14:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5E1F202B3 for ; Fri, 6 Sep 2013 10:14:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751164Ab3IFKOZ (ORCPT ); Fri, 6 Sep 2013 06:14:25 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:15068 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751190Ab3IFKOW (ORCPT ); Fri, 6 Sep 2013 06:14:22 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSP009PE8FSRP50@mailout1.w1.samsung.com>; Fri, 06 Sep 2013 11:14:18 +0100 (BST) X-AuditID: cbfec7f4-b7f0a6d000007b1b-ec-5229aafa74c2 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id E3.74.31515.AFAA9225; Fri, 06 Sep 2013 11:14:18 +0100 (BST) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MSP00I458FJKX90@eusync3.samsung.com>; Fri, 06 Sep 2013 11:14:18 +0100 (BST) From: Andrzej Hajda To: linux-arm-kernel@lists.infradead.org Cc: Andrzej Hajda , Kukjin Kim , Mike Turquette , Kyungmin Park , devicetree@vger.kernel.org (moderated list:OPEN FIRMWARE AND...), linux-samsung-soc@vger.kernel.org (moderated list:ARM/S5P EXYNOS AR...) Subject: [PATCH v2 10/12] ARM: exynos5440: create a DT header defining CLK IDs Date: Fri, 06 Sep 2013 12:12:39 +0200 Message-id: <1378462361-13680-11-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.1.2 In-reply-to: <1378462361-13680-1-git-send-email-a.hajda@samsung.com> References: <1378462361-13680-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPJMWRmVeSWpSXmKPExsVy+t/xq7q/VmkGGaxabWJxa905Vov5R4BE 74KrbBZnm96wW2x6fI3VYsb5fUwWTydcZHNg97hzbQ+bx+Yl9R59W1YxenzeJBfAEsVlk5Ka k1mWWqRvl8CVcb9XomAJX8XLnQcZGxhfcncxcnJICJhI7NnwgR3CFpO4cG89WxcjF4eQwFJG ifvTFzJBOH1MEu8nbWUDqWIT0JT4u/kmmC0ioCExpesxO0gRs8BGJolJy9YxgSSEBfwkrn29 CGazCKhK7Lm3jrWLkYODV8BFYsW+HIhtChI/L58Am8MJFP7feR3MFhJwllgz8TjjBEbeBYwM qxhFU0uTC4qT0nMN9YoTc4tL89L1kvNzNzFCAunLDsbFx6wOMQpwMCrx8HL0aAQJsSaWFVfm HmKU4GBWEuEV19AMEuJNSaysSi3Kjy8qzUktPsTIxMEp1cC4orQj8WfW+cpT267sWbpUcUY9 sxpTpphIYe0LTiuPVR+Y9h4uWxK5RKfkzz15tiorhieLLwQd0qvZ47LDOGTJ/vgH4XmzWiUP TJWQcllTIRb+rU10gaZvetu0S2yqp+VfhwTqcWjps06t9L6u/J/rrp1R3//4+0tvPW5aFxMR 5Sux2ctvygUlluKMREMt5qLiRABvQZ7xAgIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 The patch adds header file defining clock IDs. This allows to use macros instead of magic numbers in DT bindings. Signed-off-by: Andrzej Hajda Signed-off-by: Kyungmin Park --- include/dt-bindings/clock/exynos5440.h | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 include/dt-bindings/clock/exynos5440.h diff --git a/include/dt-bindings/clock/exynos5440.h b/include/dt-bindings/clock/exynos5440.h new file mode 100644 index 0000000..e2a0c61 --- /dev/null +++ b/include/dt-bindings/clock/exynos5440.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2013 Samsung Electronics Co., Ltd. + * Author: Andrzej Haja + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Device Tree binding constants for Exynos5440 clock controller. +*/ + +#ifndef _DT_BINDINGS_CLOCK_EXYNOS_5440_H +#define _DT_BINDINGS_CLOCK_EXYNOS_5440_H + +#define CLK_XTAL 1 +#define CLK_ARM_CLK 2 +#define CLK_SPI_BAUD 16 +#define CLK_PB0_250 17 +#define CLK_PR0_250 18 +#define CLK_PR1_250 19 +#define CLK_B_250 20 +#define CLK_B_125 21 +#define CLK_B_200 22 +#define CLK_SATA 23 +#define CLK_USB 24 +#define CLK_GMAC0 25 +#define CLK_CS250 26 +#define CLK_PB0_250_O 27 +#define CLK_PR0_250_O 28 +#define CLK_PR1_250_O 29 +#define CLK_B_250_O 30 +#define CLK_B_125_O 31 +#define CLK_B_200_O 32 +#define CLK_SATA_O 33 +#define CLK_USB_O 34 +#define CLK_GMAC0_O 35 +#define CLK_CS250_O 36 + +/* must be greater than maximal clock id */ +#define CLK_NR_CLKS 37 + +#endif /* _DT_BINDINGS_CLOCK_EXYNOS_5440_H */