From f791179e4d261ff90e1c33a0466d8c762e7194a4 Mon Sep 17 00:00:00 2001
From: patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>
Date: Sun, 7 Feb 2010 15:29:37 +0000
Subject: [PATCH] Need to set up SD card detect GPIO

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2537 42af7a65-404d-4744-a932-0658087f49c3
---
 configs/sam3u-ek/src/up_boot.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configs/sam3u-ek/src/up_boot.c b/configs/sam3u-ek/src/up_boot.c
index 60e9856f8a..4ae2699ed3 100755
--- a/configs/sam3u-ek/src/up_boot.c
+++ b/configs/sam3u-ek/src/up_boot.c
@@ -99,4 +99,10 @@ void sam3u_boardinitialize(void)
 #ifdef CONFIG_ARCH_LEDS
   up_ledinit();
 #endif
+
+  /* Setup SD card detection PIO */
+
+#if CONFIG_SAM3U_HSMCI
+  sam3u_configgpio(GPIO_MCI_CD);
+#endif
 }
-- 
GitLab