From 2d5b4b206b4e57025e1383228fa9fa2e3f83ce24 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 4 Mar 2021 12:01:32 +0100 Subject: [PATCH] bios: Add VideoFrameBuffer VTG/DMA initialisation. This just configures the enables for now since other parameters are pre-configured during the build. --- litex/soc/software/bios/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index 10f3bd0fe..b86ec7e7f 100644 --- a/litex/soc/software/bios/main.c +++ b/litex/soc/software/bios/main.c @@ -165,6 +165,14 @@ int main(int i, char **c) spiflash_init(); #endif +#ifdef CSR_VIDEO_FRAMEBUFFER_BASE + /* Initialize Video Framebuffer FIXME: Move */ + video_framebuffer_vtg_enable_write(0); + video_framebuffer_dma_enable_write(0); + video_framebuffer_vtg_enable_write(1); + video_framebuffer_dma_enable_write(1); +#endif + if(sdr_ok) { printf("--============== \e[1mBoot\e[0m ==================--\n"); boot_sequence();