sparc: Update cpu_init.c to use generic timer infrastructure
Introduce the CONFIG_SYS_TIMER_* macros in include/asm/config.h to make use
of the generic timer infrastructure in lib/time.c.
Created a timer_init() function to initialize the timer hardware and update
the #ifdef in board_init_f to allow this function to be called during the
start-up sequence.
Signed-off-by:
Francois Retief <fgretief@spaceteq.co.za>
Showing
- arch/sparc/cpu/leon2/cpu_init.c 24 additions, 13 deletionsarch/sparc/cpu/leon2/cpu_init.c
- arch/sparc/cpu/leon3/cpu_init.c 75 additions, 56 deletionsarch/sparc/cpu/leon3/cpu_init.c
- arch/sparc/include/asm/config.h 4 additions, 0 deletionsarch/sparc/include/asm/config.h
- arch/sparc/include/asm/global_data.h 1 addition, 0 deletionsarch/sparc/include/asm/global_data.h
- arch/sparc/lib/interrupts.c 0 additions, 5 deletionsarch/sparc/lib/interrupts.c
- common/board_f.c 2 additions, 1 deletioncommon/board_f.c
Loading
Please register or sign in to comment