setup.c (aa9c5adf2f61da39c92280d9336e091852e292ff) setup.c (48b545b8018db61ab4978d29c73c16b9fbfad12c)
1/*
2 * Microwatt FPGA-based SoC platform setup code.
3 *
4 * Copyright 2020 Paul Mackerras (paulus@ozlabs.org), IBM Corp.
5 */
6
7#include <linux/types.h>
8#include <linux/kernel.h>
9#include <linux/stddef.h>
10#include <linux/init.h>
11#include <linux/of.h>
12#include <linux/of_platform.h>
13
14#include <asm/machdep.h>
15#include <asm/time.h>
16#include <asm/xics.h>
1/*
2 * Microwatt FPGA-based SoC platform setup code.
3 *
4 * Copyright 2020 Paul Mackerras (paulus@ozlabs.org), IBM Corp.
5 */
6
7#include <linux/types.h>
8#include <linux/kernel.h>
9#include <linux/stddef.h>
10#include <linux/init.h>
11#include <linux/of.h>
12#include <linux/of_platform.h>
13
14#include <asm/machdep.h>
15#include <asm/time.h>
16#include <asm/xics.h>
17#include <asm/udbg.h>
17
18static void __init microwatt_init_IRQ(void)
19{
20 xics_init();
21}
22
23static int __init microwatt_probe(void)
24{

--- 5 unchanged lines hidden (view full) ---

30 return of_platform_default_populate(NULL, NULL, NULL);
31}
32machine_arch_initcall(microwatt, microwatt_populate);
33
34define_machine(microwatt) {
35 .name = "microwatt",
36 .probe = microwatt_probe,
37 .init_IRQ = microwatt_init_IRQ,
18
19static void __init microwatt_init_IRQ(void)
20{
21 xics_init();
22}
23
24static int __init microwatt_probe(void)
25{

--- 5 unchanged lines hidden (view full) ---

31 return of_platform_default_populate(NULL, NULL, NULL);
32}
33machine_arch_initcall(microwatt, microwatt_populate);
34
35define_machine(microwatt) {
36 .name = "microwatt",
37 .probe = microwatt_probe,
38 .init_IRQ = microwatt_init_IRQ,
39 .progress = udbg_progress,
38 .calibrate_decr = generic_calibrate_decr,
39};
40 .calibrate_decr = generic_calibrate_decr,
41};