LCD驱动流水帐记录

src/android/kernel/arch/arm/configs/msm8960-perf_OT310-eth-cdrom_defconfig 
src/android/kernel/arch/arm/configs/msm8960-perf_OT310-eth_defconfig 
src/android/kernel/arch/arm/configs/msm8960-perf_OT310_defconfig 
src/android/kernel/arch/arm/mach-msm/board-8960-display.c 
src/android/kernel/drivers/video/msm/Kconfig 
src/android/kernel/drivers/video/msm/Makefile 
src/android/kernel/drivers/video/msm/mipi_truly_3p5079.c[new file with mode: 0644]
src/android/kernel/drivers/video/msm/mipi_truly_3p5079.h[new file with mode: 0644]
src/android/kernel/drivers/video/msm/mipi_truly_3p5079_video_fwvga_pt.c[new file with mode: 0644]

@@ -419,6 +419,7 @@  CONFIG_FB_MSM_OVERLAY1_WRITEBACK=y
 CONFIG_FB_MSM_WRITEBACK_MSM_PANEL=y
 CONFIG_FB_MSM_LVDS_MIPI_PANEL_DETECT=y
 CONFIG_FB_MSM_MIPI_DSI_HIMAX_HX8363A_PT=y
+# CONFIG_FB_MSM_MIPI_DSI_TRULY_3P5079_PT is not set
 CONFIG_FB_MSM_HDMI_MSM_PANEL=y
 CONFIG_BACKLIGHT_LCD_SUPPORT=y
 CONFIG_BACKLIGHT_CLASS_DEVICE=y

index  906e3d1.. 3f78d15 100644  (file)
@@ -222,7 +222,15 @@  config FB_MSM_MIPI_DSI_HIMAX_HX8363A
        select FB_MSM_MIPI_DSI
        default y
 
-
+#for truly LCD
+config FB_MSM_MIPI_DSI_TRULY_3P5079_PT
+        bool
+        select FB_MSM_MIPI_DSI_TRULY_3P5079
+        default n
+config FB_MSM_MIPI_DSI_TRULY_3P5079
+       bool
+       select FB_MSM_MIPI_DSI
+       default n
 
 config FB_MSM_MIPI_DSI_NT35516
        bool
@@ -102,6 +102,8 @@  obj-$(CONFIG_FB_MSM_EBI2_TMD_QVGA_EPSON_QCIF) += ebi2_l2f.o
 obj-$(CONFIG_FB_MSM_MIPI_DSI_HIMAX_HX8363A) += mipi_himax_hx8363a.o
 obj-$(CONFIG_FB_MSM_MIPI_DSI_HIMAX_HX8363A_PT) += mipi_himax_hx8363a_cmd_fwvga_pt.o
 
+obj-$(CONFIG_FB_MSM_MIPI_DSI_TRULY_3P5079) += mipi_truly_3p5079.o
+obj-$(CONFIG_FB_MSM_MIPI_DSI_TRULY_3P5079_PT) += mipi_truly_3p5079_video_fwvga_pt.o
 
 ifeq ($(CONFIG_FB_MSM_MDDI_AUTO_DETECT),y)
 obj-y += mddi_prism.o

 #define MIPI_CMD_ORISE_720P_PANEL_NAME         "mipi_cmd_orise_720p"
 #define HDMI_PANEL_NAME        "hdmi_msm"
 #define TVOUT_PANEL_NAME       "tvout_msm"
-#ifdef BSP_LCD_MOD
-#define MIPI_VIDEO_HX8363A__PANEL_NAME    "mipi_himax_hx8363a" 
+#ifdef CONFIG_FB_MSM_MIPI_DSI_HIMAX_HX8363A_PT
+#define MIPI_VIDEO_HX8363A_PANEL_NAME    "mipi_himax_hx8363a" 
 #endif
+#ifdef CONFIG_FB_MSM_MIPI_DSI_TRULY_3P5079_PT
+#define MIPI_TRULY_3P5079_PANEL_NAME "mipi_truly_3p5079"
+#endif
+
 
 #ifdef CONFIG_FB_MSM_HDMI_AS_PRIMARY
 static unsigned char hdmi_is_primary = 1;
@@ -172,12 +176,19 @@  static int msm_fb_detect_panel(const char *name)
                                PANEL_NAME_MAX_LEN)))
                return 0;
        
