forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/xtensa/platforms/iss/setup.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 *
34 * arch/xtensa/platform-iss/setup.c
....@@ -9,38 +10,18 @@
910 *
1011 * Copyright 2001 - 2005 Tensilica Inc.
1112 * Copyright 2017 Cadence Design Systems Inc.
12
- *
13
- * This program is free software; you can redistribute it and/or modify it
14
- * under the terms of the GNU General Public License as published by the
15
- * Free Software Foundation; either version 2 of the License, or (at your
16
- * option) any later version.
17
- *
1813 */
19
-#include <linux/bootmem.h>
20
-#include <linux/stddef.h>
21
-#include <linux/kernel.h>
2214 #include <linux/init.h>
23
-#include <linux/errno.h>
24
-#include <linux/reboot.h>
25
-#include <linux/kdev_t.h>
26
-#include <linux/types.h>
27
-#include <linux/major.h>
28
-#include <linux/blkdev.h>
29
-#include <linux/console.h>
30
-#include <linux/delay.h>
31
-#include <linux/stringify.h>
15
+#include <linux/kernel.h>
3216 #include <linux/notifier.h>
17
+#include <linux/printk.h>
18
+#include <linux/string.h>
3319
3420 #include <asm/platform.h>
35
-#include <asm/bootparam.h>
3621 #include <asm/setup.h>
3722
3823 #include <platform/simcall.h>
3924
40
-
41
-void __init platform_init(bp_tag_t* bootparam)
42
-{
43
-}
4425
4526 void platform_halt(void)
4627 {
....@@ -53,16 +34,13 @@
5334 pr_info(" ** Called platform_power_off() **\n");
5435 simc_exit(0);
5536 }
37
+
5638 void platform_restart(void)
5739 {
5840 /* Flush and reset the mmu, simulate a processor reset, and
5941 * jump to the reset vector. */
6042 cpu_reset();
6143 /* control never gets here */
62
-}
63
-
64
-void platform_heartbeat(void)
65
-{
6644 }
6745
6846 static int