All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrzej Hajda <a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: Andrzej Hajda <a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	Tomasz Figa <t.figa-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	Kukjin Kim <kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	Mike Turquette
	<mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Kyungmin Park
	<kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	"moderated list:OPEN FIRMWARE AND..."
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"moderated list:ARM/S5P EXYNOS AR..."
	<linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH RESEND v2 10/12] ARM: exynos5440: create a DT header defining CLK IDs
Date: Tue, 07 Jan 2014 15:47:38 +0100	[thread overview]
Message-ID: <1389106060-20291-11-git-send-email-a.hajda@samsung.com> (raw)
In-Reply-To: <1389106060-20291-1-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>

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 <a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Signed-off-by: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
---
 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 <a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
+ *
+ * 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 */
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: a.hajda@samsung.com (Andrzej Hajda)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH RESEND v2 10/12] ARM: exynos5440: create a DT header defining CLK IDs
Date: Tue, 07 Jan 2014 15:47:38 +0100	[thread overview]
Message-ID: <1389106060-20291-11-git-send-email-a.hajda@samsung.com> (raw)
In-Reply-To: <1389106060-20291-1-git-send-email-a.hajda@samsung.com>

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 <a.hajda@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 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 <a.hajda@samsung.com>
+ *
+ * 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 */
-- 
1.8.3.2

  parent reply	other threads:[~2014-01-07 14:47 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-07 14:47 [PATCH RESEND v2 00/12] clk/exynos convert clock IDs to macros Andrzej Hajda
2014-01-07 14:47 ` Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 01/12] ARM: exynos4: create a DT header defining CLK IDs Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-08  0:53   ` Tomasz Figa
2014-01-08  0:53     ` Tomasz Figa
     [not found] ` <1389106060-20291-1-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-01-07 14:47   ` [PATCH RESEND v2 02/12] ARM: dts: exynos4: convert magic numbers to macros in clock bindings Andrzej Hajda
2014-01-07 14:47     ` Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda [this message]
2014-01-07 14:47     ` [PATCH RESEND v2 10/12] ARM: exynos5440: create a DT header defining CLK IDs Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 03/12] clk: exynos4: replace clock ID private enums with IDs from DT header Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 04/12] ARM: exynos5250: create a DT header defining CLK IDs Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 05/12] ARM: dts: exynos5250: convert magic numbers to macros in clock bindings Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 06/12] clk: exynos5250: replace clock ID private enums with IDs from DT header Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 07/12] ARM: exynos5420: create a DT header defining CLK IDs Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 08/12] ARM: dts: exynos5420: convert magic numbers to macros in clock bindings Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 09/12] clk: exynos5420: replace clock ID private enums with IDs from DT header Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 11/12] ARM: dts: exynos5440: convert magic numbers to macros in clock bindings Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-07 14:47 ` [PATCH RESEND v2 12/12] clk: exynos5440: replace clock ID private enums with IDs from DT header Andrzej Hajda
2014-01-07 14:47   ` Andrzej Hajda
2014-01-07 15:17 ` [PATCH RESEND v2 00/12] clk/exynos convert clock IDs to macros Tomasz Figa
2014-01-07 15:17   ` Tomasz Figa
2014-01-27 21:49   ` Mike Turquette
2014-01-27 21:49     ` Mike Turquette
2014-02-14  0:10     ` Kukjin Kim
2014-02-14  0:10       ` Kukjin Kim
2014-02-14  0:17       ` Kukjin Kim
2014-02-14  0:17         ` Kukjin Kim
2014-02-14 10:41         ` Tomasz Figa
2014-02-14 10:41           ` Tomasz Figa
2014-02-14 11:14           ` Sachin Kamat
2014-02-14 11:14             ` Sachin Kamat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1389106060-20291-11-git-send-email-a.hajda@samsung.com \
    --to=a.hajda-sze3o3uu22jbdgjk7y7tuq@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=t.figa-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.