Skip to content

Commit

Permalink
soc/software/liblitespi/spiflash: replace SPIFLASH_PHY_FREQUENCY by C…
Browse files Browse the repository at this point in the history
…ONFIG_CLOCK_FREQUENCY (removed by commit e498a56)
  • Loading branch information
trabucayre committed Feb 19, 2024
1 parent 677443c commit 03340bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/software/liblitespi/spiflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int spiflash_freq_init(void)

#else

printf("SPI Flash clk configured to %ld MHz\n", SPIFLASH_PHY_FREQUENCY/1000000);
printf("SPI Flash clk configured to %ld MHz\n", CONFIG_CLOCK_FREQUENCY/1000000);

#endif

Expand Down

2 comments on commit 03340bc

@AndrewD
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trabucayre this isn't correct - it doesn't take into account the prescaler. A more correct fix would be to restore the SPIFLASH_PHY_FREQUENCY constant as per this comment: e498a56#r138258174

@enjoy-digital
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @trabucayre, @AndrewD, the previous code is reverted with d78dbd6.

Please sign in to comment.