mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-17 23:48:52 +09:00
![Francois Retief](/assets/img/avatar_default.png)
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>
22 lines
446 B
C
22 lines
446 B
C
/*
|
|
* Copyright 2015,
|
|
* Daniel Hellstrom, Cobham Gaisler, daniel@gaisler.com.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _ASM_CONFIG_H_
|
|
#define _ASM_CONFIG_H_
|
|
|
|
#define CONFIG_SYS_GENERIC_GLOBAL_DATA
|
|
#define CONFIG_NEEDS_MANUAL_RELOC
|
|
|
|
#define CONFIG_LMB
|
|
#define CONFIG_SYS_BOOT_RAMDISK_HIGH
|
|
|
|
#define CONFIG_SYS_TIMER_RATE 1000000 /* 1MHz */
|
|
#define CONFIG_SYS_TIMER_COUNTER gd->arch.timer
|
|
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
|
|
|
#endif
|