litex: System clock frequency selectable from Kconfig.
This commit is contained in:
parent
e166360e8d
commit
f49c20d28f
@ -5,6 +5,12 @@
|
|||||||
|
|
||||||
comment "LITEX Configuration Options"
|
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"
|
menu "LITEX Peripheral Support"
|
||||||
|
|
||||||
# These "hidden" settings determine whether a peripheral option is available
|
# These "hidden" settings determine whether a peripheral option is available
|
||||||
|
@ -50,7 +50,7 @@ uint32_t litex_get_hfclk(void)
|
|||||||
{
|
{
|
||||||
/* fpga fabric default sys frequency */
|
/* fpga fabric default sys frequency */
|
||||||
|
|
||||||
return 100000000UL;
|
return CONFIG_LITEX_SYS_CORE_FREQ_HZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user