#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
+#include <linux/rockchip/common.h>
+#include <dt-bindings/clock/rk_system_status.h>
#include "rk_hdmi.h"
#define HDMI_MAX_TRY_TIMES 1
if(audio_need)
switch_set_state(&(hdmi->switch_hdmi), 0);
#endif
+ rockchip_clear_system_status(SYS_STATUS_HDMI);
}
static void hdmi_sys_sleep(struct hdmi *hdmi)
if(hdmi->edid.base_audio_support == 1 && hdmi->edid.sink_hdmi == 1)
switch_set_state(&(hdmi->switch_hdmi), 1);
#endif
+ rockchip_set_system_status(SYS_STATUS_HDMI);
}
break;
case SYSTEM_CONFIG:
#include <linux/rockchip/cpu.h>
#include <linux/rockchip/iomap.h>
#include <linux/rockchip/grf.h>
+#include <linux/rockchip/common.h>
+#include <dt-bindings/clock/rk_system_status.h>
#include "rk3288_lcdc.h"
{
struct lcdc_device *lcdc_dev = container_of(dev_drv,
struct lcdc_device, driver);
+ int sys_status = (dev_drv->id == 0) ?
+ SYS_STATUS_LCDC0 : SYS_STATUS_LCDC1;
/*enable clk,when first layer open */
if ((open) && (!lcdc_dev->atv_layer_cnt)) {
+ rockchip_set_system_status(sys_status);
rk3288_lcdc_pre_init(dev_drv);
rk3288_lcdc_clk_enable(lcdc_dev);
rk3288_lcdc_reg_restore(lcdc_dev);
rk3288_lcdc_disable_irq(lcdc_dev);
rk3288_lcdc_reg_update(dev_drv);
rk3288_lcdc_clk_disable(lcdc_dev);
+ rockchip_clear_system_status(sys_status);
}
return 0;