devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] pinctrl: bcm2835: add pinctrl pre-processor define
@ 2015-04-12 12:33 Alexander Stein
       [not found] ` <1428842036-14202-1-git-send-email-alexanders83-S0/GAf8tV78@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Stein @ 2015-04-12 12:33 UTC (permalink / raw)
  To: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Stephen Warren, Lee Jones
  Cc: Alexander Stein, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

This adds defines for the BCM2835 function selections. This is notably
useful as the functions are not ordered.

Signed-off-by: Alexander Stein <alexanders83-S0/GAf8tV78@public.gmane.org>
---
 include/dt-bindings/pinctrl/bcm2835.h | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 include/dt-bindings/pinctrl/bcm2835.h

diff --git a/include/dt-bindings/pinctrl/bcm2835.h b/include/dt-bindings/pinctrl/bcm2835.h
new file mode 100644
index 000000000000..e90f437ce4a6
--- /dev/null
+++ b/include/dt-bindings/pinctrl/bcm2835.h
@@ -0,0 +1,20 @@
+/*
+ * This header provides constants for bcm2835 pinctrl bindings.
+ *
+ * Copyright (C) 2015 Alexander Stein <alexanders83-S0/GAf8tV78@public.gmane.org>
+ *
+ */
+
+#ifndef __DT_BINDINGS_BCM2835_PINCTRL_H__
+#define __DT_BINDINGS_BCM2835_PINCTRL_H__
+
+#define BCM2835_GPIO_INPUT		0
+#define BCM2835_GPIO_OUTPUT	1
+#define BCM2835_GPIO_ALT0		4
+#define BCM2835_GPIO_ALT1		5
+#define BCM2835_GPIO_ALT2		6
+#define BCM2835_GPIO_ALT3		7
+#define BCM2835_GPIO_ALT4		3
+#define BCM2835_GPIO_ALT5		2
+
+#endif /* __DT_BINDINGS_BCM2835_PINCTRL_H__ */
-- 
2.3.5

--
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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-13 20:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-12 12:33 [PATCH 1/2] pinctrl: bcm2835: add pinctrl pre-processor define Alexander Stein
     [not found] ` <1428842036-14202-1-git-send-email-alexanders83-S0/GAf8tV78@public.gmane.org>
2015-04-12 12:33   ` [PATCH 2/2] ARM: bcm2835: Use pinctrl defines Alexander Stein
2015-04-13  3:22   ` [PATCH 1/2] pinctrl: bcm2835: add pinctrl pre-processor define Stephen Warren
2015-04-13 16:31   ` Stefan Wahren
     [not found]     ` <1128901690.288098.1428942677965.JavaMail.open-xchange-h4m1HHXQYNGvCDav5jC2oMgmgJlYmuWJ@public.gmane.org>
2015-04-13 17:43       ` Alexander Stein
2015-04-13 20:14         ` Stefan Wahren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).