2007-01-04 10:16:40 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
2009-10-19 18:14:27 +00:00
|
|
|
* Copyright (C) 2009 by Bob Cousins, Lyre Project
|
2007-01-04 10:16:40 +00:00
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2007-01-04 10:16:40 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2011-12-15 23:07:11 +00:00
|
|
|
#ifndef LCD_TARGET_H
|
|
|
|
#define LCD_TARGET_H
|
2007-01-04 10:16:40 +00:00
|
|
|
|
2011-12-15 23:07:11 +00:00
|
|
|
#define LCD_FRAMEBUF_ADDR(col, row) ((fb_data *)FRAME + (row)*LCD_WIDTH + (col))
|
2007-04-14 01:18:06 +00:00
|
|
|
|
2009-10-19 18:14:27 +00:00
|
|
|
/* Setup for Mini2440, 3.5" TFT LCD Touchscreen */
|
2007-01-04 10:16:40 +00:00
|
|
|
|
2009-10-19 18:14:27 +00:00
|
|
|
/* Config values for LCDCON1 */
|
|
|
|
#define LCD_CLKVAL 4
|
|
|
|
#define LCD_MMODE 0
|
|
|
|
#define LCD_PNRMODE 3
|
|
|
|
#define LCD_BPPMODE 12
|
|
|
|
#define LCD_ENVID 1
|
2008-12-08 23:31:05 +00:00
|
|
|
|
2009-10-19 18:14:27 +00:00
|
|
|
/* Config values for LCDCON2 */
|
|
|
|
#define LCD_UPPER_MARGIN 1
|
|
|
|
#define LCD_LOWER_MARGIN 4
|
|
|
|
#define LCD_VSYNC_LEN 1
|
2008-03-31 01:29:50 +00:00
|
|
|
|
2009-10-19 18:14:27 +00:00
|
|
|
/* Config values for LCDCON3 */
|
|
|
|
#define LCD_RIGHT_MARGIN 0
|
|
|
|
#define LCD_LEFT_MARGIN 25
|
2008-03-31 01:29:50 +00:00
|
|
|
|
2009-10-19 18:14:27 +00:00
|
|
|
/* Config values for LCDCON4 */
|
|
|
|
#define LCD_HSYNC_LEN 4
|
2011-12-15 23:07:11 +00:00
|
|
|
|
|
|
|
#endif /* LCD_TARGET_H */
|