Changeset ecf64a5e in rtems


Ignore:
Timestamp:
Sep 10, 2014, 2:17:02 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
f3508c44
Parents:
0facefc
Message:

bsps/arm: Add a9mpcore_clock_initialize_early()

This is necessary to use the CPU counter converter even in case no clock
driver is present, e.g. in tmcontext01.

Location:
c/src/lib/libbsp/arm
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c

    r0facefc recf64a5e  
    1414
    1515#include <bsp/bootcard.h>
     16#include <bsp/arm-a9mpcore-clock.h>
    1617#include <bsp/irq-generic.h>
    1718#include <bsp/nocache-heap.h>
     
    1920void bsp_start( void )
    2021{
     22  a9mpcore_clock_initialize_early();
    2123  bsp_interrupt_initialize();
    2224  altera_cyclone_v_nocache_init_heap();
  • c/src/lib/libbsp/arm/realview-pbx-a9/startup/bspstart.c

    r0facefc recf64a5e  
    1515#include <bsp.h>
    1616#include <bsp/bootcard.h>
     17#include <bsp/arm-a9mpcore-clock.h>
    1718#include <bsp/irq-generic.h>
    1819
    1920void bsp_start(void)
    2021{
     22  a9mpcore_clock_initialize_early();
    2123  bsp_interrupt_initialize();
    2224}
  • c/src/lib/libbsp/arm/shared/arm-a9mpcore-clock-config.c

    r0facefc recf64a5e  
    1212 * http://www.rtems.org/license/LICENSE.
    1313 */
    14 
    15 #include <rtems/counter.h>
    1614
    1715#include <bsp.h>
     
    109107    | A9MPCORE_GT_CTRL_COMP_EN
    110108    | A9MPCORE_GT_CTRL_TMR_EN;
    111 
    112   rtems_counter_initialize_converter((uint32_t) periphclk);
    113109}
    114110
  • c/src/lib/libbsp/arm/shared/include/arm-a9mpcore-clock.h

    r0facefc recf64a5e  
    1010#define LIBBSP_ARM_SHARED_ARM_A9MPCORE_CLOCK_H
    1111
    12 #include <bsp.h>
     12#include <rtems/counter.h>
    1313
    1414#ifdef __cplusplus
     
    2323uint32_t a9mpcore_clock_periphclk(void);
    2424
     25/**
     26 * @brief Do early clock initialization so that the CPU counter conversion
     27 * works.
     28 */
     29static inline void a9mpcore_clock_initialize_early(void)
     30{
     31  rtems_counter_initialize_converter(a9mpcore_clock_periphclk());
     32}
     33
    2534#ifdef __cplusplus
    2635}
  • c/src/lib/libbsp/arm/xilinx-zynq/startup/bspstart.c

    r0facefc recf64a5e  
    1515#include <bsp.h>
    1616#include <bsp/bootcard.h>
     17#include <bsp/arm-a9mpcore-clock.h>
    1718#include <bsp/irq-generic.h>
    1819
    1920void bsp_start(void)
    2021{
     22  a9mpcore_clock_initialize_early();
    2123  bsp_interrupt_initialize();
    2224}
Note: See TracChangeset for help on using the changeset viewer.