From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: mvebu: theadorable: Enable DM_VIDEO support
Date: Tue, 29 Jan 2019 11:44:45 +0100 [thread overview]
Message-ID: <20190129104445.10865-3-sr@denx.de> (raw)
In-Reply-To: <20190129104445.10865-1-sr@denx.de>
With the recently added DM_VIDEO support added to the Armada XP video /
LCD driver, this patch now switches the theadorable board to use this
DM_VIDEO.
Additionally the now needed DT node for the LCD controller is added 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>
Cc: Anatolij Gustschin <agust@denx.de>
---
arch/arm/dts/armada-xp-theadorable.dts | 25 +++++++++++++++++++++++++
configs/theadorable_debug_defconfig | 3 +--
include/configs/theadorable.h | 4 ++++
3 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/armada-xp-theadorable.dts b/arch/arm/dts/armada-xp-theadorable.dts
index 9b66ec678d..5695e9b758 100644
--- a/arch/arm/dts/armada-xp-theadorable.dts
+++ b/arch/arm/dts/armada-xp-theadorable.dts
@@ -159,6 +159,31 @@
spi-max-frequency = <27777777>;
};
};
+
+ /* The LCD controller is only used on this board */
+ lcd0: lcd-controller at 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>;
+ };
+ };
+ };
};
};
};
diff --git a/configs/theadorable_debug_defconfig b/configs/theadorable_debug_defconfig
index ac6dfd6844..a7d02e957a 100644
--- a/configs/theadorable_debug_defconfig
+++ b/configs/theadorable_debug_defconfig
@@ -71,6 +71,5 @@ CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_STORAGE=y
+CONFIG_DM_VIDEO=y
CONFIG_VIDEO_MVEBU=y
-CONFIG_VIDEO=y
-# CONFIG_VIDEO_SW_CURSOR is not set
diff --git a/include/configs/theadorable.h b/include/configs/theadorable.h
index 6837d55507..d0c75757ed 100644
--- a/include/configs/theadorable.h
+++ b/include/configs/theadorable.h
@@ -65,6 +65,10 @@
/* 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
--
2.20.1
next prev parent reply other threads:[~2019-01-29 10:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 10:44 [U-Boot] [PATCH] video: Armada XP: Move driver to DM_VIDEO Stefan Roese
2019-01-29 10:44 ` [U-Boot] [PATCH] video: bmp: Add support for 24bpp BMP files on 16bpp displays Stefan Roese
2019-01-29 13:16 ` Anatolij Gustschin
2019-01-29 10:44 ` Stefan Roese [this message]
2019-01-29 13:25 ` [U-Boot] [PATCH] arm: mvebu: theadorable: Enable DM_VIDEO support Anatolij Gustschin
2019-01-29 13:13 ` [U-Boot] [PATCH] video: Armada XP: Move driver to DM_VIDEO Anatolij Gustschin
2019-01-30 6:32 ` Stefan Roese
2019-01-30 7:34 ` Anatolij Gustschin
2019-01-30 7:39 ` Stefan Roese
2019-01-30 7:46 ` Anatolij Gustschin
2019-01-30 7:49 ` Stefan Roese
2019-01-30 8:11 ` Anatolij Gustschin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190129104445.10865-3-sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox