diff options
author | Wolfgang Denk <wd@denx.de> | 2009-01-28 21:09:32 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-01-28 21:09:32 +0100 |
commit | ee64d0acc93f4f15850736eafaacdeadd7f12d25 (patch) | |
tree | c3cbea9a94ac333eaaaa0f6d277d5b6c1fe9759c /cpu/blackfin/cpu.c | |
parent | 9cda4f104b5313fadc21b75aa781c7a6aaf6ea60 (diff) | |
parent | fe033ad6d0883063fe857237abb9436fab03208c (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-blackfin
Diffstat (limited to 'cpu/blackfin/cpu.c')
-rw-r--r-- | cpu/blackfin/cpu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpu/blackfin/cpu.c b/cpu/blackfin/cpu.c index 9efd88e7ec9..30c214be7bc 100644 --- a/cpu/blackfin/cpu.c +++ b/cpu/blackfin/cpu.c @@ -14,11 +14,14 @@ #include <asm/blackfin.h> #include <asm/cplb.h> #include <asm/mach-common/bits/core.h> +#include <asm/mach-common/bits/ebiu.h> #include <asm/mach-common/bits/trace.h> #include "cpu.h" #include "serial.h" +ulong bfin_poweron_retx; + __attribute__ ((__noreturn__)) void cpu_init_f(ulong bootflag, ulong loaded_from_ldr) { @@ -48,6 +51,9 @@ void cpu_init_f(ulong bootflag, ulong loaded_from_ldr) bfin_write_EBIU_AMGCTL(CONFIG_EBIU_AMGCTL_VAL); #endif + /* Save RETX so we can pass it while booting Linux */ + bfin_poweron_retx = bootflag; + #ifdef CONFIG_DEBUG_DUMP /* Turn on hardware trace buffer */ bfin_write_TBUFCTL(TBUFPWR | TBUFEN); |