- 论坛徽章:
- 5
|
本帖最后由 T-Bagwell 于 2011-06-22 10:53 编辑
问题:
u-boot里哪个文件用于点亮屏,初始化屏; 目前公司的方案能点亮三星的屏,但LG的屏只是背光亮,
...
aaaaa5aa 发表于 2011-06-22 08:40 ![]()
LCD的规格应该不相同吧?
比如电压,电流的大小
比如初试序列对不?
背光能点亮和lcd能显示图象是两回事
arch/arm/cpu/armv7/start.S
你想要的是这个文件不?
board_init_r里面可以看到stdio_init
stdio_init里面有lcd驱动初始化接口
-
- int drv_lcd_init (void)
- {
- struct stdio_dev lcddev;
- int rc;
-
- lcd_base = (void *)(gd->fb_base);
-
- lcd_line_length = (panel_info.vl_col * NBITS (panel_info.vl_bpix)) / 8;
-
- lcd_init (lcd_base); /* LCD initialization */
-
- /* Device initialization */
- memset (&lcddev, 0, sizeof (lcddev));
-
- strcpy (lcddev.name, "lcd");
- lcddev.ext = 0; /* No extensions */
- lcddev.flags = DEV_FLAGS_OUTPUT; /* Output only */
- lcddev.putc = lcd_putc; /* 'putc' function */
- lcddev.puts = lcd_puts; /* 'puts' function */
-
- rc = stdio_register (&lcddev);
-
- return (rc == 0) ? 1 : rc;
- }
-
复制代码 从上面的代码入手即可
board_init_ 相关的是一些初始化操作,在这里可以看到lcd相关的入口
- init_fnc_t *init_sequence[] = {
- #if defined(CONFIG_ARCH_CPU_INIT)
- arch_cpu_init, /* basic arch cpu dependent setup */
- #endif
- #if defined(CONFIG_BOARD_EARLY_INIT_F)
- board_early_init_f,
- #endif
- timer_init, /* initialize timer */
- #ifdef CONFIG_FSL_ESDHC
- get_clocks,
- #endif
- env_init, /* initialize environment */
- init_baudrate, /* initialze baudrate settings */
- serial_init, /* serial communications setup */
- console_init_f, /* stage 1 init of console */
- display_banner, /* say that we are here */
- #if defined(CONFIG_DISPLAY_CPUINFO)
- print_cpuinfo, /* display cpu info (and speed) */
- #endif
- #if defined(CONFIG_DISPLAY_BOARDINFO)
- checkboard, /* display board info */
- #endif
- #if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C)
- init_func_i2c,
- #endif
- dram_init, /* configure available RAM banks */
- #if defined(CONFIG_CMD_PCI) || defined (CONFIG_PCI)
- arm_pci_init,
- #endif
- NULL,
- };
复制代码
- #ifdef CONFIG_LCD
- #ifdef CONFIG_FB_ADDR
- gd->fb_base = CONFIG_FB_ADDR;
- #else
- /* reserve memory for LCD display (always full pages) */
- addr = lcd_setmem (addr);
- gd->fb_base = addr;
- #endif /* CONFIG_FB_ADDR */
- #endif /* CONFIG_LCD */
复制代码 |
|