s5pc110: wmg160: No MMC support
authorMinkyu Kang <mk7.kang@samsung.com>
Fri, 5 Feb 2010 11:45:22 +0000 (20:45 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 5 Feb 2010 11:45:22 +0000 (20:45 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal/universal.c
cpu/arm_cortexa8/s5pc1xx/usb_downloader.c

index 9512ded..5725613 100644 (file)
@@ -2094,6 +2094,13 @@ int usb_board_init(void)
 #endif
 
 #ifdef CONFIG_GENERIC_MMC
+int s5p_no_mmc_support(void)
+{
+       if (machine_is_wmg160())
+               return 1;
+       return 0;
+}
+
 int board_mmc_init(bd_t *bis)
 {
        unsigned int reg;
index b68f2c5..010e3a9 100644 (file)
@@ -139,11 +139,15 @@ static void recv_setup(char *addr, int len)
 
 #ifdef CONFIG_GENERIC_MMC
 #include <mmc.h>
+extern int s5p_no_mmc_support(void);
 
 static void usbd_set_mmc_dev(struct usbd_ops *usbd)
 {
        struct mmc *mmc;
 
+       if (s5p_no_mmc_support)
+               return;
+
        usbd->mmc_dev = 0;
        /* FIXME */
        usbd->mmc_max = 0x8000;