bios: Add VideoFrameBuffer VTG/DMA initialisation.

This just configures the enables for now since other parameters are pre-configured
during the build.
This commit is contained in:
Florent Kermarrec 2021-03-04 12:01:32 +01:00
parent f553b5fc83
commit 2d5b4b206b
1 changed files with 8 additions and 0 deletions

View File

@ -165,6 +165,14 @@ int main(int i, char **c)
spiflash_init(); spiflash_init();
#endif #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) { if(sdr_ok) {
printf("--============== \e[1mBoot\e[0m ==================--\n"); printf("--============== \e[1mBoot\e[0m ==================--\n");
boot_sequence(); boot_sequence();