summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/pinctrl-coh901.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-08-13 10:56:43 +0200
committerLinus Walleij <linus.walleij@linaro.org>2012-08-13 13:53:05 +0200
commit651728507140246e9cf4e809f1877cb2eddbc84e (patch)
tree9e500495fe09b0a3b611f574d3e308bde4008b70 /include/linux/platform_data/pinctrl-coh901.h
parent04b13de6229621b2bd9eb1b7afaded954c3037de (diff)
downloadtalos-obmc-linux-651728507140246e9cf4e809f1877cb2eddbc84e.tar.gz
talos-obmc-linux-651728507140246e9cf4e809f1877cb2eddbc84e.zip
pinctrl/coh901: move header to platform data dir
Move the platform-specific COH901 pin control header out of the ARM tree and down into the proper platform data include directory. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/platform_data/pinctrl-coh901.h')
-rw-r--r--include/linux/platform_data/pinctrl-coh901.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/platform_data/pinctrl-coh901.h b/include/linux/platform_data/pinctrl-coh901.h
new file mode 100644
index 000000000000..30dea251b835
--- /dev/null
+++ b/include/linux/platform_data/pinctrl-coh901.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2007-2012 ST-Ericsson AB
+ * License terms: GNU General Public License (GPL) version 2
+ * GPIO block resgister definitions and inline macros for
+ * U300 GPIO COH 901 335 or COH 901 571/3
+ * Author: Linus Walleij <linus.walleij@stericsson.com>
+ */
+
+#ifndef __MACH_U300_GPIO_U300_H
+#define __MACH_U300_GPIO_U300_H
+
+/**
+ * struct u300_gpio_platform - U300 GPIO platform data
+ * @ports: number of GPIO block ports
+ * @gpio_base: first GPIO number for this block (use a free range)
+ * @gpio_irq_base: first GPIO IRQ number for this block (use a free range)
+ * @pinctrl_device: pin control device to spawn as child
+ */
+struct u300_gpio_platform {
+ u8 ports;
+ int gpio_base;
+ int gpio_irq_base;
+ struct platform_device *pinctrl_device;
+};
+
+#endif /* __MACH_U300_GPIO_U300_H */
OpenPOWER on IntegriCloud