| 数据搜索系统,热门电子元器件搜索 |
|
AN2641 数据表(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2641 数据表(HTML) 21 Page - STMicroelectronics |
|
21 / 37 page ![]() AN2641 Linux frame buffer Doc ID 14027 Rev 1 21/37 Step-by-step procedure: 1. The file 'arch/arm/mach-spear300/spear300.c' (or 'arch/arm/mach- spearbasic/spearbasic.c') fills the clcd_panel structure with all the information about CLCD. Figure 7. CLCD panel structure The 'clcd_panel' structure has 4 important members: tim2 (corresponding to LCD- Timing register 2), tim3 (corresponding to LCD-Timing register 3), cntl (corresponding to LCD-Control register) and bpp (bits per pixel). The 'mode' field (structure 'fb_videomode') of structure 'clcd_panel' has the kind of information (panel resolution and margins) which needs to be filled in LCD-timing register 0 and LCD-Timing register 1. 2. Return the appropriate CLCD panel structure by filling in the following function: Figure 8. Return CLCD panel structure 3. Note the usage of macros like CONFIG_FB_ARMCLCD_SHARP_LQ043T1DG01. They are defined in 'drivers/video/Kconfig', the file which defines the choices in the menuconfig. #ifdef CONFIG_FB_ARMCLCD_SHARP_LQ043T1DG01 static struct clcd_panel sharp_LQ043T1DG01_in = { .mode = { .name = "Sharp LQ043T1DG01", .refresh = 0, .xres = 480, .yres = 272, .pixclock = 48000, .left_margin = 2, .right_margin = 2, .upper_margin = 2, .lower_margin = 2, .hsync_len = 41, .vsync_len = 11, .sync = 0, //FB_SYNC_HOR_HIGH_ACT | .vmode = FB_VMODE_NONINTERLACED, }, .width = -1, .height = -1, .tim2 = TIM2_IOE | TIM2_CLKSEL | 3, //TIM2_CLKSEL| 4, .cntl = CNTL_LCDTFT | CNTL_BGR, .bpp = 32, }; #endif { Struct clcd_panel *panel; #ifdef CONFIG_FB_ARMCLCD_SHARP_LQ043T1DG01 Panel = &sharp_LQ043T1DG01_in; #endif Return panel; } |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |