diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-11-12 18:42:53 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-01-17 09:17:27 -0500 |
commit | f948158f72e6b880d02e4fa549362e4dc285eb1c (patch) | |
tree | 253333c6ccfe5eadf8767dd5b5815a07e7749126 /cpu/blackfin/interrupts.c | |
parent | 313e8aacc1c9f5ca06085fa19b1429fa18a01aaa (diff) | |
download | u-boot-imx-f948158f72e6b880d02e4fa549362e4dc285eb1c.zip u-boot-imx-f948158f72e6b880d02e4fa549362e4dc285eb1c.tar.gz u-boot-imx-f948158f72e6b880d02e4fa549362e4dc285eb1c.tar.bz2 |
Blackfin: use new bfin read/write mmr helper funcs
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'cpu/blackfin/interrupts.c')
-rw-r--r-- | cpu/blackfin/interrupts.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpu/blackfin/interrupts.c b/cpu/blackfin/interrupts.c index 921bfe0..54a67b4 100644 --- a/cpu/blackfin/interrupts.c +++ b/cpu/blackfin/interrupts.c @@ -97,12 +97,12 @@ void __udelay(unsigned long usec) #define MAX_TIM_LOAD 0xFFFFFFFF int timer_init(void) { - *pTCNTL = 0x1; + bfin_write_TCNTL(0x1); CSYNC(); - *pTSCALE = 0x0; - *pTCOUNT = MAX_TIM_LOAD; - *pTPERIOD = MAX_TIM_LOAD; - *pTCNTL = 0x7; + bfin_write_TSCALE(0x0); + bfin_write_TCOUNT(MAX_TIM_LOAD); + bfin_write_TPERIOD(MAX_TIM_LOAD); + bfin_write_TCNTL(0x7); CSYNC(); timestamp = 0; @@ -130,7 +130,7 @@ ulong get_timer(ulong base) ulong milisec; /* Number of clocks elapsed */ - ulong clocks = (MAX_TIM_LOAD - (*pTCOUNT)); + ulong clocks = (MAX_TIM_LOAD - bfin_read_TCOUNT()); /* * Find if the TCOUNT is reset |