soc/add_spi_flash: Revert PHY_FREQUENCY definition and use in BIOS.

This commit is contained in:
Florent Kermarrec 2024-02-20 14:23:54 +01:00
parent 03340bcf12
commit d78dbd6935
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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