soc: add_spi_master: make spi_clk_freq an int
convert spi_clk_freq to an int. this way the constant is also an int. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
parent
d6b0c84f9c
commit
447469b0aa
|
@ -1973,6 +1973,8 @@ class LiteXSoC(SoC):
|
||||||
|
|
||||||
self.check_if_exists(f"{name}")
|
self.check_if_exists(f"{name}")
|
||||||
|
|
||||||
|
spi_clk_freq = int(spi_clk_freq)
|
||||||
|
|
||||||
if pads is None:
|
if pads is None:
|
||||||
pads = self.platform.request(name)
|
pads = self.platform.request(name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue