文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>7627 bring out steps

7627 bring out steps

时间:2010-08-12  来源:xiaosuzi

  1. 1. Download the images;
  2. 2. Boot the kernel:
    1. Bootloader
    2. Linux booting
    3. Drivers:
      1. flash
      2. msm board
      3. display (mdp->lcdc->lcd)
      4. hs-usb
      5. camera
Changes:

1.Display/LCD

1.1 display.h

Change the following #difine:

#define TARGET_XRES 800
#define TARGET_YRES 480

#define LCDC_FB_WIDTH     800
#define LCDC_FB_HEIGHT    480

#define LCDC_HSYNC_PULSE_WIDTH_DCLK 60
#define LCDC_HSYNC_BACK_PORCH_DCLK  81
#define LCDC_HSYNC_FRONT_PORCH_DCLK 81
#define LCDC_HSYNC_SKEW_DCLK        0

#define LCDC_VSYNC_PULSE_WIDTH_LINES 2
#define LCDC_VSYNC_BACK_PORCH_LINES  20
#define LCDC_VSYNC_FRONT_PORCH_LINES 27

1.2 fbcon.h

#define FB_FORMAT_RGB565 0
+#define FB_FORMAT_RGB888 1

1.3 fbcon.c

#define RGB565_BLACK  0x0000
#define RGB565_WHITE  0xffff

+#define RGB888_BLACK  0x000000
+#define RGB888_WHITE  0xffffff

void fbcon_setup(struct fbcon_config *_config)
{
 uint32_t bg;
 uint32_t fg;

 ASSERT(_config);

 config = _config;

 switch (config->format) {
 case FB_FORMAT_RGB565:
  bg = RGB565_BLACK;
  fg = RGB565_WHITE;
  break;

 +case FB_FORMAT_RGB888:
 + bg = RGB888_BLACK;
 + fg = RGB888_WHITE;
 + break;

 default:
  dprintf(CRITICAL, "unknown framebuffer pixel format\n");
  ASSERT(0);
  break;
 }

 fbcon_set_colors(bg, fg);

 cur_pos.x = 0;
 cur_pos.y = 0;
 max_pos.x = config->width / (FONT_WIDTH+1);
 max_pos.y = (config->height - 1) / FONT_HEIGHT;
}

 

 

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载