SMART210的LCD屏幕无法点亮的问题

1910阅读 0评论2015-09-28 edaworld
分类:Android平台

解决了新买的SMART210LCD屏幕无法点亮的问题,老板子不存在这个问题,我看了下,新板子的LCD驱动板子改版了,估计程序也换了,友善也不告诉怎么改。主要参考了一下下面的博客内容。

http://blog.chinaunix.net/uid-28454895-id-4216124.html

 

下面将修改内容说一下:

 

/work/kernel/android-kernel-samsung-dev-good/drivers/input/touchscreen

下面增加

mini210_1wire_host.c

文件,其中的Makefile增加

obj-$(CONFIG_TOUCHSCREEN_1WIRE)           += mini210_1wire_host.o

其中的Kconfig增加

config TOUCHSCREEN_1WIRE

       tristate "Mini210 1-Wire host and Touch Screen Driver"

       help

         Say Y here to enable the 1-Wire host and Touch Screen driver for

         FriendlyARM Mini210 development board.

 

         If unsure, say N.

 

         To compile this driver as a module, choose M here: the

         module will be called mini210_1wire_host.

 

/work/kernel/android-kernel-samsung-dev-good/arch/arm/mach-s5pv210

下面的

mach-smdkc110.c

文件中增加

       &s3c_device_1wire,

位置在

增加

static struct platform_device s3c_device_1wire = {

       .name            = "mini210_1wire",

       .id           = -1,

       .num_resources    = 0,

};

位置在

可以看出,是标准的platform虚拟总线驱动。

Make zImge –j 4

编译通过,屏幕可以点亮,发现屏幕有所偏移,修改LCD参数,修改内容如下:

static struct s3cfb_lcd wvga_s70 = {

       .width = 800,

       .height = 480,

       .p_width = 154,

       .p_height = 96,

       .bpp = 32,

       .freq = 65,

       .timing = {

              .h_fp = 80,

              .h_bp = 36,

              .h_sw = 10,

              .v_fp = 22,

              .v_fpe = 1,

              .v_bp = 24,

              .v_bpe = 1,

              .v_sw = 8,

       },

       .polarity = {

       .rise_vclk = 0,

       .inv_hsync = 1,

       .inv_vsync = 1,

       .inv_vden = 0,

       },

};

重点为h_bp参数,决定屏幕水平偏移量。

以上为修改内容,供参考。

上一篇:win7系统盘清理技巧
下一篇:防水