diff --git a/configs/sam3u-ek/src/up_boot.c b/configs/sam3u-ek/src/up_boot.c
index 60e9856f8a18e1eb8a7b35e2d9b3591605702add..4ae2699ed3dee21bdce1ba7bb20ab8e08569268b 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
 }