]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/nvidia/harmony/harmony.c
tegra2: Enable MMC for Seaboard
[karo-tx-uboot.git] / board / nvidia / harmony / harmony.c
index f1ab050899e062d7a1f5088ac9f0a61d3dca5b03..cbb30d63014ee98b26937d9849c47d88268b98c6 100644 (file)
@@ -24,6 +24,9 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/arch/tegra2.h>
+#ifdef CONFIG_TEGRA2_MMC
+#include <mmc.h>
+#endif
 
 /*
  * Routine: gpio_config_uart
 void gpio_config_uart(void)
 {
 }
+
+#ifdef CONFIG_TEGRA2_MMC
+/*
+ * Routine: gpio_config_mmc
+ * Description: Set GPIOs for SD card
+ */
+void gpio_config_mmc(void)
+{
+       /* Not implemented for now */
+}
+
+/* this is a weak define that we are overriding */
+int board_mmc_getcd(u8 *cd, struct mmc *mmc)
+{
+       debug("board_mmc_getcd called\n");
+       /*
+        * Hard-code CD presence for now. Need to add GPIO inputs
+        * for Harmony
+        */
+       *cd = 1;
+       return 0;
+}
+#endif