[RAMEN9610-9644] fbdev: dpu20: added dsim ddi device type
authorChiHun Won <chihun.won@samsung.com>
Wed, 19 Dec 2018 02:16:51 +0000 (11:16 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:09 +0000 (20:23 +0300)
Change-Id: I54c7e88dda5a9dc2cf988cc90f4efbeedb3e4b69
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
drivers/video/fbdev/exynos/dpu20/dsim.h
drivers/video/fbdev/exynos/dpu20/dsim_drv.c

index 20c9288ea4fa94ed490575f111820b17d710620f..51294aba71af817205d0ecdc9f4510bad99add33 100644 (file)
@@ -30,6 +30,7 @@ extern int dsim_log_level;
 #define DSIM_MODULE_NAME                       "exynos-dsim"
 #define MAX_DSIM_CNT                           2
 #define DSIM_DDI_ID_LEN                                3
+#define DSIM_DDI_TYPE_LEN                      50
 
 #define DSIM_PIXEL_FORMAT_RGB24                        0x3E
 #define DSIM_PIXEL_FORMAT_RGB18_PACKED         0x1E
@@ -234,6 +235,7 @@ struct dsim_device {
        bool esd_recovering;
 #endif
        u32 ddi_id;
+       char ddi_device_type[DSIM_DDI_TYPE_LEN];
 };
 
 struct dsim_lcd_driver {
index 5d924bf0328b912555b096d9a539b63870b912e0..c553f32e0601c51f05aba324751b5ddf2919c7dd 100644 (file)
@@ -1320,6 +1320,8 @@ static void dsim_parse_lcd_info(struct dsim_device *dsim)
                break;
        }
 
+       snprintf(dsim->ddi_device_type, DSIM_DDI_TYPE_LEN, "%s", ddi_device_type);
+
        node = of_find_node_by_type(node, ddi_device_type);
 
        of_property_read_u32(node, "mode", &dsim->lcd_info.mode);