-#ifdef BSP_LCD_MOD  //jason-0815
-       if (!strncmp(name, MIPI_VIDEO_HX8363A__PANEL_NAME,
-               strnlen(MIPI_VIDEO_HX8363A__PANEL_NAME,
+#ifdef CONFIG_FB_MSM_MIPI_DSI_HIMAX_HX8363A_PT  //jason-0815
+       if (!strncmp(name, MIPI_VIDEO_HX8363A_PANEL_NAME,
+               strnlen(MIPI_VIDEO_HX8363A_PANEL_NAME,
                                PANEL_NAME_MAX_LEN)))
        return 0;
 #endif
+#ifdef CONFIG_FB_MSM_MIPI_DSI_TRULY_3P5079_PT  //jason-0815
+               if (!strncmp(name, MIPI_TRULY_3P5079_PANEL_NAME,
+                       strnlen(MIPI_TRULY_3P5079_PANEL_NAME,
+                                       PANEL_NAME_MAX_LEN)))
+               return 0;
+#endif
+
 
        pr_warning("%s: not supported '%s'", __func__, name);
        return -ENODEV;
@@ -397,7 +408,7 @@  static int mipi_dsi_cdp_panel_power(int on)
                                PTR_ERR(reg_l2));
                        return -ENODEV;
                }
-               #ifdef BSP_LCD_MOD
+               #if defined(CONFIG_FB_MSM_MIPI_DSI_HIMAX_HX8363A_PT) || defined(CONFIG_FB_MSM_MIPI_DSI_TRULY_3P5079_PT)
                rc = regulator_set_voltage(reg_l8, 2800000, 3000000);
                #else
                rc = regulator_set_voltage(reg_l8, 4200000, 4200000);
@@ -703,19 +714,33 @@  static struct platform_device mipi_dsi_orise_panel_device = {
        }
 };
 
-#ifdef BSP_LCD_MOD  //jason-0813
+#ifdef CONFIG_FB_MSM_MIPI_DSI_HIMAX_HX8363A_PT  //jason-0813
 static struct mipi_dsi_panel_platform_data himax_hx8363a_pdata = {
        .gpio = NULL,
        .dsi_pwm_cfg = mipi_dsi_panel_pwm_cfg,
 };
 static struct platform_device mipi_dsi_himax_panel_device = {
-       .name = "mipi_himax_hx8363a",
+       .name = MIPI_VIDEO_HX8363A_PANEL_NAME,
        .id = 0,
        .dev = {
                .platform_data = &himax_hx8363a_pdata,
        }
 };
 #endif
+#ifdef CONFIG_FB_MSM_MIPI_DSI_TRULY_3P5079_PT
+static struct mipi_dsi_panel_platform_data truly_3p5079_pdata = {
+       .gpio = NULL,
+       .dsi_pwm_cfg = mipi_dsi_panel_pwm_cfg,
+};
+static struct platform_device mipi_dsi_truly_panel_device = {
+       .name = MIPI_TRULY_3P5079_PANEL_NAME,
+       .id = 0,
+       .dev = {
+               .platform_data = &truly_3p5079_pdata,
+       }
+};
+#endif
+
 
 #define FPGA_3D_GPIO_CONFIG_ADDR       0xB5
 static int dsi2lvds_gpio[4] = {
@@ -1098,7 +1123,7 @@  void __init msm8960_init_fb(void)
        platform_device_register(&wfd_panel_device);
        platform_device_register(&wfd_device);
 #endif
-#ifdef BSP_LCD_MOD
+#ifdef CONFIG_FB_MSM_MIPI_DSI_HIMAX_HX8363A_PT
        if(0){
        platform_device_register(&mipi_dsi_novatek_panel_device);
        platform_device_register(&mipi_dsi_orise_panel_device);
@@ -1108,11 +1133,15 @@  void __init msm8960_init_fb(void)
        platform_device_register(&mipi_dsi_novatek_panel_device);
        platform_device_register(&mipi_dsi_orise_panel_device);
 #endif
+#ifdef CONFIG_FB_MSM_MIPI_DSI_TRULY_3P5079_PT
+       platform_device_register(&mipi_dsi_truly_panel_device); //jason-0815
+#endif
+
 
 #ifdef CONFIG_FB_MSM_HDMI_MSM_PANEL
        platform_device_register(&hdmi_msm_device);
 #endif
-#ifdef BSP_LCD_MOD
+#if defined(CONFIG_FB_MSM_MIPI_DSI_HIMAX_HX8363A_PT) || defined(CONFIG_FB_MSM_MIPI_DSI_TRULY_3P5079_PT)
        if(0){
        if (machine_is_msm8960_liquid())
                platform_device_register(&mipi_dsi2lvds_bridge_device);


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值