setup.c (e205ceeb253723f4e4bdce619844ed678ae48276) setup.c (fcdc65375186a5cd69cc2eedfb498b86f4f5a21e)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
4 * Chen Liqin <liqin.chen@sunplusct.com>
5 * Lennox Wu <lennox.wu@sunplusct.com>
6 * Copyright (C) 2012 Regents of the University of California
7 */
8
9#include <linux/init.h>
10#include <linux/mm.h>
11#include <linux/memblock.h>
12#include <linux/sched.h>
13#include <linux/console.h>
14#include <linux/screen_info.h>
15#include <linux/of_fdt.h>
16#include <linux/of_platform.h>
17#include <linux/sched/task.h>
18#include <linux/swiotlb.h>
19
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
4 * Chen Liqin <liqin.chen@sunplusct.com>
5 * Lennox Wu <lennox.wu@sunplusct.com>
6 * Copyright (C) 2012 Regents of the University of California
7 */
8
9#include <linux/init.h>
10#include <linux/mm.h>
11#include <linux/memblock.h>
12#include <linux/sched.h>
13#include <linux/console.h>
14#include <linux/screen_info.h>
15#include <linux/of_fdt.h>
16#include <linux/of_platform.h>
17#include <linux/sched/task.h>
18#include <linux/swiotlb.h>
19
20#include <asm/clint.h>
20#include <asm/setup.h>
21#include <asm/sections.h>
22#include <asm/pgtable.h>
23#include <asm/smp.h>
24#include <asm/tlbflush.h>
25#include <asm/thread_info.h>
26
27#include "head.h"

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

62
63 *cmdline_p = boot_command_line;
64
65 parse_early_param();
66
67 setup_bootmem();
68 paging_init();
69 unflatten_device_tree();
21#include <asm/setup.h>
22#include <asm/sections.h>
23#include <asm/pgtable.h>
24#include <asm/smp.h>
25#include <asm/tlbflush.h>
26#include <asm/thread_info.h>
27
28#include "head.h"

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

63
64 *cmdline_p = boot_command_line;
65
66 parse_early_param();
67
68 setup_bootmem();
69 paging_init();
70 unflatten_device_tree();
71 clint_init_boot_cpu();
70
71#ifdef CONFIG_SWIOTLB
72 swiotlb_init(1);
73#endif
74
75#ifdef CONFIG_SMP
76 setup_smp();
77#endif
78
79#ifdef CONFIG_DUMMY_CONSOLE
80 conswitchp = &dummy_con;
81#endif
82
83 riscv_fill_hwcap();
84}
72
73#ifdef CONFIG_SWIOTLB
74 swiotlb_init(1);
75#endif
76
77#ifdef CONFIG_SMP
78 setup_smp();
79#endif
80
81#ifdef CONFIG_DUMMY_CONSOLE
82 conswitchp = &dummy_con;
83#endif
84
85 riscv_fill_hwcap();
86}