[PATCH 1/2] pinctrl: bcm2835: add pinctrl pre-processor define
Alexander Stein
alexanders83 at web.de
Sun Apr 12 05:33:55 PDT 2015
This adds defines for the BCM2835 function selections. This is notably
useful as the functions are not ordered.
Signed-off-by: Alexander Stein <alexanders83 at web.de>
---
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 at web.de>
+ *
+ */
+
+#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
More information about the linux-rpi-kernel
mailing list