dev_info(hdmi_drv->dev, "func: %s, enable_irq\n", __func__);
enable_irq(hdmi_drv->irq);
}
-
+#if 0
static irqreturn_t rk616_hdmi_irq(int irq, void *dev_id)
{
struct work_struct *rk616_irq_work_struct;
}
return IRQ_HANDLED;
}
-
+#endif
static int rk616_hdmi_drv_init(struct hdmi *hdmi_drv)
{
int ret = 0;
grf_writel(HDMI_SEL_LCDC(lcdc_id), RK3036_GRF_SOC_CON6);
#endif
*/
+ lcdc_id = 0;
if (lcdc_id == 0)
hdmi_drv->lcdc = rk_get_lcdc_drv("lcdc0");
else
hdmi_drv->lcdc = rk_get_lcdc_drv("lcdc1");
+
if (IS_ERR(hdmi_drv->lcdc)) {
dev_err(hdmi_drv->dev,
"can not connect to video source lcdc\n");
}
#endif
- if (rk616_hdmi_drv_init(hdmi_drv))
- goto err0;
-
#ifdef CONFIG_SWITCH
hdmi_drv->switch_hdmi.name = "hdmi";
switch_dev_register(&(hdmi_drv->switch_hdmi));
hdmi_drv->irq = 0;
} else {
/* request the IRQ */
+ #if 0
ret = devm_request_irq(hdmi_drv->dev, hdmi_drv->irq,
rk616_hdmi_irq, 0,
dev_name(hdmi_drv->dev), hdmi_drv);
ret);
goto err2;
}
+ #endif
}
#else
if (gpio_is_valid(hdmi_dev->rk616_drv->pdata->hdmi_irq)) {
}
#endif
+ if (rk616_hdmi_drv_init(hdmi_drv))
+ goto err0;
+
+ //rk616_hdmi_work(hdmi_drv);
#if defined(CONFIG_DEBUG_FS)
if (hdmi_dev->rk616_drv && hdmi_dev->rk616_drv->debugfs_dir) {
queue_delayed_work(hdmi_drv->workqueue, &hdmi_dev->rk616_delay_work,
msecs_to_jiffies(0));
dev_info(hdmi_drv->dev, "rk616 hdmi probe success.\n");
+
return 0;
#if defined(CONFIG_ARCH_RK3026) || defined(SOC_CONFIG_RK3036)
case NORMAL:
hdmi_dbg(hdmi_drv->dev,
"%s change pwr_mode NORMAL pwr_mode = %d, mode = %d\n",
- __func__, hdmi->pwr_mode, mode);
+ __func__, hdmi_drv->pwr_mode, mode);
rk616_hdmi_sys_power(hdmi_drv, false);
if (!(hdmi_drv->set_vif)
&& (hdmi_drv->vic == HDMI_1920x1080p_60Hz
case LOWER_PWR:
hdmi_dbg(hdmi_drv->dev,
"%s change pwr_mode LOWER_PWR pwr_mode = %d, mode = %d\n",
- __func__, hdmi->pwr_mode, mode);
+ __func__, hdmi_drv->pwr_mode, mode);
rk616_hdmi_av_mute(hdmi_drv, 0);
rk616_hdmi_sys_power(hdmi_drv, false);
hdmi_writel(hdmi_dev, PHY_DRIVER, 0x00);
if (vpara->output_mode == OUTPUT_HDMI) {
rk616_hdmi_config_avi(hdmi_drv, vpara->vic,
vpara->output_color);
- hdmi_dbg(hdmi->dev, "[%s] sucess output HDMI.\n", __func__);
+ hdmi_dbg(hdmi_drv->dev, "[%s] sucess output HDMI.\n", __func__);
} else {
- hdmi_dbg(hdmi->dev, "[%s] sucess output DVI.\n", __func__);
+ hdmi_dbg(hdmi_drv->dev, "[%s] sucess output DVI.\n", __func__);
}
if (hdmi_drv->set_vif) {
#else
hdmi_writel(hdmi_dev, INTERRUPT_MASK1, m_INT_HOTPLUG);
#endif
- rk616_hdmi_set_pwr_mode(hdmi_drv, LOWER_PWR);
+ //rk616_hdmi_set_pwr_mode(hdmi_drv, LOWER_PWR); // hjc delete for audis
}
int rk616_hdmi_initial(struct hdmi *hdmi_drv)