]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
blackfin: If none ADI_GPIOX macro is defined, use ADI_GPIO1 as default
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 18 Nov 2013 06:12:39 +0000 (14:12 +0800)
committerSonic Zhang <sonic.zhang@analog.com>
Fri, 6 Dec 2013 08:06:51 +0000 (16:06 +0800)
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
arch/blackfin/cpu/gpio.c
arch/blackfin/include/asm/gpio.h

index 5e9c68af85ac0460ace557d867a3414d5455bb57..86da706f08d2164349b485c47c988b566916d2c5 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/gpio.h>
 #include <asm/portmux.h>
 
-#ifdef CONFIG_ADI_GPIO1
+#ifndef CONFIG_ADI_GPIO2
 #if ANOMALY_05000311 || ANOMALY_05000323
 enum {
        AWA_data = SYSCR,
index 376ec02b650897fa8a52b15ff38f8cc8abf1a48d..6ebcf01aff87303a25557316ae05bf5e20768514 100644 (file)
@@ -72,7 +72,7 @@
 
 #ifndef __ASSEMBLY__
 
-#ifdef CONFIG_ADI_GPIO1
+#ifndef CONFIG_ADI_GPIO2
 void set_gpio_dir(unsigned, unsigned short);
 void set_gpio_inen(unsigned, unsigned short);
 void set_gpio_polar(unsigned, unsigned short);