forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 958e46acc8e900e8569dd467c1af9b8d2d019394
kernel/arch/sh/kernel/cpu/sh4a/setup-sh7786.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * SH7786 Setup
34 *
....@@ -8,10 +9,6 @@
89 * Based on SH7785 Setup
910 *
1011 * Copyright (C) 2007 Paul Mundt
11
- *
12
- * This file is subject to the terms and conditions of the GNU General Public
13
- * License. See the file "COPYING" in the main directory of this archive
14
- * for more details.
1512 */
1613 #include <linux/platform_device.h>
1714 #include <linux/init.h>
....@@ -26,6 +23,7 @@
2623 #include <linux/usb/ohci_pdriver.h>
2724 #include <cpu/dma-register.h>
2825 #include <asm/mmzone.h>
26
+#include <asm/platform_early.h>
2927
3028 static struct plat_sci_port scif0_platform_data = {
3129 .scscr = SCSCR_REIE | SCSCR_CKE1,
....@@ -393,6 +391,7 @@
393391 &tmu0_device,
394392 &tmu1_device,
395393 &tmu2_device,
394
+ &tmu3_device,
396395 };
397396
398397 static struct platform_device *sh7786_devices[] __initdata = {
....@@ -837,6 +836,6 @@
837836
838837 void __init plat_early_device_setup(void)
839838 {
840
- early_platform_add_devices(sh7786_early_devices,
839
+ sh_early_platform_add_devices(sh7786_early_devices,
841840 ARRAY_SIZE(sh7786_early_devices));
842841 }