Merge pull request #1760 from motec-research/dts_linux_fix

tools/litex_json2dts_linux: fix missed sdcard_ references
This commit is contained in:
enjoy-digital 2023-09-01 10:46:04 +02:00 committed by GitHub
commit 33efa09663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic
""" """
# Voltage Regulator for LiteSDCard (if applicable) -------------------------------------------- # Voltage Regulator for LiteSDCard (if applicable) --------------------------------------------
if "sdcore" in d["csr_bases"]: if "sdcard_core" in d["csr_bases"]:
dts += """ dts += """
vreg_mmc: vreg_mmc {{ vreg_mmc: vreg_mmc {{
compatible = "regulator-fixed"; compatible = "regulator-fixed";
@ -419,7 +419,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic
# SDCard --------------------------------------------------------------------------------------- # SDCard ---------------------------------------------------------------------------------------
if "sdcore" in d["csr_bases"]: if "sdcard_core" in d["csr_bases"]:
dts += """ dts += """
mmc0: mmc@{mmc_csr_base:x} {{ mmc0: mmc@{mmc_csr_base:x} {{
compatible = "litex,mmc"; compatible = "litex,mmc";