Changeset af80b0a in rtems


Ignore:
Timestamp:
Feb 18, 2019, 7:24:37 AM (9 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
bdec62c4
Parents:
43fbb50f
git-author:
Sebastian Huber <sebastian.huber@…> (02/18/19 07:24:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/18/19 07:33:27)
Message:

bsp/altera-cyclone-v: Use FDT for clock frequency

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/altera-cyclone-v/include/bsp.h

    r43fbb50f raf80b0a  
    4444#define BSP_ARM_A9MPCORE_GT_BASE ( BSP_ARM_A9MPCORE_SCU_BASE + 0x00000200 )
    4545
     46#ifndef BSP_ARM_A9MPCORE_PERIPHCLK
     47extern uint32_t altera_cyclone_v_a9mpcore_periphclk;
     48#define BSP_ARM_A9MPCORE_PERIPHCLK altera_cyclone_v_a9mpcore_periphclk
     49#define ALTERA_CYCLONE_V_NEED_A9MPCORE_PERIPHCLK
     50#endif
     51
    4652#define BSP_ARM_GIC_DIST_BASE ( BSP_ARM_A9MPCORE_SCU_BASE + 0x00001000 )
    4753
  • bsps/arm/altera-cyclone-v/start/bspstart.c

    r43fbb50f raf80b0a  
    9494#endif
    9595
     96#ifdef ALTERA_CYCLONE_V_NEED_A9MPCORE_PERIPHCLK
     97uint32_t altera_cyclone_v_a9mpcore_periphclk;
     98#endif
     99
    96100void bsp_start(void)
    97101{
    98102#ifdef BSP_FDT_IS_SUPPORTED
    99103  update_clocks();
     104#endif
     105#ifdef ALTERA_CYCLONE_V_NEED_A9MPCORE_PERIPHCLK
     106  alt_clk_freq_get(ALT_CLK_MPU_PERIPH, &altera_cyclone_v_a9mpcore_periphclk);
    100107#endif
    101108  bsp_interrupt_initialize();
  • c/src/lib/libbsp/arm/altera-cyclone-v/configure.ac

    r43fbb50f raf80b0a  
    4343RTEMS_BSPOPTS_HELP([BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA],[copy the FDT blob into the read-only load area via bsp_fdt_copy()])
    4444
    45 RTEMS_BSPOPTS_SET([BSP_ARM_A9MPCORE_PERIPHCLK],[altcycv_devkit*],[200000000U])
    46 RTEMS_BSPOPTS_SET([BSP_ARM_A9MPCORE_PERIPHCLK],[*],[100000000U])
    47 RTEMS_BSPOPTS_HELP([BSP_ARM_A9MPCORE_PERIPHCLK],[ARM Cortex-A9 MPCore PERIPHCLK clock frequency in Hz])
     45RTEMS_BSPOPTS_SET([BSP_ARM_A9MPCORE_PERIPHCLK],[*],[])
     46RTEMS_BSPOPTS_HELP([BSP_ARM_A9MPCORE_PERIPHCLK],[define to set ARM Cortex-A9 MPCore PERIPHCLK clock frequency in Hz, otherwise alt_clk_freq_get() is used])
    4847
    4948RTEMS_BSPOPTS_SET([CLOCK_DRIVER_USE_FAST_IDLE],[*qemu],[1])
Note: See TracChangeset for help on using the changeset viewer.