integration/soc/add_video_framebuffer: Add video_framebuffer region definition in linker.

This commit is contained in:
Florent Kermarrec 2023-02-10 19:22:15 +01:00
parent 3de5f20496
commit 44db314ddd
1 changed files with 8 additions and 1 deletions

View File

@ -2084,7 +2084,14 @@ class LiteXSoC(SoC):
# Video FrameBuffer. # Video FrameBuffer.
timings = timings if isinstance(timings, str) else timings[0] 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]) hres = int(timings.split("@")[0].split("x")[0])
vres = int(timings.split("@")[0].split("x")[1]) vres = int(timings.split("@")[0].split("x")[1])
vfb = VideoFrameBuffer(self.sdram.crossbar.get_port(), vfb = VideoFrameBuffer(self.sdram.crossbar.get_port(),