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
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
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;
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;
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);
}
};
-#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] = {
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);
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);