0d0f9e5f2f
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
32 lines
708 B
C
32 lines
708 B
C
/*
|
|
* Microwatt FPGA-based SoC platform setup code.
|
|
*
|
|
* Copyright 2020 Paul Mackerras (paulus@ozlabs.org), IBM Corp.
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
#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>
|
|
|
|
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,
|
|
.calibrate_decr = generic_calibrate_decr,
|
|
};
|