am335x LCD参数更改

/********************************************************************
* am335x LCD参数更改
*
* 本文记录am335x更换不同尺寸屏幕时,内核中需要更改的地方。
*
* Tony Liu, 2016-4-27,Shenzhen
********************************************************************/ kernel/arm/arch/mach-omap2/board-am335xevn.c static void lcdc_init(int evm_id, int profile)
{
struct da8xx_lcdc_platform_data *lcdc_pdata;
setup_pin_mux(lcdc_pin_mux); if (conf_disp_pll()) {
pr_info("Failed configure display PLL, not attempting to"
"register LCDC\n");
return;
}
// screen_size = SCREEN_SIZE_640X480_5_7 ;
// screen_size = SCREEN_SIZE_800X600_12_1;
// screen_size = SCREEN_SIZE_800X480_7;
// screen_size = SCREEN_SIZE_1024x600_10_1;
// screen_size = SCREEN_SIZE_1280x800_10_1;
// screen_size = SCREEN_SIZE_640x480_5_6;
screen_size = SCREEN_SIZE_800X600_8; if(screen_size == SCREEN_SIZE_800X600_8)
lcdc_pdata = &NHD_800600MF_ATXI_pdata_8; --------------------+
else if(screen_size == SCREEN_SIZE_800X480_5) |
lcdc_pdata = &NHD_800480MF_ATXI_pdata_5; |
else if(screen_size == SCREEN_SIZE_800X480_7) |
lcdc_pdata = &NHD_800480MF_ATXI_pdata_7; |
else if(screen_size == SCREEN_SIZE_800X600_12_1) |
lcdc_pdata = &NHD_800600MF_ATXI_pdata_12_1; |
else if(screen_size == SCREEN_SIZE_640X480_5_7 ) |
lcdc_pdata = &NHD_640480MF_ATXI_pdata_5_7 ; |
else if(screen_size == SCREEN_SIZE_1024x600_10_1 ) |
lcdc_pdata = &NHD_1024600MF_ATXI_pdata_10_1 ; |
else if(screen_size == SCREEN_SIZE_1280x800_10_1 ) |
lcdc_pdata = &NHD_1280800MF_ATXI_pdata_10_1 ; |
else if(screen_size == SCREEN_SIZE_640x480_5_6 ) |
lcdc_pdata = &NHD_640480MF_ATXI_pdata_5_6 ; |
else |
lcdc_pdata = &NHD_480272MF_ATXI_pdata_4; |
|
lcdc_pdata->get_context_loss_count = omap_pm_get_dev_context_loss_count; |
|
if (am33xx_register_lcdc(lcdc_pdata)) |
pr_info("Failed to register LCDC device\n"); |
|
return; |
} |
|
struct da8xx_lcdc_platform_data NHD_800600MF_ATXI_pdata_8 = { <---------+
.manu_name = "NHD",
.controller_data = &lcd_cfg,
.type = "NHD-8.0-ATXI#-T-1", ----------+
}; |
|
kernel/drivers/video/da8xx-fb.c |
static struct da8xx_panel known_lcd_panels[] = { <---------+
... ...
[] = {
.name = "NHD-8.0-ATXI#-T-1",
.width = ,
.height = ,
.hfp = ,//150,//150,//70, //150,//100, //112
.hbp = ,//70,//70, //150,//50, //88
.hsw = ,//46,//46,//83,//50, //48
.vfp = ,//8, //8, //15,//20, //21
.vbp = ,//8,//8,//15,//20, //39
.vsw = ,//4,//4,//5,//8, //3
.pxl_clk =,//36700000, //32000000, //36700000, //40000000,
.invert_pxl_clk = ,// 0, //1,
},
... ...
};
上一篇:C#计算时间差值


下一篇:Windows本地搭建Edusoho环境