#include <mach/gpio.h>\r
#include <mach/iomux.h>\r
#include <mach/board.h>\r
-\r
-#include <linux/hdmi.h>\r
#include "rk610_lcd.h"\r
#include <linux/mfd/rk610_core.h>\r
-#include "../../rk29_fb.h"\r
+#include <linux/rk_fb.h>\r
+#include "../../rockchip/hdmi/rk_hdmi.h"\r
+\r
static struct rk610_lcd_info *g_lcd_inf = NULL;\r
//static int rk610_scaler_read_p0_reg(struct i2c_client *client, char reg, char *val)\r
//{\r
bool den_inv = 0,hv_sync_inv = 0,clk_inv = 0;\r
RK610_DBG(&client->dev,"%s \n",__FUNCTION__);\r
g_lcd_inf->scl_inf.scl_pwr = ENABLE;\r
- #ifdef CONFIG_HDMI_DUAL_DISP\r
+ #if defined(CONFIG_HDMI_DUAL_DISP) || defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)\r
if(g_lcd_inf->screen !=NULL){\r
den_inv = g_lcd_inf->screen->s_den_inv;\r
hv_sync_inv = g_lcd_inf->screen->s_hv_sync_inv;\r
RK610_DBG(&client->dev,"%s \n",__FUNCTION__);\r
\r
g_lcd_inf->scl_inf.scl_pwr = DISABLE;\r
- #ifdef CONFIG_HDMI_DUAL_DISP\r
+ #if defined(CONFIG_HDMI_DUAL_DISP) || defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)\r
if(g_lcd_inf->screen !=NULL){\r
den_inv = g_lcd_inf->screen->s_den_inv;\r
hv_sync_inv = g_lcd_inf->screen->s_hv_sync_inv;\r
}\r
return 0;\r
}\r
-#ifdef CONFIG_HDMI_DUAL_DISP\r
+#if defined(CONFIG_HDMI_DUAL_DISP) || defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)\r
static int rk610_scaler_pll_set(struct i2c_client *client,struct rk29fb_screen *screen,u32 clkin )\r
{\r
char c=0;\r
/***************set scaler factor********************/\r
scale_hv_factor(client,1280,screen->x_res,720,screen->y_res);\r
break;\r
- case HDMI_720x576p_50Hz_16x9:\r
- case HDMI_720x576p_50Hz_4x3:\r
+ case HDMI_720x576p_50Hz_16_9:\r
+ case HDMI_720x576p_50Hz_4_3:\r
rk610_scaler_pll_set(client,screen,27000000);\r
/***************set scaler factor********************/\r
scale_hv_factor(client,720,screen->x_res,576,screen->y_res);\r
break;\r
- case HDMI_720x480p_60Hz_16x9:\r
- case HDMI_720x480p_60Hz_4x3:\r
+ case HDMI_720x480p_60Hz_16_9:\r
+ case HDMI_720x480p_60Hz_4_3:\r
rk610_scaler_pll_set(client,screen,27000000);\r
/***************set scaler factor********************/\r
scale_hv_factor(client,720,screen->x_res,480,screen->y_res);\r
printk("%s screen == NULL FAIL\n",__FUNCTION__);\r
return -1;\r
}\r
- RK610_DBG(&client->dev,"%s \n",__FUNCTION__);\r
+ RK610_DBG(&client->dev,"%s \n",__FUNCTION__,);\r
\r
g_lcd_inf->screen = screen;\r
\r
-#ifdef CONFIG_HDMI_DUAL_DISP\r
+#if defined(CONFIG_HDMI_DUAL_DISP) || defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)\r
if(enable == 1){\r
g_lcd_inf->disp_mode = LCD_OUT_SCL;\r
rk610_output_config(client,screen,LCD_OUT_SCL);\r
SCALE_PLL(74250000, 33000000, 32, 9, 8),
SCALE_PLL(74250000, 30375000, 36, 11, 8),
SCALE_PLL(74250000, 25312500, 30, 11, 8),
+ SCALE_PLL(74250000, 74250000, 12, 3, 4),
SCALE_PLL(27000000, 75000000, 100, 9, 4),
SCALE_PLL(27000000, 72000000, 32, 3, 4),