summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Larsson <andreas@gaisler.com>2013-03-15 14:45:38 +0100
committerLinus Walleij <linus.walleij@linaro.org>2013-04-10 23:41:16 +0200
commit2b78f1e1389aef263071b9edf41c0980b092e601 (patch)
treea248dcde3ba8654b5a7dfda02861688f079cbc8e /include
parent43158441934fd9f1d2a2434c9eec1b682391a49b (diff)
downloadlinux-stable-2b78f1e1389aef263071b9edf41c0980b092e601.tar.gz
linux-stable-2b78f1e1389aef263071b9edf41c0980b092e601.tar.bz2
linux-stable-2b78f1e1389aef263071b9edf41c0980b092e601.zip
gpio: gpio-generic: Add 16 and 32 bit big endian byte order support
There is no general support for 64-bit big endian accesses, so that is left unsupported. Signed-off-by: Andreas Larsson <andreas@gaisler.com> Acked-by: Anton Vorontsov <anton@enomsg.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/basic_mmio_gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/basic_mmio_gpio.h b/include/linux/basic_mmio_gpio.h
index 1c504ca5bdb3..d8a97ec0e2b8 100644
--- a/include/linux/basic_mmio_gpio.h
+++ b/include/linux/basic_mmio_gpio.h
@@ -72,5 +72,6 @@ int bgpio_init(struct bgpio_chip *bgc, struct device *dev,
#define BGPIOF_BIG_ENDIAN BIT(0)
#define BGPIOF_UNREADABLE_REG_SET BIT(1) /* reg_set is unreadable */
#define BGPIOF_UNREADABLE_REG_DIR BIT(2) /* reg_dir is unreadable */
+#define BGPIOF_BIG_ENDIAN_BYTE_ORDER BIT(3)
#endif /* __BASIC_MMIO_GPIO_H */