diff options
author | Stefan Roese <sr@denx.de> | 2010-10-04 11:09:40 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2010-10-20 10:07:55 +0200 |
commit | f472069fb71c5259594bea200fb4a5ebca04c89a (patch) | |
tree | 1d54263b1919f5b69b49a51a39118613b03adbcd /arch/powerpc/cpu/ppc4xx/cpu_init.c | |
parent | 11c8dd36edcc82564a19dbd0103302df66d66db0 (diff) | |
download | talos-obmc-uboot-f472069fb71c5259594bea200fb4a5ebca04c89a.tar.gz talos-obmc-uboot-f472069fb71c5259594bea200fb4a5ebca04c89a.zip |
ppc4xx: Change tsr/tcr macros to upper case
Remove uneccessary functions to access the TCR/TSR registers as well.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/powerpc/cpu/ppc4xx/cpu_init.c')
-rw-r--r-- | arch/powerpc/cpu/ppc4xx/cpu_init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/cpu/ppc4xx/cpu_init.c b/arch/powerpc/cpu/ppc4xx/cpu_init.c index 2a727b1df3..bf208adfe6 100644 --- a/arch/powerpc/cpu/ppc4xx/cpu_init.c +++ b/arch/powerpc/cpu/ppc4xx/cpu_init.c @@ -342,7 +342,7 @@ cpu_init_f (void) #endif #if defined(CONFIG_WATCHDOG) - val = mfspr(tcr); + val = mfspr(SPRN_TCR); #if defined(CONFIG_440EP) || defined(CONFIG_440GR) val |= 0xb8000000; /* generate system reset after 1.34 seconds */ #elif defined(CONFIG_440EPX) @@ -354,11 +354,11 @@ cpu_init_f (void) val &= ~0x30000000; /* clear WRC bits */ val |= CONFIG_SYS_4xx_RESET_TYPE << 28; /* set board specific WRC type */ #endif - mtspr(tcr, val); + mtspr(SPRN_TCR, val); - val = mfspr(tsr); + val = mfspr(SPRN_TSR); val |= 0x80000000; /* enable watchdog timer */ - mtspr(tsr, val); + mtspr(SPRN_TSR, val); reset_4xx_watchdog(); #endif /* CONFIG_WATCHDOG */ |