Skip to content

Commit 546cd60

Browse files
committed
PXA: Add support for LMS285GF05 into pxafb
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
1 parent 9b92cf0 commit 546cd60

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

arch/arm/cpu/pxa/pxafb.c

+34
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,40 @@ vidinfo_t panel_info = {
179179
};
180180
#endif /* CONFIG_HITACHI_SX14 */
181181

182+
/*----------------------------------------------------------------------*/
183+
#ifdef CONFIG_LMS283GF05
184+
185+
# define LCD_BPP LCD_COLOR8
186+
//# define LCD_INVERT_COLORS
187+
188+
/* you have to set lccr0 and lccr3 (including pcd) */
189+
# define REG_LCCR0 0x043008f8
190+
# define REG_LCCR3 0x03b00009
191+
192+
vidinfo_t panel_info = {
193+
vl_col: 240,
194+
vl_row: 320,
195+
vl_width: 240,
196+
vl_height: 320,
197+
vl_clkp: CONFIG_SYS_HIGH,
198+
vl_oep: CONFIG_SYS_LOW,
199+
vl_hsp: CONFIG_SYS_LOW,
200+
vl_vsp: CONFIG_SYS_LOW,
201+
vl_dp: CONFIG_SYS_HIGH,
202+
vl_bpix: LCD_BPP,
203+
vl_lbw: 0,
204+
vl_splt: 1,
205+
vl_clor: 1,
206+
vl_tft: 1,
207+
vl_hpw: 4,
208+
vl_blw: 4,
209+
vl_elw: 8,
210+
vl_vpw: 4,
211+
vl_bfw: 4,
212+
vl_efw: 8,
213+
};
214+
#endif /* CONFIG_LMS283GF05 */
215+
182216
/*----------------------------------------------------------------------*/
183217

184218
#if LCD_BPP == LCD_COLOR8

0 commit comments

Comments
 (0)