kobject_uevent_env(&hdmi->ddev->dev->kobj, KOBJ_REMOVE, envp);
#ifdef CONFIG_SWITCH
- if (audio_need)
+ if (audio_need ||
+ rk_fb_get_display_policy() == DISPLAY_POLICY_BOX)
switch_set_state(&(hdmi->switch_hdmi), 0);
#endif
rockchip_clear_system_status(SYS_STATUS_HDMI);
hdmi->edid.base_audio_support,
hdmi->edid.sink_hdmi);
#ifdef CONFIG_SWITCH
- if (hdmi->edid.base_audio_support == 1 &&
- hdmi->edid.sink_hdmi == 1)
+ if ((hdmi->edid.base_audio_support == 1 &&
+ hdmi->edid.sink_hdmi == 1) ||
+ (rk_fb_get_display_policy() ==
+ DISPLAY_POLICY_BOX))
switch_set_state(&(hdmi->switch_hdmi),
1);
#endif
return uboot_logo_on;
}
+int rk_fb_get_display_policy(void)
+{
+ struct rk_fb *rk_fb;
+
+ if (fb_pdev) {
+ rk_fb = platform_get_drvdata(fb_pdev);
+ return rk_fb->disp_policy;
+ } else {
+ return DISPLAY_POLICY_SDK;
+ }
+}
+
int rk_fb_trsm_ops_register(struct rk_fb_trsm_ops *ops, int type)
{
switch (type) {
extern struct device *rk_fb_get_sysmmu_device_by_compatible(const char *compt);
extern void rk_fb_platform_set_sysmmu(struct device *sysmmu,
struct device *dev);
+int rk_fb_get_display_policy(void);
#endif