From 74c42a55e2ac4fcb35892cc5c58d208fef81e353 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 27 Apr 2021 18:59:54 +0200 Subject: [PATCH] tools/litex_json2dts/framebuffer: Use framebuffer_base. --- litex/tools/litex_json2dts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/tools/litex_json2dts.py b/litex/tools/litex_json2dts.py index 716d227ac..7e1e17960 100755 --- a/litex/tools/litex_json2dts.py +++ b/litex/tools/litex_json2dts.py @@ -131,7 +131,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False): opensbi_size = d["memories"]["opensbi"]["size"]) if "video_framebuffer" in d["csr_bases"]: dts += """ - framebuffer@f0000000 {{ + framebuffer@{framebuffer_base:x} {{ reg = <0x{framebuffer_base:x} 0x{framebuffer_size:x}>; }}; """.format( @@ -393,7 +393,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False): framebuffer_width = d["constants"]["video_framebuffer_hres"] framebuffer_height = d["constants"]["video_framebuffer_vres"] dts += """ - framebuffer0: framebuffer@f0000000 {{ + framebuffer0: framebuffer@{framebuffer_base:x} {{ compatible = "simple-framebuffer"; reg = <0x{framebuffer_base:x} 0x{framebuffer_size:x}>; width = <{framebuffer_width}>;