diff options
author | Timur Tabi <timur@freescale.com> | 2011-05-19 09:54:30 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-06-27 09:30:54 -0400 |
commit | 3907ab26866006087c4d1e48e9d1306e281ec955 (patch) | |
tree | 83cd8155d4b387bd340e6fa4235bfbd4b4e04454 /arch/powerpc/platforms/85xx/p3041_ds.c | |
parent | d173ea6b4078f37320b49d06f9656ba76ee1ba6c (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/p3041_ds.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/p3041_ds.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/p3041_ds.c b/arch/powerpc/platforms/85xx/p3041_ds.c index 0ed52e18298c..e2cfb6b6fb25 100644 --- a/arch/powerpc/platforms/85xx/p3041_ds.c +++ b/arch/powerpc/platforms/85xx/p3041_ds.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/of_platform.h> | 30 | #include <linux/of_platform.h> |
31 | #include <sysdev/fsl_soc.h> | 31 | #include <sysdev/fsl_soc.h> |
32 | #include <sysdev/fsl_pci.h> | 32 | #include <sysdev/fsl_pci.h> |
33 | #include <asm/ehv_pic.h> | ||
33 | 34 | ||
34 | #include "corenet_ds.h" | 35 | #include "corenet_ds.h" |
35 | 36 | ||
@@ -40,7 +41,20 @@ static int __init p3041_ds_probe(void) | |||
40 | { | 41 | { |
41 | unsigned long root = of_get_flat_dt_root(); | 42 | unsigned long root = of_get_flat_dt_root(); |
42 | 43 | ||
43 | return of_flat_dt_is_compatible(root, "fsl,P3041DS"); | 44 | if (of_flat_dt_is_compatible(root, "fsl,P3041DS")) |
45 | return 1; | ||
46 | |||
47 | /* Check if we're running under the Freescale hypervisor */ | ||
48 | if (of_flat_dt_is_compatible(root, "fsl,P3041DS-hv")) { | ||
49 | ppc_md.init_IRQ = ehv_pic_init; | ||
50 | ppc_md.get_irq = ehv_pic_get_irq; | ||
51 | ppc_md.restart = fsl_hv_restart; | ||
52 | ppc_md.power_off = fsl_hv_halt; | ||
53 | ppc_md.halt = fsl_hv_halt; | ||
54 | return 1; | ||
55 | } | ||
56 | |||
57 | return 0; | ||
44 | } | 58 | } |
45 | 59 | ||
46 | define_machine(p3041_ds) { | 60 | define_machine(p3041_ds) { |