From 44db314ddd1c5627529b0cff67e79881f9b54247 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 10 Feb 2023 19:22:15 +0100 Subject: [PATCH] integration/soc/add_video_framebuffer: Add video_framebuffer region definition in linker. --- litex/soc/integration/soc.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index b8d1e8c03..7e3ad1eee 100755 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -2084,7 +2084,14 @@ class LiteXSoC(SoC): # Video FrameBuffer. timings = timings if isinstance(timings, str) else timings[0] - base = self.mem_map.get(name, 0x40c00000) + base = self.mem_map.get(name, None) + if base is None: + self.bus.add_region(name, SoCRegion( + origin = 0x40c00000, + size = 0x800000, + linker = True) + ) + base = self.bus.regions[name].origin hres = int(timings.split("@")[0].split("x")[0]) vres = int(timings.split("@")[0].split("x")[1]) vfb = VideoFrameBuffer(self.sdram.crossbar.get_port(),