Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259102
b: refs/heads/master
c: 3907ab2
h: refs/heads/master
v: v3
  • Loading branch information
Timur Tabi authored and Kumar Gala committed Jun 27, 2011
1 parent 597d530 commit 2750033
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d173ea6b4078f37320b49d06f9656ba76ee1ba6c
refs/heads/master: 3907ab26866006087c4d1e48e9d1306e281ec955
3 changes: 3 additions & 0 deletions trunk/arch/powerpc/platforms/85xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ config P3041_DS
select SWIOTLB
select MPC8xxx_GPIO
select HAS_RAPIDIO
select PPC_EPAPR_HV_PIC
help
This option enables support for the P3041 DS board

Expand All @@ -180,6 +181,7 @@ config P4080_DS
select SWIOTLB
select MPC8xxx_GPIO
select HAS_RAPIDIO
select PPC_EPAPR_HV_PIC
help
This option enables support for the P4080 DS board

Expand All @@ -194,6 +196,7 @@ config P5020_DS
select SWIOTLB
select MPC8xxx_GPIO
select HAS_RAPIDIO
select PPC_EPAPR_HV_PIC
help
This option enables support for the P5020 DS board

Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/powerpc/platforms/85xx/corenet_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ static const struct of_device_id of_device_ids[] __devinitconst = {
{
.compatible = "fsl,qoriq-pcie-v2.2",
},
/* The following two are for the Freescale hypervisor */
{
.name = "hypervisor",
},
{
.name = "handles",
},
{}
};

Expand Down
16 changes: 15 additions & 1 deletion trunk/arch/powerpc/platforms/85xx/p3041_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/of_platform.h>
#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
#include <asm/ehv_pic.h>

#include "corenet_ds.h"

Expand All @@ -40,7 +41,20 @@ static int __init p3041_ds_probe(void)
{
unsigned long root = of_get_flat_dt_root();

return of_flat_dt_is_compatible(root, "fsl,P3041DS");
if (of_flat_dt_is_compatible(root, "fsl,P3041DS"))
return 1;

/* Check if we're running under the Freescale hypervisor */
if (of_flat_dt_is_compatible(root, "fsl,P3041DS-hv")) {
ppc_md.init_IRQ = ehv_pic_init;
ppc_md.get_irq = ehv_pic_get_irq;
ppc_md.restart = fsl_hv_restart;
ppc_md.power_off = fsl_hv_halt;
ppc_md.halt = fsl_hv_halt;
return 1;
}

return 0;
}

define_machine(p3041_ds) {
Expand Down
16 changes: 15 additions & 1 deletion trunk/arch/powerpc/platforms/85xx/p4080_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <linux/of_platform.h>
#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
#include <asm/ehv_pic.h>

#include "corenet_ds.h"

Expand All @@ -39,7 +40,20 @@ static int __init p4080_ds_probe(void)
{
unsigned long root = of_get_flat_dt_root();

return of_flat_dt_is_compatible(root, "fsl,P4080DS");
if (of_flat_dt_is_compatible(root, "fsl,P4080DS"))
return 1;

/* Check if we're running under the Freescale hypervisor */
if (of_flat_dt_is_compatible(root, "fsl,P4080DS-hv")) {
ppc_md.init_IRQ = ehv_pic_init;
ppc_md.get_irq = ehv_pic_get_irq;
ppc_md.restart = fsl_hv_restart;
ppc_md.power_off = fsl_hv_halt;
ppc_md.halt = fsl_hv_halt;
return 1;
}

return 0;
}

define_machine(p4080_ds) {
Expand Down
16 changes: 15 additions & 1 deletion trunk/arch/powerpc/platforms/85xx/p5020_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/of_platform.h>
#include <sysdev/fsl_soc.h>
#include <sysdev/fsl_pci.h>
#include <asm/ehv_pic.h>

#include "corenet_ds.h"

Expand All @@ -40,7 +41,20 @@ static int __init p5020_ds_probe(void)
{
unsigned long root = of_get_flat_dt_root();

return of_flat_dt_is_compatible(root, "fsl,P5020DS");
if (of_flat_dt_is_compatible(root, "fsl,P5020DS"))
return 1;

/* Check if we're running under the Freescale hypervisor */
if (of_flat_dt_is_compatible(root, "fsl,P5020DS-hv")) {
ppc_md.init_IRQ = ehv_pic_init;
ppc_md.get_irq = ehv_pic_get_irq;
ppc_md.restart = fsl_hv_restart;
ppc_md.power_off = fsl_hv_halt;
ppc_md.halt = fsl_hv_halt;
return 1;
}

return 0;
}

define_machine(p5020_ds) {
Expand Down

0 comments on commit 2750033

Please sign in to comment.