Skip to content

Commit

Permalink
targets: fix csr automatic numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jan 23, 2016
1 parent 6a835a8 commit 061421e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion targets/atlys_base.py
Expand Up @@ -131,7 +131,7 @@ class BaseSoC(SDRAMSoC):

csr_peripherals = (
"ddrphy",
"dna"
"dna",
)
csr_map_update(SDRAMSoC.csr_map, csr_peripherals)

Expand Down
2 changes: 1 addition & 1 deletion targets/atlys_edid_debug.py
Expand Up @@ -27,7 +27,7 @@ def __init__(self):

class EDIDDebugSoC(VideomixerSoC):
csr_peripherals = (
"logic_analyzer"
"logic_analyzer",
)
csr_map_update(VideomixerSoC.csr_map, csr_peripherals)

Expand Down
4 changes: 2 additions & 2 deletions targets/atlys_hdmi2eth.py
Expand Up @@ -59,7 +59,7 @@ class VideomixerSoC(EtherboneSoC):
"hdmi_in0",
"hdmi_in0_edid_mem",
"hdmi_in1",
"hdmi_in1_edid_mem"
"hdmi_in1_edid_mem",
)
csr_map_update(EtherboneSoC.csr_map, csr_peripherals)

Expand Down Expand Up @@ -103,7 +103,7 @@ def __init__(self, platform, **kwargs):
class HDMI2ETHSoC(VideomixerSoC):
csr_peripherals = (
"encoder_reader",
"encoder"
"encoder",
)
csr_map_update(VideomixerSoC.csr_map, csr_peripherals)
mem_map = {
Expand Down
4 changes: 2 additions & 2 deletions targets/atlys_hdmi2usb.py
Expand Up @@ -13,7 +13,7 @@ class VideomixerSoC(BaseSoC):
"hdmi_in0",
"hdmi_in0_edid_mem",
"hdmi_in1",
"hdmi_in1_edid_mem"
"hdmi_in1_edid_mem",
)
csr_map_update(BaseSoC.csr_map, csr_peripherals)

Expand Down Expand Up @@ -57,7 +57,7 @@ def __init__(self, platform, **kwargs):
class HDMI2USBSoC(VideomixerSoC):
csr_peripherals = (
"encoder_reader",
"encoder"
"encoder",
)
csr_map_update(VideomixerSoC.csr_map, csr_peripherals)
mem_map = {
Expand Down
4 changes: 2 additions & 2 deletions targets/opsis_base.py
Expand Up @@ -153,7 +153,7 @@ class BaseSoC(SDRAMSoC):
"fx2_reset",
"fx2_hack",
# "opsis_eeprom_i2c",
"tofe_eeprom_i2c"
"tofe_eeprom_i2c",
)
csr_map_update(SDRAMSoC.csr_map, csr_peripherals)

Expand Down Expand Up @@ -205,7 +205,7 @@ def __init__(self, platform,
class MiniSoC(BaseSoC):
csr_peripherals = (
"ethphy",
"ethmac"
"ethmac",
)
csr_map_update(BaseSoC.csr_map, csr_peripherals)

Expand Down
20 changes: 10 additions & 10 deletions targets/opsis_hdmi2usb.py
Expand Up @@ -7,15 +7,15 @@
from gateware.streamer import USBStreamer

class VideomixerSoC(BaseSoC):
csr_map = {
"hdmi_out0": 21,
"hdmi_out1": 22,
"hdmi_in0": 23,
"hdmi_in0_edid_mem": 24,
"hdmi_in1": 25,
"hdmi_in1_edid_mem": 26,
}
csr_map.update(BaseSoC.csr_map)
csr_peripherals = (
"hdmi_out0",
"hdmi_out1",
"hdmi_in0",
"hdmi_in0_edid_mem",
"hdmi_in1",
"hdmi_in1_edid_mem",
)
csr_map_update(BaseSoC.csr_map, csr_peripherals)

interrupt_map = {
"hdmi_in0": 3,
Expand Down Expand Up @@ -57,7 +57,7 @@ def __init__(self, platform, **kwargs):
class HDMI2USBSoC(VideomixerSoC):
csr_peripherals = (
"encoder_reader",
"encoder"
"encoder",
)
csr_map_update(VideomixerSoC.csr_map, csr_peripherals)
mem_map = {
Expand Down
4 changes: 2 additions & 2 deletions targets/pipistrello_base.py
Expand Up @@ -137,7 +137,7 @@ class BaseSoC(SDRAMSoC):
"ddrphy",
"dna",
"fx2_reset",
"fx2_hack"
"fx2_hack",
)
csr_map_update(SDRAMSoC.csr_map, csr_peripherals)

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

csr_peripherals = (
"hdmi_out0"
"hdmi_out0",
)
csr_map_update(BaseSoC.csr_map, csr_peripherals)

Expand Down

0 comments on commit 061421e

Please sign in to comment.