rockchip: video: mipi: Do not write to the version register
authorRichard Röjfors <richard.rojfors@gmail.com>
Wed, 7 Nov 2018 10:34:44 +0000 (11:34 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 30 Nov 2018 18:03:16 +0000 (19:03 +0100)
There was a copy and paste error where the data
enable setting was written to the version register.

Signed-off-by: Richard Röjfors <richard@puffinpack.se>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/video/rockchip/rk_mipi.c

index 4fe8f47441e49468966d1738a81294e5f0c4d5cc..88bf56ea098e3b016214582202c5d12b767ff87b 100644 (file)
@@ -106,7 +106,7 @@ int rk_mipi_dsi_enable(struct udevice *dev,
        rk_mipi_dsi_write(regs, VSYNC_ACTIVE_LOW, val);
 
        val = (timing->flags & DISPLAY_FLAGS_DE_LOW) ? 1 : 0;
-       rk_mipi_dsi_write(regs, DISPLAY_FLAGS_DE_LOW, val);
+       rk_mipi_dsi_write(regs, DATAEN_ACTIVE_LOW, val);
 
        val = (timing->flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE) ? 1 : 0;
        rk_mipi_dsi_write(regs, COLORM_ACTIVE_LOW, val);