diff mbox

[U-Boot,v1,1/8] configs: at91-sama5_common: fix for CONFIG_AT91_GPIO

Message ID 1477475734-22468-2-git-send-email-wenyou.yang@atmel.com
State Accepted
Commit fc977b94a4988bd83e079c54c59c0754f8301b7f
Delegated to: Andreas Bießmann
Headers show

Commit Message

Wenyou Yang Oct. 26, 2016, 9:55 a.m. UTC
If enabled Driver Model for GPIO, CONFIG_AT91_GPIO should be defined
by configs/*_defconfig file.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
---

 include/configs/at91-sama5_common.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/include/configs/at91-sama5_common.h b/include/configs/at91-sama5_common.h
index b09ef33..98e3f0e 100644
--- a/include/configs/at91-sama5_common.h
+++ b/include/configs/at91-sama5_common.h
@@ -29,7 +29,9 @@ 
 #define CONFIG_ENV_VARS_UBOOT_CONFIG
 
 /* general purpose I/O */
+#ifndef CONFIG_DM_GPIO
 #define CONFIG_AT91_GPIO
+#endif
 
 
 /*