s3c2440 支援 480X272 屏

來源:互聯網
上載者:User

 拿來的 s3c2440 的開發部帶的kernel 都是 800X640 的,而touch panel 只有 480X272

通過查看代碼 mach_utu2440.c 中發現,其中已經定義了

 

#if    defined(CONFIG_FB_S3C2410_480X272)
static struct s3c2410fb_mach_info utu2440_lcdcfg __initdata = {
    .regs    = {
        .lcdcon1 =    S3C2410_LCDCON1_TFT16BPP | /
                S3C2410_LCDCON1_TFT | /
                S3C2410_LCDCON1_CLKVAL(0x01),

        .lcdcon2 =    S3C2410_LCDCON2_VBPD(1) | /
                S3C2410_LCDCON2_LINEVAL(271) | /
                S3C2410_LCDCON2_VFPD(5) | /
                S3C2410_LCDCON2_VSPW(9),

        .lcdcon3 =    S3C2410_LCDCON3_HBPD(5) | /
                S3C2410_LCDCON3_HOZVAL(479) | /
                S3C2410_LCDCON3_HFPD(15),

        .lcdcon4 =    S3C2410_LCDCON4_MVAL(13) | /
                S3C2410_LCDCON4_HSPW(95),

        .lcdcon5 =    S3C2410_LCDCON5_FRM565 |
                S3C2410_LCDCON5_INVVLINE |
                S3C2410_LCDCON5_INVVFRAME |
                S3C2410_LCDCON5_PWREN |
                S3C2410_LCDCON5_HWSWP,
    },

    .lpcsel =    0xf82,

    .gpccon =    0xaa955699,
    .gpccon_mask =    0xffc003cc,
    .gpcup =    0x0000ffff,
    .gpcup_mask =    0xffffffff,

    .gpdcon =    0xaa95aaa1,
    .gpdcon_mask =    0xffc0fff0,
    .gpdup =    0x0000faff,
    .gpdup_mask =    0xffffffff,

    .fixed_syncs =    1,
    .width  =    480,
    .height =    272,

    .xres    = {
        .min =        480,
        .max =        480,
        .defval =    480,
    },

    .yres    = {
        .max =        272,
        .min =        272,
        .defval    =    272,
    },

    .bpp    = {
        .min =        16,
        .max =        16,
        .defval =    16,
    },
};
#endif

 

修改 設定檔: make menuconfig

Device Drivers ---> Graphics support  ---> LCD select , 選擇 4.3 Inch 480X272 LCD

儲存配置資訊

make uImage 產生 uImage

run install-kernel

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.