Skip to content

Commit

Permalink
spiflash: remove device parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryMakes committed Jan 6, 2020
1 parent f87fa5e commit 5406337
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions nmigen_stdio/spiflash.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _format_cmd(self):
return fcmd

def __init__(self, *, protocol, data_width,
divisor=1, device=None, pins=None):
divisor=1, pins=None):
if protocol not in ["extended", "dual", "quad"]:
raise ValueError("Invalid SPI protocol {!r}; must be one of "
"\"extended\", \"dual\", or \"quad\""
Expand All @@ -56,14 +56,6 @@ def __init__(self, *, protocol, data_width,
self.divisor = Signal(bits_for(divisor), reset=divisor)
self._divisor_val = divisor + 1

supported_devices = ["lattice_ecp5"]
if device is not None and device not in supported_devices:
raise ValueError("Invalid FPGA device name {!r}; must be one of {}"
.format(device, supported_devices))
self._device = device
if self._device is not None and pins is None:
raise ValueError("Pins parameter is missing for this FPGA device {}"
.format(self._device))
self._pins = pins

if self._protocol == "extended":
Expand Down

0 comments on commit 5406337

Please sign in to comment.