diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2021-06-18 06:45:11 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-06-21 14:15:26 +0300 |
commit | 0d0f9e5f2fa7aacf22892078a1065fa5d0ce941b (patch) | |
tree | 9ce310987921b60999ce4bf6d1ffd8b880bf15d0 /arch/powerpc/platforms/microwatt | |
parent | 151b88e8482167f6eb3117d82e4905efb5e72662 (diff) | |
download | linux-0d0f9e5f2fa7aacf22892078a1065fa5d0ce941b.tar.xz |
powerpc/microwatt: Populate platform bus from device-tree
Just like any other embedded platform.
Add an empty soc node.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/YMwWx98+PMibZq/G@thinks.paulus.ozlabs.org
Diffstat (limited to 'arch/powerpc/platforms/microwatt')
-rw-r--r-- | arch/powerpc/platforms/microwatt/setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/microwatt/setup.c b/arch/powerpc/platforms/microwatt/setup.c index d80d52612672..5af4adf881bc 100644 --- a/arch/powerpc/platforms/microwatt/setup.c +++ b/arch/powerpc/platforms/microwatt/setup.c @@ -8,6 +8,8 @@ #include <linux/kernel.h> #include <linux/stddef.h> #include <linux/init.h> +#include <linux/of.h> +#include <linux/of_platform.h> #include <asm/machdep.h> #include <asm/time.h> @@ -16,6 +18,12 @@ static int __init microwatt_probe(void) return of_machine_is_compatible("microwatt-soc"); } +static int __init microwatt_populate(void) +{ + return of_platform_default_populate(NULL, NULL, NULL); +} +machine_arch_initcall(microwatt, microwatt_populate); + define_machine(microwatt) { .name = "microwatt", .probe = microwatt_probe, |