|
@@ -30,6 +30,7 @@
|
|
#include <linux/of_platform.h>
|
|
#include <linux/of_platform.h>
|
|
#include <sysdev/fsl_soc.h>
|
|
#include <sysdev/fsl_soc.h>
|
|
#include <sysdev/fsl_pci.h>
|
|
#include <sysdev/fsl_pci.h>
|
|
|
|
+#include <asm/ehv_pic.h>
|
|
|
|
|
|
#include "corenet_ds.h"
|
|
#include "corenet_ds.h"
|
|
|
|
|
|
@@ -40,7 +41,20 @@ static int __init p3041_ds_probe(void)
|
|
{
|
|
{
|
|
unsigned long root = of_get_flat_dt_root();
|
|
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) {
|
|
define_machine(p3041_ds) {
|