aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/85xx
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
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')
-rw-r--r--arch/powerpc/platforms/85xx/Kconfig3
-rw-r--r--arch/powerpc/platforms/85xx/corenet_ds.c7
-rw-r--r--arch/powerpc/platforms/85xx/p3041_ds.c16
-rw-r--r--arch/powerpc/platforms/85xx/p4080_ds.c16
-rw-r--r--arch/powerpc/platforms/85xx/p5020_ds.c16
5 files changed, 55 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
index 6db027561961..10e147a1f302 100644
--- a/arch/powerpc/platforms/85xx/Kconfig
+++ b/arch/powerpc/platforms/85xx/Kconfig
@@ -169,6 +169,7 @@ config P3041_DS
169 select SWIOTLB 169 select SWIOTLB
170 select MPC8xxx_GPIO 170 select MPC8xxx_GPIO
171 select HAS_RAPIDIO 171 select HAS_RAPIDIO
172 select PPC_EPAPR_HV_PIC
172 help 173 help
173 This option enables support for the P3041 DS board 174 This option enables support for the P3041 DS board
174 175
@@ -180,6 +181,7 @@ config P4080_DS
180 select SWIOTLB 181 select SWIOTLB
181 select MPC8xxx_GPIO 182 select MPC8xxx_GPIO
182 select HAS_RAPIDIO 183 select HAS_RAPIDIO
184 select PPC_EPAPR_HV_PIC
183 help 185 help
184 This option enables support for the P4080 DS board 186 This option enables support for the P4080 DS board
185 187
@@ -194,6 +196,7 @@ config P5020_DS
194 select SWIOTLB 196 select SWIOTLB
195 select MPC8xxx_GPIO 197 select MPC8xxx_GPIO
196 select HAS_RAPIDIO 198 select HAS_RAPIDIO
199 select PPC_EPAPR_HV_PIC
197 help 200 help
198 This option enables support for the P5020 DS board 201 This option enables support for the P5020 DS board
199 202
diff --git a/arch/powerpc/platforms/85xx/corenet_ds.c b/arch/powerpc/platforms/85xx/corenet_ds.c
index 338e6dc31663..802ad110b757 100644
--- a/arch/powerpc/platforms/85xx/corenet_ds.c
+++ b/arch/powerpc/platforms/85xx/corenet_ds.c
@@ -120,6 +120,13 @@ static const struct of_device_id of_device_ids[] __devinitconst = {
120 { 120 {
121 .compatible = "fsl,qoriq-pcie-v2.2", 121 .compatible = "fsl,qoriq-pcie-v2.2",
122 }, 122 },
123 /* The following two are for the Freescale hypervisor */
124 {
125 .name = "hypervisor",
126 },
127 {
128 .name = "handles",
129 },
123 {} 130 {}
124}; 131};
125 132
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
46define_machine(p3041_ds) { 60define_machine(p3041_ds) {
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) {
diff --git a/arch/powerpc/platforms/85xx/p5020_ds.c b/arch/powerpc/platforms/85xx/p5020_ds.c
index 7467b712ee00..94348c9b5dc6 100644
--- a/arch/powerpc/platforms/85xx/p5020_ds.c
+++ b/arch/powerpc/platforms/85xx/p5020_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 p5020_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,P5020DS"); 44 if (of_flat_dt_is_compatible(root, "fsl,P5020DS"))
45 return 1;
46
47 /* Check if we're running under the Freescale hypervisor */
48 if (of_flat_dt_is_compatible(root, "fsl,P5020DS-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
46define_machine(p5020_ds) { 60define_machine(p5020_ds) {