1:修改mx51_bbg_android.h
#define CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC \
"setenv bootargs ${bootargs} init=/init root=/dev/mmcblk0p4 " \
"rootfs=ext4 di0_primary"
#define CONFIG_EXTRA_ENV_SETTINGS \
"netdev=eth0\0" \
"ethprime=FEC0\0" \
"ethaddr=00:04:9f:00:ea:d3\0" \
"bootfile=uImage\0" \
"loadaddr=0x90800000\0" \
"rd_loadaddr=0x90D00000\0" \
"bootargs=console=ttymxc1 init=/init androidboot.console=ttymxc1 " \
"console=mxcuart,0x73fc0000,115200n8" \
"di0_primary gpu_nommu gpu_memory=32M calibration\0" \
"bootcmd_SD=mmc read 0 ${loadaddr} 0x800 0x2000;" \
"mmc read 0 ${rd_loadaddr} 0x3000 0x300\0" \
"bootcmd=run bootcmd_SD; bootm ${loadaddr} ${rd_loadaddr}\0" \
2:修改mxcfb_claa_wvga.c
增加LCD屏到初始化代码
static int __devinit lcd_probe(struct platform_device *pdev)
{
printk(KERN_INFO " ........lcd_probe qiang........................\n");
LCD_Init_IC_R61505W();
return 0;
}
3:修改mx51_babbage.c
static struct fb_videomode video_modes[] = {
{
/*MITSUBISHI LVDS panel */
"CLAA-WVGA",
60,
240,
320,
107037, 注意时钟,不能太大10M以下
0,
0,
0,
0,
20,
10,
0,
FB_VMODE_NONINTERLACED,
0,
},
{
/* 800x480 @ 57 Hz , pixel clk @ 27MHz */
"CLAA-WVGA",
57,
800,
480,
37037,
40,
60,
10,
10,
20,
10,
FB_SYNC_CLK_LAT_FALL,
FB_VMODE_NONINTERLACED,
0,
},
};
static struct mxc_fb_platform_data fb_data[] = {
{
.interface_pix_fmt = IPU_PIX_FMT_RGB666,
.mode_str = "CLAA-WVGA",
.mode = video_modes,
.num_modes = ARRAY_SIZE(video_modes),
},
{
.interface_pix_fmt = IPU_PIX_FMT_RGB565,
.mode_str = "CLAA-WVGA",
.mode = video_modes,
.num_modes = ARRAY_SIZE(video_modes),
},
};
static void __init mxc_board_init(void)
{
mxc_register_device(&mxc_claalcd_device, NULL); //增加与驱动名字匹配到device
}