mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 09:30:10 +00:00
c97088c3cf
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>
21 lines
446 B
C
21 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
|