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:
Fin Maaß 2024-06-19 16:29:35 +02:00
parent d6b0c84f9c
commit 447469b0aa
1 changed files with 2 additions and 0 deletions

View File

@ -1973,6 +1973,8 @@ class LiteXSoC(SoC):
self.check_if_exists(f"{name}")
spi_clk_freq = int(spi_clk_freq)
if pads is None:
pads = self.platform.request(name)