summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/common.c
diff options
context:
space:
mode:
authorEric Cooper <ecc@cmu.edu>2011-02-02 17:16:11 -0500
committerNicolas Pitre <nico@fluxnic.net>2011-03-03 16:26:57 -0500
commit9c15364f83201802e995cbf72d833e5e1b3b9adb (patch)
tree0a2909e0049dd10c7256584a70adfa168bab0bae /arch/arm/mach-kirkwood/common.c
parent0e0cdd37709ba7ac9f0bff5de1b22f1b7987b04c (diff)
downloadblackbird-op-linux-9c15364f83201802e995cbf72d833e5e1b3b9adb.tar.gz
blackbird-op-linux-9c15364f83201802e995cbf72d833e5e1b3b9adb.zip
[ARM] Kirkwood: enable PCIe for kexec
Use the machine-specific kexec_reinit hook to make sure PCIe is enabled before starting a new kernel. Signed-off-by: Eric Cooper <ecc@cmu.edu> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm/mach-kirkwood/common.c')
-rw-r--r--arch/arm/mach-kirkwood/common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
index 3688123b5ad8..966df630b76f 100644
--- a/arch/arm/mach-kirkwood/common.c
+++ b/arch/arm/mach-kirkwood/common.c
@@ -21,6 +21,7 @@
#include <net/dsa.h>
#include <asm/page.h>
#include <asm/timex.h>
+#include <asm/kexec.h>
#include <asm/mach/map.h>
#include <asm/mach/time.h>
#include <mach/kirkwood.h>
@@ -1003,6 +1004,10 @@ void __init kirkwood_init(void)
kirkwood_xor0_init();
kirkwood_xor1_init();
kirkwood_crypto_init();
+
+#ifdef CONFIG_KEXEC
+ kexec_reinit = kirkwood_enable_pcie;
+#endif
}
static int __init kirkwood_clock_gate(void)
OpenPOWER on IntegriCloud