static int board_video_init(void) { int i; int anzdisp = ARRAY_SIZE(lcd_panels); int display = 1; for (i = 0; i < anzdisp; i++) { if (strncmp((const char *)factory_dat.disp_name, lcd_panels[i].name, strlen((const char *)factory_dat.disp_name)) == 0) { printf("DISPLAY: %s\n", factory_dat.disp_name); break; } } if (i == anzdisp) { i = 1; printf("%s: %s not found, using default %s\n", __func__, factory_dat.disp_name, lcd_panels[i].name); } conf_disp_pll(24, 1); da8xx_video_init(&lcd_panels[display], &lcd_cfgs[display], lcd_cfgs[display].bpp); return 0; }
static int board_video_init(void) { conf_disp_pll(24, 1); if (factory_dat.pxm50) da8xx_video_init(&lcd_panels[0], &lcd_cfg, lcd_cfg.bpp); else da8xx_video_init(&lcd_panels[1], &lcd_cfg, lcd_cfg.bpp); enable_pwm(); enable_backlight(); return 0; }
static void pfla03_lcdc_init(void) { int status; setup_pin_mux(lcdc_pin_mux); status = gpio_request(GPIO_DISPLAY_EN, "lcd_en\n"); if (status < 0) { pr_err("Failed to request gpio for display enable"); return; } gpio_direction_output(GPIO_DISPLAY_EN, 0); if (conf_disp_pll(300000000)) { pr_info("Failed configure display PLL, not attempting to" "register LCDC\n"); return; } if (am33xx_register_lcdc(&lcdc_selection_pdata)) pr_info("Failed to register LCDC device\n"); return; }