aboutsummaryrefslogtreecommitdiff
path: root/arch/blackfin/mach-bf538/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-06-27 14:46:14 -0400
committerMike Frysinger <vapier@gentoo.org>2011-07-23 01:18:30 -0400
commit9466a0510a5445d81eaf33affc20e2f7e2e718fb (patch)
treeecbecd217aedca3575d27444efeadf1fee1c8f38 /arch/blackfin/mach-bf538/include
parenteed7b8365807549c67613ea7d9a451262050ba3e (diff)
Blackfin: bf538: pull gpio/port logic out of core hibernate paths
Re-architect how we save/restore the gpio/port logic that only pertains to bf538/bf539 parts by pulling it out of the core code paths and pushing it out to bf538-specific locations. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf538/include')
-rw-r--r--arch/blackfin/mach-bf538/include/mach/gpio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf538/include/mach/gpio.h b/arch/blackfin/mach-bf538/include/mach/gpio.h
index 8a5beeece996..3561c7d8935b 100644
--- a/arch/blackfin/mach-bf538/include/mach/gpio.h
+++ b/arch/blackfin/mach-bf538/include/mach/gpio.h
@@ -8,7 +8,10 @@
#define _MACH_GPIO_H_
#define MAX_BLACKFIN_GPIOS 16
+#ifdef CONFIG_GPIOLIB
+/* We only use the special logic with GPIOLIB devices */
#define BFIN_SPECIAL_GPIO_BANKS 3
+#endif
#define GPIO_PF0 0 /* PF */
#define GPIO_PF1 1