Lines Matching defs:mfd
372 static void toshiba_common_initial_setup(struct msm_fb_data_type *mfd)
374 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA_PT) {
556 if (TM_GET_PID(mfd->panel.id) == LCD_SHARP_2P4_VGA) {
645 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA) {
879 static void toshiba_prim_start(struct msm_fb_data_type *mfd)
881 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA_PT)
884 if (TM_GET_PID(mfd->panel.id) == LCD_SHARP_2P4_VGA) {
962 static void toshiba_sec_start(struct msm_fb_data_type *mfd)
964 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA_PT)
1134 static void toshiba_prim_lcd_off(struct msm_fb_data_type *mfd)
1136 if (TM_GET_PID(mfd->panel.id) == LCD_SHARP_2P4_VGA) {
1157 if (TM_GET_PID(mfd->panel.id) != LCD_SHARP_2P4_VGA) {
1165 static void toshiba_sec_lcd_off(struct msm_fb_data_type *mfd)
1167 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA_PT)
1217 static void toshiba_sec_cont_update_start(struct msm_fb_data_type *mfd)
1220 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA_PT)
1251 static void toshiba_sec_cont_update_stop(struct msm_fb_data_type *mfd)
1253 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA_PT)
1266 static void toshiba_sec_backlight_on(struct msm_fb_data_type *mfd)
1268 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA_PT)
1282 static void toshiba_sec_sleep_in(struct msm_fb_data_type *mfd)
1284 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA_PT)
1335 static void toshiba_sec_sleep_out(struct msm_fb_data_type *mfd)
1337 if (TM_GET_PID(mfd->panel.id) == LCD_TOSHIBA_2P4_WVGA_PT)
1396 static void mddi_toshiba_lcd_set_backlight(struct msm_fb_data_type *mfd)
1400 int max = mfd->panel_info.bl_max;
1401 int min = mfd->panel_info.bl_min;
1404 ret = mddi_toshiba_pdata->pmic_backlight(mfd->bl_level);
1410 level = mddi_toshiba_pdata->backlight_level(mfd->bl_level,
1416 if (TM_GET_PID(mfd->panel.id) == LCD_SHARP_2P4_VGA)
1422 level = (mfd->bl_level * 4999) / max;
1542 static void mddi_toshiba_prim_init(struct msm_fb_data_type *mfd)
1550 toshiba_common_initial_setup(mfd);
1553 toshiba_common_initial_setup(mfd);
1556 toshiba_sec_cont_update_stop(mfd);
1557 toshiba_sec_sleep_in(mfd);
1558 toshiba_sec_sleep_out(mfd);
1559 toshiba_sec_lcd_off(mfd);
1560 toshiba_common_initial_setup(mfd);
1567 toshiba_prim_start(mfd);
1568 if (TM_GET_PID(mfd->panel.id) == LCD_SHARP_2P4_VGA)
1573 static void mddi_toshiba_sec_init(struct msm_fb_data_type *mfd)
1580 toshiba_common_initial_setup(mfd);
1583 toshiba_prim_lcd_off(mfd);
1584 toshiba_common_initial_setup(mfd);
1591 toshiba_sec_start(mfd);
1592 toshiba_sec_backlight_on(mfd);
1593 toshiba_sec_cont_update_start(mfd);
1597 static void mddi_toshiba_lcd_powerdown(struct msm_fb_data_type *mfd)
1601 mddi_toshiba_prim_init(mfd);
1602 mddi_toshiba_lcd_powerdown(mfd);
1607 toshiba_prim_lcd_off(mfd);
1610 toshiba_sec_cont_update_stop(mfd);
1611 toshiba_sec_sleep_in(mfd);
1612 toshiba_sec_sleep_out(mfd);
1613 toshiba_sec_lcd_off(mfd);
1625 struct msm_fb_data_type *mfd;
1626 mfd = platform_get_drvdata(pdev);
1627 if (!mfd)
1629 if (mfd->key != MFD_KEY)
1632 if (TM_GET_DID(mfd->panel.id) == TOSHIBA_VGA_PRIM)
1633 mddi_toshiba_prim_init(mfd);
1635 mddi_toshiba_sec_init(mfd);
1636 if (TM_GET_PID(mfd->panel.id) == LCD_SHARP_2P4_VGA) {