From patchwork Tue Jan 7 14:47:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 3448701 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 E70699F374 for ; Tue, 7 Jan 2014 14:48:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 52066200F3 for ; Tue, 7 Jan 2014 14:48:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A5B11200F4 for ; Tue, 7 Jan 2014 14:48:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751911AbaAGOso (ORCPT ); Tue, 7 Jan 2014 09:48:44 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:42688 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbaAGOsZ (ORCPT ); Tue, 7 Jan 2014 09:48:25 -0500 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 <0MZ100DT3D4MXN80@mailout1.w1.samsung.com>; Tue, 07 Jan 2014 14:48:22 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-db-52cc13b6bc85 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 4D.1D.23059.6B31CC25; Tue, 07 Jan 2014 14:48:22 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MZ1002YFD4CZ570@eusync2.samsung.com>; Tue, 07 Jan 2014 14:48:22 +0000 (GMT) From: Andrzej Hajda To: linux-arm-kernel@lists.infradead.org Cc: Andrzej Hajda , Tomasz Figa , 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 RESEND v2 10/12] ARM: exynos5440: create a DT header defining CLK IDs Date: Tue, 07 Jan 2014 15:47:38 +0100 Message-id: <1389106060-20291-11-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1389106060-20291-1-git-send-email-a.hajda@samsung.com> References: <1389106060-20291-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCJMWRmVeSWpSXmKPExsVy+t/xK7rbhM8EGRxbJ2xxa905Vov5R4BE 74KrbBZnm96wW2x6fI3VYsb5fUwWTydcZLNYP+M1iwOHx51re9g8Ni+p9+jbsorR4/MmuQCW KC6blNSczLLUIn27BK6MH+862QuW8FW0rjvJ2MD4kruLkZNDQsBEYuGtNewQtpjEhXvr2boY uTiEBJYySrzcNp8FwuljkujYt4IFpIpNQFPi7+abbCC2iICGxJSux+wgRcwCl5kkljz7AZYQ FgiXmHn6D2MXIwcHi4CqxI/D4SBhXgEXiY/Xr0FtU5BY9mUtM4jNCRT/c+w6C0i5kICzxIwV xhMYeRcwMqxiFE0tTS4oTkrPNdQrTswtLs1L10vOz93ECAmpLzsYFx+zOsQowMGoxMP7Yu+p ICHWxLLiytxDjBIczEoivMw3TgcJ8aYkVlalFuXHF5XmpBYfYmTi4JRqYIxZovtTsv+AzIet HQzz3SMeXJU1Egzv/7Io0FvJ1mL+hh3lM28U7spQY8mZm7BPeVN22wWb6br8F2uVMvPlDNub +bn8/HpeacjNKWvP/eNxUFJoonqtnXJnOL/bVbeziTfXBX9O0LzyqN++2ow3w+EEpyBfx7M2 pfqNXStDipKvxv+7zHVdiaU4I9FQi7moOBEAEJkkPQcCAAA= 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=-6.9 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 */