Lcd Display driver

  • Hello .
    Reading other tread I found some info for modify the parameter for special LCD.
    I Modify mvf_dcu.c and set new mode default .
    I have a perfect configuration working under windows compact , but under linux the parameter are lessen.
    this are working setting under microsoft enviroment.
    reg open \drivers\display\lcd
    reg create key mode102
    reg set value name string "1280120"
    reg set value EFW dword 3
    reg set value BFW dword 3
    reg set value msignal dword 2
    reg set value rows dword 120
    reg set value LPP dword 120
    reg set value width dword 115
    reg set value height dword 86
    reg set value contrastenable dword 0
    reg set value contrastvalue dword 0
    reg set value type dword 6
    reg set value config dword 0x0300000
    reg set value columns dword 1280
    reg set value PPL dword 1280
    reg set value HSW dword 3
    reg set value bpp dword 16
    reg set value lcdclk dword 11
    reg set value VSW dword 3
    reg set value BLW dword 54
    reg set value ELW dword 54
    reg set value EnableCursor dword 1
    reg set val I2CDeviceAddress dword 192
    reg set val I2CDevice string "I2C3:"
    reg set val Index dword 1
    reg set val PWMChannel dword 1
    reg set val PWRConChannel dword 0
    reg set val RotateChannel dword 2
    reg set val ExtDll string "ASTADPEDT1.dll"
    reg set val Prefix string ASTADPEDT1
    reg set val hDutyCycle dword 80
    reg set val PWMDevice string AstADPEP1
    display mode set 102
    reg save
    On Linux I set this mode.
    {
    .name = "1280x128",
    .xres = 1280,
    .yres = 128,
    .left_margin = 150,
    .right_margin = 150,
    .upper_margin = 13,
    .lower_margin = 20,
    .hsync_len = 20,
    .vsync_len = 2,
    .sync = FB_SYNC_COMP_HIGH_ACT,
    .vmode = FB_VMODE_NONINTERLACED,
    },
    This partial work ( color are no good )
    But is no good.
    Can you help me? There are table for mapping the configuration of display.
    Alessandro.