[PATCH 1/2] pinctrl: bcm2835: add pinctrl pre-processor define

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

Signed-off-by: Alexander Stein <alexanders83@xxxxxx>
---
 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@xxxxxx>
+ *
+ */
+
+#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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux