diff options
author | Eric Cooper <ecc@cmu.edu> | 2011-02-02 17:16:10 -0500 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2011-03-03 16:26:56 -0500 |
commit | 0e0cdd37709ba7ac9f0bff5de1b22f1b7987b04c (patch) | |
tree | 10fedbe7429bbb9afddd01215aef3cd490c31bdd /arch/arm/mach-kirkwood/common.h | |
parent | 868d172b8ac23070418ec6265195e88e8d5dbe92 (diff) |
[ARM] Kirkwood: enable PCIe before reading device ID register
PCIe may have been disabled (by kirkwood_clock_gate)
if this kernel was started by kexec. Make sure PCIe
is enabled before attempting to access the device ID
register, otherwise the system will hang.
Signed-off-by: Eric Cooper <ecc@cmu.edu>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm/mach-kirkwood/common.h')
-rw-r--r-- | arch/arm/mach-kirkwood/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/common.h b/arch/arm/mach-kirkwood/common.h index 95bb0a73adfb..a35b86235772 100644 --- a/arch/arm/mach-kirkwood/common.h +++ b/arch/arm/mach-kirkwood/common.h | |||
@@ -32,6 +32,7 @@ void kirkwood_init_irq(void); | |||
32 | extern struct mbus_dram_target_info kirkwood_mbus_dram_info; | 32 | extern struct mbus_dram_target_info kirkwood_mbus_dram_info; |
33 | void kirkwood_setup_cpu_mbus(void); | 33 | void kirkwood_setup_cpu_mbus(void); |
34 | 34 | ||
35 | void kirkwood_enable_pcie(void); | ||
35 | void kirkwood_pcie_id(u32 *dev, u32 *rev); | 36 | void kirkwood_pcie_id(u32 *dev, u32 *rev); |
36 | 37 | ||
37 | void kirkwood_ehci_init(void); | 38 | void kirkwood_ehci_init(void); |