aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/85xx/p4080_ds.c
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2011-05-19 09:54:30 -0400
committerKumar Gala <galak@kernel.crashing.org>2011-06-27 09:30:54 -0400
commit3907ab26866006087c4d1e48e9d1306e281ec955 (patch)
tree83cd8155d4b387bd340e6fa4235bfbd4b4e04454 /arch/powerpc/platforms/85xx/p4080_ds.c
parentd173ea6b4078f37320b49d06f9656ba76ee1ba6c (diff)
powerpc/85xx: add board support for the Freescale hypervisor
Add support for the ePAPR-compliant Freescale hypervisor (aka "Topaz") on the Freescale P3041DS, P4080DS, and P5020DS reference boards. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/85xx/p4080_ds.c')
-rw-r--r--arch/powerpc/platforms/85xx/p4080_ds.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/p4080_ds.c b/arch/powerpc/platforms/85xx/p4080_ds.c
index ec8320c95f8f..eed4b01deff7 100644
--- a/arch/powerpc/platforms/85xx/p4080_ds.c
+++ b/arch/powerpc/platforms/85xx/p4080_ds.c
@@ -29,6 +29,7 @@
29#include <linux/of_platform.h> 29#include <linux/of_platform.h>
30#include <sysdev/fsl_soc.h> 30#include <sysdev/fsl_soc.h>
31#include <sysdev/fsl_pci.h> 31#include <sysdev/fsl_pci.h>
32#include <asm/ehv_pic.h>
32 33
33#include "corenet_ds.h" 34#include "corenet_ds.h"
34 35
@@ -39,7 +40,20 @@ static int __init p4080_ds_probe(void)
39{ 40{
40 unsigned long root = of_get_flat_dt_root(); 41 unsigned long root = of_get_flat_dt_root();
41 42
42 return of_flat_dt_is_compatible(root, "fsl,P4080DS"); 43 if (of_flat_dt_is_compatible(root, "fsl,P4080DS"))
44 return 1;
45
46 /* Check if we're running under the Freescale hypervisor */
47 if (of_flat_dt_is_compatible(root, "fsl,P4080DS-hv")) {
48 ppc_md.init_IRQ = ehv_pic_init;
49 ppc_md.get_irq = ehv_pic_get_irq;
50 ppc_md.restart = fsl_hv_restart;
51 ppc_md.power_off = fsl_hv_halt;
52 ppc_md.halt = fsl_hv_halt;
53 return 1;
54 }
55
56 return 0;
43} 57}
44 58
45define_machine(p4080_ds) { 59define_machine(p4080_ds) {