Skip to content

Commit 061421e

Browse files
committed
targets: fix csr automatic numbering
1 parent 6a835a8 commit 061421e

7 files changed

+20
-20
lines changed

targets/atlys_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class BaseSoC(SDRAMSoC):
131131

132132
csr_peripherals = (
133133
"ddrphy",
134-
"dna"
134+
"dna",
135135
)
136136
csr_map_update(SDRAMSoC.csr_map, csr_peripherals)
137137

targets/atlys_edid_debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self):
2727

2828
class EDIDDebugSoC(VideomixerSoC):
2929
csr_peripherals = (
30-
"logic_analyzer"
30+
"logic_analyzer",
3131
)
3232
csr_map_update(VideomixerSoC.csr_map, csr_peripherals)
3333

targets/atlys_hdmi2eth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class VideomixerSoC(EtherboneSoC):
5959
"hdmi_in0",
6060
"hdmi_in0_edid_mem",
6161
"hdmi_in1",
62-
"hdmi_in1_edid_mem"
62+
"hdmi_in1_edid_mem",
6363
)
6464
csr_map_update(EtherboneSoC.csr_map, csr_peripherals)
6565

@@ -103,7 +103,7 @@ def __init__(self, platform, **kwargs):
103103
class HDMI2ETHSoC(VideomixerSoC):
104104
csr_peripherals = (
105105
"encoder_reader",
106-
"encoder"
106+
"encoder",
107107
)
108108
csr_map_update(VideomixerSoC.csr_map, csr_peripherals)
109109
mem_map = {

targets/atlys_hdmi2usb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class VideomixerSoC(BaseSoC):
1313
"hdmi_in0",
1414
"hdmi_in0_edid_mem",
1515
"hdmi_in1",
16-
"hdmi_in1_edid_mem"
16+
"hdmi_in1_edid_mem",
1717
)
1818
csr_map_update(BaseSoC.csr_map, csr_peripherals)
1919

@@ -57,7 +57,7 @@ def __init__(self, platform, **kwargs):
5757
class HDMI2USBSoC(VideomixerSoC):
5858
csr_peripherals = (
5959
"encoder_reader",
60-
"encoder"
60+
"encoder",
6161
)
6262
csr_map_update(VideomixerSoC.csr_map, csr_peripherals)
6363
mem_map = {

targets/opsis_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class BaseSoC(SDRAMSoC):
153153
"fx2_reset",
154154
"fx2_hack",
155155
# "opsis_eeprom_i2c",
156-
"tofe_eeprom_i2c"
156+
"tofe_eeprom_i2c",
157157
)
158158
csr_map_update(SDRAMSoC.csr_map, csr_peripherals)
159159

@@ -205,7 +205,7 @@ def __init__(self, platform,
205205
class MiniSoC(BaseSoC):
206206
csr_peripherals = (
207207
"ethphy",
208-
"ethmac"
208+
"ethmac",
209209
)
210210
csr_map_update(BaseSoC.csr_map, csr_peripherals)
211211

targets/opsis_hdmi2usb.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
from gateware.streamer import USBStreamer
88

99
class VideomixerSoC(BaseSoC):
10-
csr_map = {
11-
"hdmi_out0": 21,
12-
"hdmi_out1": 22,
13-
"hdmi_in0": 23,
14-
"hdmi_in0_edid_mem": 24,
15-
"hdmi_in1": 25,
16-
"hdmi_in1_edid_mem": 26,
17-
}
18-
csr_map.update(BaseSoC.csr_map)
10+
csr_peripherals = (
11+
"hdmi_out0",
12+
"hdmi_out1",
13+
"hdmi_in0",
14+
"hdmi_in0_edid_mem",
15+
"hdmi_in1",
16+
"hdmi_in1_edid_mem",
17+
)
18+
csr_map_update(BaseSoC.csr_map, csr_peripherals)
1919

2020
interrupt_map = {
2121
"hdmi_in0": 3,
@@ -57,7 +57,7 @@ def __init__(self, platform, **kwargs):
5757
class HDMI2USBSoC(VideomixerSoC):
5858
csr_peripherals = (
5959
"encoder_reader",
60-
"encoder"
60+
"encoder",
6161
)
6262
csr_map_update(VideomixerSoC.csr_map, csr_peripherals)
6363
mem_map = {

targets/pipistrello_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class BaseSoC(SDRAMSoC):
137137
"ddrphy",
138138
"dna",
139139
"fx2_reset",
140-
"fx2_hack"
140+
"fx2_hack",
141141
)
142142
csr_map_update(SDRAMSoC.csr_map, csr_peripherals)
143143

@@ -195,7 +195,7 @@ def __init__(self, platform, clk_freq=(83 + Fraction(1, 3))*1000*1000,
195195
class VideomixerSoC(BaseSoC):
196196

197197
csr_peripherals = (
198-
"hdmi_out0"
198+
"hdmi_out0",
199199
)
200200
csr_map_update(BaseSoC.csr_map, csr_peripherals)
201201

0 commit comments

Comments
 (0)