|
20 | 20 | from scripts.snps_designware_i2c import generate_registers_snps_designware_i2c
|
21 | 21 | from scripts.snps_dw_apb_uart import generate_registers_snps_dw_apb_uart
|
22 | 22 | from scripts.starfive_common import generate_interrupt
|
| 23 | +from scripts.starfive_jh7110_dmc_ctrl import generate_registers_starfive_jh7110_dmc_ctrl |
| 24 | +from scripts.starfive_jh7110_dmc_phy import generate_registers_starfive_jh7110_dmc_phy |
23 | 25 | from scripts.starfive_jh7110_pmu import generate_registers_starfive_jh7110_pmu
|
24 | 26 | from scripts.starfive_jh7110_stgcrg import generate_registers_starfive_jh7110_stgcrg
|
25 | 27 | from scripts.starfive_jh7110_syscrg import generate_registers_starfive_jh7110_syscrg
|
@@ -124,13 +126,13 @@ def generate_peripherals(dts):
|
124 | 126 |
|
125 | 127 | if "clint" in comp and not os.path.exists(script_path):
|
126 | 128 | regmap_path = ""
|
127 |
| - script_path = os.path.join(regmap_root, "scripts", "riscv_clint0_control.py") |
| 129 | + script_path = os.path.join(regmap_root, "scripts", "riscv_clint0_control.py") |
128 | 130 | elif "plic" in comp and not os.path.exists(script_path):
|
129 | 131 | regmap_path = ""
|
130 |
| - script_path = os.path.join(regmap_root, "scripts", "riscv_plic0_control.py") |
| 132 | + script_path = os.path.join(regmap_root, "scripts", "riscv_plic0_control.py") |
131 | 133 | elif "clic" in comp and not os.path.exists(script_path):
|
132 | 134 | regmap_path = ""
|
133 |
| - script_path = os.path.join(regmap_root, "scripts", "sifive_clic0_control.py") |
| 135 | + script_path = os.path.join(regmap_root, "scripts", "sifive_clic0_control.py") |
134 | 136 |
|
135 | 137 | if os.path.exists(regmap_path):
|
136 | 138 | ext = str(idx[comp])
|
@@ -211,6 +213,10 @@ def generate_peripheral(dts, peripheral, comp, ext, reg, regmap_path):
|
211 | 213 | name = "pwm"
|
212 | 214 | elif regmap_path.endswith("starfive_jh7110_trng.py"):
|
213 | 215 | name = "trng"
|
| 216 | + elif regmap_path.endswith("starfive_jh7110_dmc_ctrl.py"): |
| 217 | + name = "dmc_ctrl" |
| 218 | + elif regmap_path.endswith("starfive_jh7110_dmc_phy.py"): |
| 219 | + name = "dmc_phy" |
214 | 220 | else:
|
215 | 221 | name = "{}_{}".format(get_name_as_id(comp), ext)
|
216 | 222 |
|
@@ -251,6 +257,10 @@ def generate_registers(dts, peripheral, regmap_path):
|
251 | 257 | return generate_registers_snps_designware_i2c(dts, peripheral)
|
252 | 258 | if regmap_path.endswith("snps_dw_apb_uart.py"):
|
253 | 259 | return generate_registers_snps_dw_apb_uart(dts, peripheral)
|
| 260 | + if regmap_path.endswith("starfive_jh7110_dmc_ctrl.py"): |
| 261 | + return generate_registers_starfive_jh7110_dmc_ctrl(dts, peripheral) |
| 262 | + if regmap_path.endswith("starfive_jh7110_dmc_phy.py"): |
| 263 | + return generate_registers_starfive_jh7110_dmc_phy(dts, peripheral) |
254 | 264 | if regmap_path.endswith("starfive_jh7110_pmu.py"):
|
255 | 265 | return generate_registers_starfive_jh7110_pmu(dts, peripheral)
|
256 | 266 | if regmap_path.endswith("starfive_jh7110_syscrg.py"):
|
|
0 commit comments