From 608c91460b37fd9fe0088a0ce813a443f116a8d5 Mon Sep 17 00:00:00 2001 From: wdenk Date: Mon, 13 Jan 2003 23:54:46 +0000 Subject: =?UTF-8?q?Add=20support=20for=20V37=20board=20(patch=20by=20J=F3n?= =?UTF-8?q?=20Benediktsson,=2011=20Dec=202002)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cpu/mpc8xx/lcd.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'cpu/mpc8xx/lcd.c') diff --git a/cpu/mpc8xx/lcd.c b/cpu/mpc8xx/lcd.c index dbc38e39d6..f6dda607ea 100644 --- a/cpu/mpc8xx/lcd.c +++ b/cpu/mpc8xx/lcd.c @@ -43,6 +43,12 @@ #define CONFIG_LCD_LOGO #define LCD_INFO /* Display Logo, (C) and system info */ #endif + +#ifdef CONFIG_V37 +#undef CONFIG_LCD_LOGO +#undef LCD_INFO +#endif + /* #define LCD_TEST_PATTERN */ /* color backgnd for frame/color adjust */ /* #define CFG_INVERT_COLORS */ /* Not needed - adjust vl_dp instead */ /************************************************************************/ @@ -190,6 +196,18 @@ static vidinfo_t panel_info = { /* wbl, vpw, lcdac, wbf */ }; #endif /* CONFIG_SHARP_LQ64D341 */ + +#ifdef CONFIG_SHARP_LQ084V1DG21 +/* + * Sharp LQ084V1DG21 display, 640x480. Active, color, single scan. + */ +static vidinfo_t panel_info = { + 640, 480, 171, 129, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_LOW, + 3, 0, 0, 1, 1, 160, 3, 0, 48 + /* wbl, vpw, lcdac, wbf */ +}; +#endif /* CONFIG_SHARP_LQ084V1DG21 */ + /*----------------------------------------------------------------------*/ #ifdef CONFIG_HLD1045 @@ -947,6 +965,13 @@ static void lcd_enable (void) /* Enable the LCD panel */ immr->im_siu_conf.sc_sdcr |= (1 << (31 - 25)); /* LAM = 1 */ lcdp->lcd_lccr |= LCCR_PON; + +#ifdef CONFIG_V37 + /* Turn on display backlight */ + immr->im_cpm.cp_pbpar |= 0x00008000; + immr->im_cpm.cp_pbdir |= 0x00008000; +#endif + #if defined(CONFIG_LWMON) { uchar c = pic_read (0x60); c |= 0x07; /* Power on CCFL, Enable CCFL, Chip Enable LCD */ -- cgit v1.2.3