]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Add SD/MMC support to quark/galileo
authorBin Meng <bmeng.cn@gmail.com>
Wed, 4 Feb 2015 08:26:13 +0000 (16:26 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 10:59:12 +0000 (12:59 +0200)
Intel Galileo board has a microSD slot which is routed from Quark SoC
SDIO controller. Enable SD/MMC support so that we can use an SD card.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/quark/quark.c
include/configs/galileo.h

index 0d593d9a867f3848b0660f01cb6f832bb20a7c66..dccf7ac5f5cbb08bdb417b9e56fccc2ae1e344df 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <mmc.h>
 #include <asm/io.h>
 #include <asm/pci.h>
 #include <asm/post.h>
 #include <asm/arch/msg_port.h>
 #include <asm/arch/quark.h>
 
+static struct pci_device_id mmc_supported[] = {
+       { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QRK_SDIO },
+};
+
 /*
  * TODO:
  *
@@ -105,3 +110,9 @@ void reset_cpu(ulong addr)
        /* cold reset */
        outb(0x08, PORT_RESET);
 }
+
+int cpu_mmc_init(bd_t *bis)
+{
+       return pci_mmc_init("Quark SDHCI", mmc_supported,
+                           ARRAY_SIZE(mmc_supported));
+}
index bead2fc64eb8d58d9cedf8f0163a27c8a5e5fff0..d745f4eb89baecea93949c94f471cead0244ccb2 100644 (file)
 #undef CONFIG_VIDEO
 #undef CONFIG_CFB_CONSOLE
 
+/* SD/MMC support */
+#define CONFIG_MMC
+#define CONFIG_SDHCI
+#define CONFIG_GENERIC_MMC
+#define CONFIG_MMC_SDMA
+#define CONFIG_CMD_MMC
+
 #endif /* __CONFIG_H */