From e3afb4add4a46bccc18c09a679d2db98787d5a62 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Fri, 5 Feb 2010 20:45:22 +0900 Subject: [PATCH] s5pc110: wmg160: No MMC support Signed-off-by: Minkyu Kang --- board/samsung/universal/universal.c | 7 +++++++ cpu/arm_cortexa8/s5pc1xx/usb_downloader.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index 9512ded..5725613 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -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; diff --git a/cpu/arm_cortexa8/s5pc1xx/usb_downloader.c b/cpu/arm_cortexa8/s5pc1xx/usb_downloader.c index b68f2c5..010e3a9 100644 --- a/cpu/arm_cortexa8/s5pc1xx/usb_downloader.c +++ b/cpu/arm_cortexa8/s5pc1xx/usb_downloader.c @@ -139,11 +139,15 @@ static void recv_setup(char *addr, int len) #ifdef CONFIG_GENERIC_MMC #include +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; -- 2.7.4