mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
Changed CFG_CLK to gd->bus_clk for CFG_TIMER_PRESCALER. Added DECLARE_GLOBAL_DATA_PTR for time.c
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
This commit is contained in:
parent
8d1d66af54
commit
99c03c175d
2 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
|||
#define CFG_TMRINTR_NO (INT0_HI_DTMR1)
|
||||
#define CFG_TMRINTR_MASK (INTC_IPRH_INT33)
|
||||
#define CFG_TMRINTR_PRI (6)
|
||||
#define CFG_TIMER_PRESCALER (((CFG_CLK / 1000000) - 1) << 8)
|
||||
#define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MCFPIT
|
||||
|
|
|
@ -48,6 +48,8 @@
|
|||
#include <asm/immap_5249.h>
|
||||
#endif
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
static ulong timestamp;
|
||||
#if defined(CONFIG_M5282) || defined(CONFIG_M5271)
|
||||
static unsigned short lastinc;
|
||||
|
|
Loading…
Reference in a new issue