LCD: support another s6e8ax0 panel type
[platform/kernel/u-boot.git] / board / samsung / trats / trats.c
index 3085de1..25f5caf 100644 (file)
@@ -53,6 +53,11 @@ u32 get_board_rev(void)
 
 static void check_hw_revision(void);
 
+static int hwrevision(int rev)
+{
+       return (board_rev & 0xf) == rev;
+}
+
 int board_init(void)
 {
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
@@ -492,6 +497,9 @@ void init_panel_info(vidinfo_t *vid)
        vid->interface_mode = FIMD_RGB_INTERFACE;
        vid->mipi_enabled = 1;
 
+       if (hwrevision(2))
+               mipi_lcd_device.reverse_panel = 1;
+
        strcpy(s6e8ax0_platform_data.lcd_panel_name, mipi_lcd_device.name);
        s6e8ax0_platform_data.lcd_power = lcd_power;
        s6e8ax0_platform_data.mipi_power = mipi_power;