Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96289b07 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Paul Mackerras
Browse files

[POWERPC] Hook of_platform_bus_probe with cell



Hook up of_platform_bus_probe with the cell platform in order to publish
the non-PCI devices in the device-tree of cell blades as of_platform_device(s)

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 7eebde70
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -51,6 +51,7 @@
#include <asm/spu_priv1.h>
#include <asm/spu_priv1.h>
#include <asm/udbg.h>
#include <asm/udbg.h>
#include <asm/mpic.h>
#include <asm/mpic.h>
#include <asm/of_platform.h>


#include "interrupt.h"
#include "interrupt.h"
#include "iommu.h"
#include "iommu.h"
@@ -81,6 +82,14 @@ static void cell_progress(char *s, unsigned short hex)
	printk("*** %04x : %s\n", hex, s ? s : "");
	printk("*** %04x : %s\n", hex, s ? s : "");
}
}


static int __init cell_publish_devices(void)
{
	if (machine_is(cell))
		of_platform_bus_probe(NULL, NULL, NULL);
	return 0;
}
device_initcall(cell_publish_devices);

static void cell_mpic_cascade(unsigned int irq, struct irq_desc *desc)
static void cell_mpic_cascade(unsigned int irq, struct irq_desc *desc)
{
{
	struct mpic *mpic = desc->handler_data;
	struct mpic *mpic = desc->handler_data;