diff mbox

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

Message ID 20170207080129.28315-2-wenyou.yang@atmel.com
State Superseded
Delegated to: Andreas Bießmann
Headers show

Commit Message

Wenyou Yang Feb. 7, 2017, 8:01 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>
Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
---

Changes in v3: None
Changes in v2: None

 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 42410a8526..de37e24542 100644
--- a/include/configs/at91-sama5_common.h
+++ b/include/configs/at91-sama5_common.h
@@ -27,7 +27,9 @@ 
 #define CONFIG_ENV_VARS_UBOOT_CONFIG
 
 /* general purpose I/O */
+#ifndef CONFIG_DM_GPIO
 #define CONFIG_AT91_GPIO
+#endif
 
 
 /*