ccflags-$(CONFIG_RK_HDMI_DEBUG) = -DDEBUG -DHDMI_DEBUG
-ccflags-$(CONFIG_HDCP_RK2928_DEBUG) = -DHDCP_DEBUG
+ccflags-$(CONFIG_HDCP_RK610_DEBUG) = -DHDCP_DEBUG
obj-$(CONFIG_HDMI_RK610) += rk610_hdmi_hw.o rk610_hdmi.o
obj-$(CONFIG_HDCP_RK610) += rk610_hdmi_hdcp.o rk610_hdcp.o
#ifdef HDMI_USE_IRQ\r
if(client->irq != INVALID_GPIO) {\r
INIT_WORK(&rk610_hdmi->irq_work, rk610_irq_work_func);\r
+ schedule_work(&rk610_hdmi->irq_work);\r
if((rc = gpio_request(client->irq, "hdmi gpio")) < 0)\r
{\r
dev_err(&client->dev, "fail to request gpio %d\n", client->irq);\r
rk610_hdmi->gpio = client->irq;\r
gpio_pull_updown(client->irq, GPIOPullUp);\r
gpio_direction_input(client->irq);\r
- if((rc = request_irq(rk610_hdmi->irq, rk610_irq, IRQF_TRIGGER_RISING, NULL, hdmi)) < 0)\r
+ if((rc = request_irq(hdmi->irq, rk610_irq, IRQF_TRIGGER_RISING, NULL, hdmi)) < 0)\r
{\r
dev_err(&client->dev, "fail to request hdmi irq\n");\r
goto err_request_irq;\r
#include "../../rk_hdmi.h"\r
\r
#define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC0\r
+//#define HDMI_USE_IRQ\r
\r
struct rk610_hdmi_pdata {\r
int gpio;\r
struct i2c_client *client;\r
struct delayed_work delay_work;\r
- #ifndef HDMI_USE_IRQ\r
+ #ifdef HDMI_USE_IRQ\r
+ struct work_struct irq_work;\r
+ #else\r
struct workqueue_struct *workqueue;\r
#endif\r
};\r
else {
if(hdmi->irq)
enable_irq(hdmi->irq);
- else
+ #ifdef CONFIG_HDMI_RK610
queue_delayed_work(hdmi->workqueue, &hdmi->delay_work, 0);
+ #endif
mutex_unlock(&hdmi->enable_mutex);
}
return 0;