soc/add_spi_flash: Revert PHY_FREQUENCY definition and use in BIOS.
This commit is contained in:
parent
03340bcf12
commit
d78dbd6935
|
@ -1955,6 +1955,7 @@ class LiteXSoC(SoC):
|
|||
self.bus.add_slave(name=name, slave=spiflash_core.bus, region=spiflash_region)
|
||||
|
||||
# Constants.
|
||||
self.add_constant(f"{name}_PHY_FREQUENCY", clk_freq)
|
||||
self.add_constant(f"{name}_MODULE_NAME", module.name)
|
||||
self.add_constant(f"{name}_MODULE_TOTAL_SIZE", module.total_size)
|
||||
self.add_constant(f"{name}_MODULE_PAGE_SIZE", module.page_size)
|
||||
|
|
|
@ -57,7 +57,7 @@ int spiflash_freq_init(void)
|
|||
|
||||
#else
|
||||
|
||||
printf("SPI Flash clk configured to %ld MHz\n", CONFIG_CLOCK_FREQUENCY/1000000);
|
||||
printf("SPI Flash clk configured to %ld MHz\n", SPIFLASH_PHY_FREQUENCY/1000000);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue