]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
microblaze: Define gpio commands when GPIO is available
authorMichal Simek <michal.simek@xilinx.com>
Mon, 16 Sep 2013 10:29:28 +0000 (12:29 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 20 Sep 2013 09:10:53 +0000 (11:10 +0200)
Defined GPIO commands only when GPIO is properly
configured.

Reported-by: Tomas Thoresen <tomast@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/microblaze-generic.h

index 738b258da295b1e1a4cf2554d8fb9678acb6f2c3..8b45b89990a3d488a954dd7ea65c31cdca340f16 100644 (file)
 /* FIXME: hack for zynq */
 #define CONFIG_CMD_IRQ
 #define CONFIG_CMD_ECHO
-#define CONFIG_CMD_GPIO
+
+#ifdef XILINX_GPIO_BASEADDR
+# define CONFIG_CMD_GPIO
+#endif
 
 #undef CONFIG_CMD_NFS
 #undef CONFIG_CMD_JFFS2