__s32 Hdmi_init(void) { s32 ret = 0; disp_hdmi_func disp_func; s32 val; hdmi_used = 0; ret = script_parser_fetch("hdmi_para", "hdmi_used", &val, 1); if(ret == 0) { hdmi_used = val; if(hdmi_used) { #if defined(CONFIG_ARCH_HOMELET) //need to be same later ret = script_parser_fetch("hdmi_para", "hdmi_power_boot", (int *)hdmi_power, 25); #else ret = script_parser_fetch("hdmi_para", "hdmi_power", (int *)hdmi_power, 25); #endif if(ret == 0) { OSAL_Power_Enable(hdmi_power); } ret = script_parser_fetch("hdmi_para", "hdmi_cts_compatibility", &val, 1); if(ret == 0) { Hdmi_hal_cts_enable(val); printf("cts_enable, %d\n", val); } ret = script_parser_fetch("hdmi_para", "hdmi_hdcp_enable", &val, 1); if(ret == 0) { Hdmi_hal_hdcp_enable(val); printf("hdcp_enable, %d\n", val); } Hdmi_hal_init(); disp_func.hdmi_open = Hdmi_open; disp_func.hdmi_close = Hdmi_close; disp_func.hdmi_set_mode = Hdmi_set_display_mode; disp_func.hdmi_mode_support = Hdmi_mode_support; disp_func.hdmi_get_HPD_status = Hdmi_get_HPD_status; disp_func.hdmi_get_video_timing_info = Hdmi_get_video_timming_info; disp_func.hdmi_get_video_info_index = Hdmi_get_video_info_index; disp_set_hdmi_func(0, &disp_func); disp_set_hdmi_func(1, &disp_func); } } return 0; }
__s32 Hdmi_dvi_enable(__u32 mode) { return Hdmi_hal_cts_enable(mode);//Hdmi_hal_dvi_enable(mode); }