summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-02-04 16:26:13 +0800
committerSimon Glass <sjg@chromium.org>2015-02-06 12:07:45 -0700
commit6df7ffea1399de57e5b3be6e3cd0986869087663 (patch)
tree6a12b04140a24c6e9e7d46d3c556c69c1b2aa789 /arch/x86
parent728b393f3b012ac46505151b80af1d4334786845 (diff)
downloadtalos-obmc-uboot-6df7ffea1399de57e5b3be6e3cd0986869087663.tar.gz
talos-obmc-uboot-6df7ffea1399de57e5b3be6e3cd0986869087663.zip
x86: Add SD/MMC support to quark/galileo
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>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/cpu/quark/quark.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/cpu/quark/quark.c b/arch/x86/cpu/quark/quark.c
index 0d593d9a86..dccf7ac5f5 100644
--- a/arch/x86/cpu/quark/quark.c
+++ b/arch/x86/cpu/quark/quark.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <mmc.h>
#include <asm/io.h>
#include <asm/pci.h>
#include <asm/post.h>
@@ -13,6 +14,10 @@
#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));
+}
OpenPOWER on IntegriCloud