diff options
author | Stefan Roese <sr@denx.de> | 2006-10-07 11:30:52 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2006-10-07 11:30:52 +0200 |
commit | f3443867e90d2979a7dd1c65b0d537777e1f9850 (patch) | |
tree | 8247e64ae645a4b5a51768850c5ad3bd8c0fd3e1 /cpu/ppc4xx/cpu.c | |
parent | 64cd52efd1dc51a4a5a0cf10efe5362fab27de29 (diff) | |
download | u-boot-imx-f3443867e90d2979a7dd1c65b0d537777e1f9850.zip u-boot-imx-f3443867e90d2979a7dd1c65b0d537777e1f9850.tar.gz u-boot-imx-f3443867e90d2979a7dd1c65b0d537777e1f9850.tar.bz2 |
Add CONFIG_BOARD_RESET to configure board specific reset function
Patch by Stefan Roese, 07 Oct 2006
Diffstat (limited to 'cpu/ppc4xx/cpu.c')
-rw-r--r-- | cpu/ppc4xx/cpu.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/cpu/ppc4xx/cpu.c b/cpu/ppc4xx/cpu.c index 94478db..4e81ce2 100644 --- a/cpu/ppc4xx/cpu.c +++ b/cpu/ppc4xx/cpu.c @@ -41,6 +41,10 @@ DECLARE_GLOBAL_DATA_PTR; #endif +#if defined(CONFIG_BOARD_RESET) +void board_reset(void); +#endif + #if defined(CONFIG_440) #define FREQ_EBC (sys_info.freqEPB) #else @@ -414,23 +418,15 @@ int ppc440spe_revB() { int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { -#if defined(CONFIG_YOSEMITE) || defined(CONFIG_YELLOWSTONE) - /*give reset to BCSR*/ - *(unsigned char*)(CFG_BCSR_BASE | 0x06) = 0x09; - +#if defined(CONFIG_BOARD_RESET) + board_reset(); #else - /* * Initiate system reset in debug control register DBCR */ - __asm__ __volatile__("lis 3, 0x3000" ::: "r3"); -#if defined(CONFIG_440) - __asm__ __volatile__("mtspr 0x134, 3"); -#else - __asm__ __volatile__("mtspr 0x3f2, 3"); -#endif + mtspr(dbcr0, 0x30000000); +#endif /* defined(CONFIG_BOARD_RESET) */ -#endif/* defined(CONFIG_YOSEMITE) || defined(CONFIG_YELLOWSTONE)*/ return 1; } |