CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 8823|回复: 3

android cubieboard a20 lvds 1024*600

[复制链接]
发表于 2015-7-13 17:04:50 | 显示全部楼层 |阅读模式
已经有了全志的LCD说明开发文档,有没有有分辨率为1024*600的sys_config.fex的相关配置。我在网上查找了一个这样子的配置,-------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0> 1:screen1<screen1,fb0> 2:two_diff_screen_diff_contents<screen0,screen1,fb0,fb1>
; 3:two_same_screen_diff_contets<screen0,screen1,fb0> 4:two_diff_screen_same_contents<screen0,screen1,fb0>)
;screenx_output_type (0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)
;screenx_output_mode (used for tv/hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50 5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60 11:pal 14:ntsc)
;screenx_output_mode (used for vga output, 0:1680*1050 1:1440*900 2:1360*768 3:1280*1024 4:1024*768 5:800*600 6:640*480 10:1920*1080 11:1280*720)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA) --- 0 for linux, 2 for android
;lcd0_bright (lcd0 init bright,the range:[0,256],default:197
;lcd1_bright (lcd1 init bright,the range:[0,256],default:197
;-------------------------------------------------------------------------------
[disp_init]
disp_init_enable = 1
disp_mode = 0

screen0_output_type = 1
screen0_output_mode = 4

screen1_output_type = 1
screen1_output_mode = 4

fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0

fb1_framebuffer_num = 2
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0

lcd0_backlight = 197
lcd1_backlight = 197

lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50

lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

;-------------------------------------------------------------------------------
;lcd0 configuration

;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:hv2dsi
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle *2
;lcd_hv_if: 0:hv parallel 1:hv serial
;lcd_hv_smode: 0:RGB888 1:CCIR656
;lcd_hv_s888_if serial RGB format
;lcd_hv_syuv_if: serial YUV format
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_ch: 0:single channel; 1:dual channel
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_lvds_bitwidth: 0:24bit; 1:18bit
;lcd_lvds_io_cross: 0:normal; 1:pn cross
;lcd_cpu_if: 0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2; 4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither

;lcd_gpio_0: SCL
;lcd_gpio_1 SDA
;-------------------------------------------------------------------------------
[lcd0_para]
lcd_used = 1

lcd_x = 1280
lcd_y = 800
lcd_width = 0
lcd_height = 0
lcd_dclk_freq = 77
lcd_pwm_not_used = 0
lcd_pwm_ch = 0
lcd_pwm_freq = 10000
lcd_pwm_pol = 0
lcd_if = 3
lcd_hbp = 46
lcd_ht = 1450
lcd_vbp = 40
lcd_vt = 1860
lcd_vspw = 10
lcd_hspw = 10
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 1
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 1
lcd_io_cfg0 = 0x10000000
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x00000000
lcd_gamma_tbl_1 = 0x00010101
lcd_gamma_tbl_255 = 0x00ffffff

lcd_bl_en_used = 1
lcd_bl_en = portH07<1><0><default><1>

lcd_power_used = 1
lcd_power = portH08<1><0><default><1>

lcd_pwm_used = 1
lcd_pwm = portB02<2><0><default><default>

lcdd0 = portD00<3><0><default><default>
lcdd1 = portD01<3><0><default><default>
lcdd2 = portD02<3><0><default><default>
lcdd3 = portD03<3><0><default><default>
lcdd4 = portD04<3><0><default><default>
lcdd5 = portD05<3><0><default><default>
lcdd6 = portD06<3><0><default><default>
lcdd7 = port:PD07<3><0><default><default>
但是不知道对不对
回复

使用道具 举报

发表于 2015-7-17 16:00:29 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-7-17 17:51:20 | 显示全部楼层
我参考了那个配置了一个,但是就报了如下错误,也不知道是什么原因,屏幕也不亮。触摸也触摸不了。

[ctp_para]
ctp_used            = 1
ctp_name            = "ft5x_ts"
ctp_twi_id          = 1
ctp_twi_addr        = 0x38
ctp_screen_max_x    = 1024
ctp_screen_max_y    = 600
ctp_revert_x_flag   = 0
ctp_revert_y_flag   = 0
ctp_exchange_x_y_flag = 0
ctp_firm                        = 1

ctp_int_port        = portH07<6><default><default><default>
ctp_wakeup          = portB11<1><default><default><1>



lcd_used = 1
lcd_x = 1024
lcd_y = 600
lcd_dclk_freq = 30
lcd_pwm_not_used = 0
lcd_pwm_ch = 0
lcd_pwm_freq = 10000
lcd_pwm_pol = 0
lcd_if = 3
lcd_hbp = 200
lcd_ht = 1055
lcd_vbp = 25
lcd_vt = 1050
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_hv_vspw = 0
lcd_hv_hspw = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 0
lcd_io_cfg0 = 268435456
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x0
lcd_gamma_tbl_1 = 0x10101
lcd_gamma_tbl_255 = 0xffffff
lcd_bl_en_used = 0
lcd_bl_en = portH07<1><0><default><1>
lcd_power_used = 1
lcd_power = portH10<1><0><default><1>
lcd_pwm_used = 1
lcd_pwm = portB02<2><0><default><default>
lcd_gpio_0 =
lcd_gpio_1 =
lcd_gpio_2 =
lcd_gpio_3 =
lcdd0 = portD00<3><0><default><default>
lcdd1 = portD01<3><0><default><default>
lcdd2 = portD02<3><0><default><default>
lcdd3 = portD03<3><0><default><default>
lcdd4 = portD04<3><0><default><default>
lcdd5 = port:PD05<3><0><default><default>
lcdd6 = port:PD06<3><0><default><default>
lcdd7 = port:PD07<3><0><default><default>
lcdd8 = port:PD08<3><0><default><default>
lcdd9 = port:PD09<3><0><default><default>

lcdd10 = port:PD10<2><0><default><default>
lcdd11 = port:PD11<2><0><default><default>
lcdd12 = port:PD12<2><0><default><default>
lcdd13 = port:PD13<2><0><default><default>
lcdd14 = port:PD14<2><0><default><default>
lcdd15 = port:PD15<2><0><default><default>
lcdd16 = port:PD16<2><0><default><default>
lcdd17 = port:PD17<2><0><default><default>
lcdd18 = port:PD18<2><0><default><default>
lcdd19 = port:PD19<2><0><default><default>
lcdd20 = port:PD20<2><0><default><default>
lcdd21 = port:PD21<2><0><default><default>
lcdd22 = port:PD22<2><0><default><default>
lcdd23 = port:PD23<2><0><default><default>
lcdclk = port:PH24<2><0><default><default>
lcdde = port:PH25<2><0><default><default>
lcdhsync = port:PH26<2><0><default><default>
lcdvsync = port:PH27<2><0><default><default>

你有调试通过的没有


回复 支持 反对

使用道具 举报

发表于 2016-4-12 15:59:27 | 显示全部楼层
帮你顶起来
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-23 00:00 , Processed in 0.021850 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部