litex: System clock frequency selectable from Kconfig.

This commit is contained in:
Stuart Ianna 2023-01-24 12:40:07 +11:00 committed by Alin Jerpelea
parent e166360e8d
commit f49c20d28f
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,12 @@
comment "LITEX Configuration Options"
config LITEX_SYS_CORE_FREQ_HZ
int "Risc-V system core frequency (Hz)"
default 100000000
---help---
This value should match default frequency of the FPGA fabric system clock.
menu "LITEX Peripheral Support"
# These "hidden" settings determine whether a peripheral option is available

View File

@ -50,7 +50,7 @@ uint32_t litex_get_hfclk(void)
{
/* fpga fabric default sys frequency */
return 100000000UL;
return CONFIG_LITEX_SYS_CORE_FREQ_HZ;
}
/****************************************************************************