aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-09-19 13:44:57 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-09-20 02:09:50 -0400
commit14a43e69ed257a1fadadf9fea2c05adb1686419f (patch)
tree82ac1fccd465e7a58533c17d14792ceba73fa63e /arch/powerpc/kernel
parent817c21ad9a1f00926f080265493923ada3458c63 (diff)
powerpc/powernv: Basic support for OPAL
Add definition of OPAL interfaces along with the wrappers to call into OPAL runtime and the early device-tree parsing hook to locate the OPAL runtime firmware. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/prom.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 7b90c564e93..831a201e03d 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -54,6 +54,8 @@
54#include <asm/pci-bridge.h> 54#include <asm/pci-bridge.h>
55#include <asm/phyp_dump.h> 55#include <asm/phyp_dump.h>
56#include <asm/kexec.h> 56#include <asm/kexec.h>
57#include <asm/opal.h>
58
57#include <mm/mmu_decl.h> 59#include <mm/mmu_decl.h>
58 60
59#ifdef DEBUG 61#ifdef DEBUG
@@ -707,6 +709,11 @@ void __init early_init_devtree(void *params)
707 of_scan_flat_dt(early_init_dt_scan_rtas, NULL); 709 of_scan_flat_dt(early_init_dt_scan_rtas, NULL);
708#endif 710#endif
709 711
712#ifdef CONFIG_PPC_POWERNV
713 /* Some machines might need OPAL info for debugging, grab it now. */
714 of_scan_flat_dt(early_init_dt_scan_opal, NULL);
715#endif
716
710#ifdef CONFIG_PHYP_DUMP 717#ifdef CONFIG_PHYP_DUMP
711 /* scan tree to see if dump occurred during last boot */ 718 /* scan tree to see if dump occurred during last boot */
712 of_scan_flat_dt(early_init_dt_scan_phyp_dump, NULL); 719 of_scan_flat_dt(early_init_dt_scan_phyp_dump, NULL);