mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
MIPS: Netlogic: Add XLP SoC devices in FDT
Probe and add devices on SoC "simple-bus" on startup. This will in turn add devices like I2C controller that are specified in the device tree under 'soc'. Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com> Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3762/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
57d7cdb630
commit
fcf9b4de33
1 changed files with 16 additions and 0 deletions
|
@ -41,6 +41,8 @@
|
||||||
#include <asm/bootinfo.h>
|
#include <asm/bootinfo.h>
|
||||||
|
|
||||||
#include <linux/of_fdt.h>
|
#include <linux/of_fdt.h>
|
||||||
|
#include <linux/of_platform.h>
|
||||||
|
#include <linux/of_device.h>
|
||||||
|
|
||||||
#include <asm/netlogic/haldefs.h>
|
#include <asm/netlogic/haldefs.h>
|
||||||
#include <asm/netlogic/common.h>
|
#include <asm/netlogic/common.h>
|
||||||
|
@ -109,3 +111,17 @@ void __init prom_init(void)
|
||||||
register_smp_ops(&nlm_smp_ops);
|
register_smp_ops(&nlm_smp_ops);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static struct of_device_id __initdata xlp_ids[] = {
|
||||||
|
{ .compatible = "simple-bus", },
|
||||||
|
{},
|
||||||
|
};
|
||||||
|
|
||||||
|
int __init xlp8xx_ds_publish_devices(void)
|
||||||
|
{
|
||||||
|
if (!of_have_populated_dt())
|
||||||
|
return 0;
|
||||||
|
return of_platform_bus_probe(NULL, xlp_ids, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
device_initcall(xlp8xx_ds_publish_devices);
|
||||||
|
|
Loading…
Reference in a new issue