From 7b67dbf99d74b362cbfc2dd17c05f0ffd72441aa Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Fri, 5 Feb 2010 20:08:01 +0900 Subject: [PATCH] s5pc110: wmg160: No MMC & LCD support Signed-off-by: Kyungmin Park --- board/samsung/universal/universal.c | 10 ++++++++++ drivers/video/s5p-fb.c | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index d094bd7..2999957 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -1583,6 +1583,13 @@ extern void s6e63m0_enable_ldo(unsigned int onoff); extern void s6d16a0x_cfg_ldo(void); extern void s6d16a0x_enable_ldo(unsigned int onoff); +int s5p_no_lcd_support(void) +{ + if (machine_is_wmg160()) + return 1; + return 0; +} + void init_panel_info(vidinfo_t *vid) { vid->cfg_gpio = NULL; @@ -2095,6 +2102,9 @@ int board_mmc_init(bd_t *bis) if (machine_is_aquila() && (board_is_aries() || board_is_neptune())) gpio_direction_output(&s5pc110_gpio->gpio_j2, 7, 1); + if (machine_is_wmg160()) + return -1; + /* MMC0 Clock source = SCLKMPLL */ reg = readl(&clk->src4); reg &= ~0xf; diff --git a/drivers/video/s5p-fb.c b/drivers/video/s5p-fb.c index 9afe55c..e418f5b 100644 --- a/drivers/video/s5p-fb.c +++ b/drivers/video/s5p-fb.c @@ -256,11 +256,15 @@ static void lcd_panel_on(vidinfo_t *vid) /* extern void init_onenand_ext2(void); */ extern void init_panel_info(vidinfo_t *vid); +extern int s5p_no_lcd_support(void); void lcd_ctrl_init(void *lcdbase) { char *option; + if (s5p_no_lcd_support()) + return; + s5pc_lcd_init_mem(lcdbase, &panel_info); /* initialize parameters which is specific to panel. */ -- 2.7.4