diff options
Diffstat (limited to 'bsps/arm/altera-cyclone-v/start/bspstart.c')
-rw-r--r-- | bsps/arm/altera-cyclone-v/start/bspstart.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bsps/arm/altera-cyclone-v/start/bspstart.c b/bsps/arm/altera-cyclone-v/start/bspstart.c index ac84f54147..55a069f9ad 100644 --- a/bsps/arm/altera-cyclone-v/start/bspstart.c +++ b/bsps/arm/altera-cyclone-v/start/bspstart.c @@ -93,11 +93,18 @@ static void update_clocks(void) } #endif +#ifdef ALTERA_CYCLONE_V_NEED_A9MPCORE_PERIPHCLK +uint32_t altera_cyclone_v_a9mpcore_periphclk; +#endif + void bsp_start(void) { #ifdef BSP_FDT_IS_SUPPORTED update_clocks(); #endif +#ifdef ALTERA_CYCLONE_V_NEED_A9MPCORE_PERIPHCLK + alt_clk_freq_get(ALT_CLK_MPU_PERIPH, &altera_cyclone_v_a9mpcore_periphclk); +#endif bsp_interrupt_initialize(); rtems_cache_coherent_add_area( bsp_section_nocacheheap_begin, |