arm: mvebu: theadorable: Enable video / LCD support with the new DM driver
authorStefan Roese <sr@denx.de>
Wed, 30 Jan 2019 07:54:13 +0000 (08:54 +0100)
committerStefan Roese <sr@denx.de>
Tue, 5 Feb 2019 13:23:27 +0000 (14:23 +0100)
With the new DM_VIDEO support in the Armada XP LCD driver, this patch
adds the needed DT node for the LCD controller to the theadorable dts
file. This DT property is not added to the Armada XP dtsi files, as this
LCD feature is pretty unusual for this SoC and I personally know of no
other board that uses this controller.

This patch also enables CONFIG_BMP_16BPP/24BPP/32BPP, as the "old" bmp
command supported these BMP files.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
arch/arm/dts/armada-xp-theadorable.dts
include/configs/theadorable.h

index 9b66ec6..5695e9b 100644 (file)
                                        spi-max-frequency = <27777777>;
                                };
                        };
+
+                       /* The LCD controller is only used on this board */
+                       lcd0: lcd-controller@e0000 {
+                               compatible = "marvell,armada-xp-lcd";
+                               reg = <0xe0000 0x10000>;
+                               status = "okay";
+                               u-boot,dm-pre-reloc;
+
+                               display-timings {
+                                       native-mode = <&timing0>;
+                                       timing0: panel0 {
+                                               hactive = <240>;
+                                               vactive = <320>;
+                                               hfront-porch = <1>;
+                                               hback-porch = <45>;
+                                               vfront-porch = <1>;
+                                               vback-porch = <3>;
+
+                                               /* Some dummy parameters */
+                                               clock-frequency = <0>;
+                                               hsync-len = <0>;
+                                               vsync-len = <0>;
+                                       };
+                               };
+                       };
                };
        };
 };
index 27c8580..886456e 100644 (file)
 /* Enable LCD and reserve 512KB from top of memory*/
 #define CONFIG_SYS_MEM_TOP_HIDE                0x80000
 
+#define CONFIG_BMP_16BPP
+#define CONFIG_BMP_24BPP
+#define CONFIG_BMP_32BPP
+
 /* FPGA programming support */
 #define CONFIG_FPGA_STRATIX_V