]> git.sur5r.net Git - u-boot/commitdiff
PXA: pxafb: Add ACX517AKN support
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 18 Jul 2010 02:46:55 +0000 (04:46 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 19 Oct 2010 20:46:43 +0000 (22:46 +0200)
ACX517AKN LCD panel is found in Palm Tungsten|C

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
arch/arm/cpu/pxa/pxafb.c

index cb004b2624a844286eb35d34def4af5f5f5b7c8d..d6983951717a079e8e8c5e91a0a548e243ead4be 100644 (file)
@@ -216,6 +216,40 @@ vidinfo_t panel_info = {
 
 /*----------------------------------------------------------------------*/
 
+#ifdef CONFIG_ACX517AKN
+
+# define LCD_BPP       LCD_COLOR8
+
+/* you have to set lccr0 and lccr3 (including pcd) */
+# define REG_LCCR0     0x003008f9
+# define REG_LCCR3     0x03700006
+
+vidinfo_t panel_info = {
+       .vl_col         = 320,
+       .vl_row         = 320,
+       .vl_width       = 320,
+       .vl_height      = 320,
+       .vl_clkp        = CONFIG_SYS_HIGH,
+       .vl_oep         = CONFIG_SYS_LOW,
+       .vl_hsp         = CONFIG_SYS_LOW,
+       .vl_vsp         = CONFIG_SYS_LOW,
+       .vl_dp          = CONFIG_SYS_HIGH,
+       .vl_bpix        = LCD_BPP,
+       .vl_lbw         = 0,
+       .vl_splt        = 1,
+       .vl_clor        = 1,
+       .vl_tft         = 1,
+       .vl_hpw         = 0x04,
+       .vl_blw         = 0x1c,
+       .vl_elw         = 0x08,
+       .vl_vpw         = 0x01,
+       .vl_bfw         = 0x07,
+       .vl_efw         = 0x08,
+};
+#endif /* CONFIG_ACX517AKN */
+
+/*----------------------------------------------------------------------*/
+
 #if LCD_BPP == LCD_COLOR8
 void lcd_setcolreg (ushort regno, ushort red, ushort green, ushort blue);
 #endif