soc/cores/cpu/zynq7000/core.py: fix missing CAN IO mode (security/nitpick)

This commit is contained in:
Gwenhael Goavec-Merou 2024-06-17 18:26:28 +02:00
parent fba7ce42ec
commit 485341a1cf
1 changed files with 1 additions and 0 deletions

View File

@ -456,6 +456,7 @@ class Zynq7000(CPU):
# PS7 configuration.
self.add_ps7_config({
f"PCW_CAN{n}_PERIPHERAL_ENABLE": 1,
f"PCW_CAN{n}_CAN{n}_IO": "EMIO",
f"PCW_CAN{n}_GRP_CLK_ENABLE": {True: 0, False: 1}[ext_clk == None],
})