void __init evt_peripherals_init(void) { //&*&*&*SJ1_20110419, Add /proc file to display software and hardware version. #if defined (CONFIG_PROCFS_DISPLAY_SW_HW_VERSION) get_share_region(); #endif //&*&*&*SJ2_20110419, Add /proc file to display software and hardware version. //&*&*&*BC1_110615: fix the issue that system can not enter off mode twl4030_get_scripts(&evt_t2scripts_data); //&*&*&*BC2_110615: fix the issue that system can not enter off mode #ifdef CONFIG_ANDROID_RAM_CONSOLE platform_device_register(&ram_console_device); #endif omap_i2c_init(); platform_add_devices( evt_board_devices, ARRAY_SIZE(evt_board_devices) ); platform_add_devices( evt_board_devices_2, ARRAY_SIZE(evt_board_devices_2) ); #ifdef CONFIG_ENCORE_MODEM_MGR if (is_encore_3g()) { platform_device_register(&encore_modem_mgr_device); } #endif #ifdef CONFIG_SND_SOC_TLV320DAC3100 audio_dac_3100_dev_init(); #endif /***++++20110115, jimmySu add backlight driver for PWM***/ #ifdef CONFIG_LEDS_OMAP_DISPLAY gptimer8 = (unsigned long)ioremap(0x4903E000, 16); //&*&*&*HC1_20110826, modify pwm init sequence //zoom_pwm_init(); omap_set_primary_brightness(100); //&*&*&*HC2_20110826, modify pwm init sequence #endif // CONFIG_LEDS_OMAP_DISPLAY /***-----20110115, jimmySu add backlight driver for PWM***/ /* NOTE: Please deselect CONFIG_MACH_OMAP_USE_UART3 in order to init * only UART1 and UART2, all in the name of saving some power. */ omap_serial_init(omap_serial_platform_data); evt_lcd_panel_init(); // kxtf9_dev_init(); #ifdef CONFIG_BATTERY_MAX17042 max17042_dev_init(); #endif usb_musb_init(&musb_board_data); //&*&*&*SJ1_20110607 #if defined (CONFIG_ANDROID_FACTORY_DEFAULT_REBOOT) android_factory_default_init(); #endif //&*&*&*SJ2_20110607 }
static int at070tna2_panel_probe(struct omap_dss_device *dssdev) { /*+++++20110902, JimmySu add board ID*/ int board_id; board_id = ep_get_hardware_id(); switch(board_id) { case BOARD_ID_EVT1: at070tna2_hw_version =3; break; default: at070tna2_hw_version =6; break; } /*----20110902, JimmySu add board ID*/ printk("----------[EP5a]: %s-----------\n", __func__); dssdev->panel.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS ; dssdev->panel.timings = at070tna2_panel_timings; dssdev->ctrl.pixel_size = 24; //&*&*&*BC1_110817: fix the issue that user can see screen switch when device resume INIT_DELAYED_WORK(&delay_work_enablepanel, omap_delay_work_enablepanel); wake_lock_init(&panel_wake_lock, WAKE_LOCK_SUSPEND, "panel_wakelock"); //&*&*&*BC2_110817: fix the issue that user can see screen switch when device resume gpio_request(EDP_LCD_LVDS_CLKSEL, "lcd LVDS CLKSEL"); gpio_request(EDP_LCD_LVDS_SHTDN_GPIO, "lcd LVDS SHTN"); gpio_request(EDP_LCD_PWR_EN, "lcd_panel Power_EN"); gpio_request(EDP_LCD_BL_SW, "lcd_panel backlight switch"); /*touch*/ if (at070tna2_hw_version != BOARD_ID_EVT1){ INIT_DELAYED_WORK(&delay_work_enabletouch, omap_delay_work_enabletouch); wake_lock_init(&touch_wake_lock, WAKE_LOCK_SUSPEND, "panel_wakelock"); gpio_request(EP5A_EVT_TOUCH_RST, "touch_rst"); gpio_request(EP5A_EVT_TOUCH_EN, "touch_en"); } /*touch*/ gpio_direction_output(EDP_LCD_LVDS_CLKSEL, 0); //20110816, modify by JimmySu to fix panel color omap_set_primary_brightness(100); //20111101, JimmySu trun-on backlight when panel probe return 0; }