summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2014-08-13 07:55:07 +0200
committerHans de Goede <hdegoede@redhat.com>2014-11-25 13:38:46 +0100
commit2d7a084ba0d77b96c3e053492173f3dda364d350 (patch)
tree119afa376ea0189b65b26391a9ab83c4e5626cae /board
parent11b8dfa7180ca8fe5b9bcf5a2ef800ceb9573334 (diff)
downloadblackbird-obmc-uboot-2d7a084ba0d77b96c3e053492173f3dda364d350.tar.gz
blackbird-obmc-uboot-2d7a084ba0d77b96c3e053492173f3dda364d350.zip
sunxi: video: Add simplefb support
Add simplefb support, note this depends on the kernel having support for the clocks property which has recently been added to the simplefb devicetree binding. Signed-off-by: Luc Verhaegen <libv@skynet.be> [hdegoede@redhat.com: Use pre-populated simplefb node under /chosen as disussed on the devicetree list] Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>.
Diffstat (limited to 'board')
-rw-r--r--board/sunxi/board.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index e6ec5b8fc1..4c1c69a6ae 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -24,6 +24,7 @@
#endif
#include <asm/arch/clock.h>
#include <asm/arch/cpu.h>
+#include <asm/arch/display.h>
#include <asm/arch/dram.h>
#include <asm/arch/gpio.h>
#include <asm/arch/mmc.h>
@@ -237,3 +238,12 @@ int misc_init_r(void)
return 0;
}
#endif
+
+#ifdef CONFIG_OF_BOARD_SETUP
+int ft_board_setup(void *blob, bd_t *bd)
+{
+#ifdef CONFIG_VIDEO_DT_SIMPLEFB
+ return sunxi_simplefb_setup(blob);
+#endif
+}
+#endif /* CONFIG_OF_BOARD_SETUP */
OpenPOWER on IntegriCloud