forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-mediatek/mediatek.c
....@@ -1,23 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Device Tree support for Mediatek SoCs
34 *
45 * Copyright (c) 2014 MundoReader S.L.
56 * Author: Matthias Brugger <matthias.bgg@gmail.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
167 */
178 #include <linux/init.h>
9
+#include <linux/io.h>
1810 #include <asm/mach/arch.h>
1911 #include <linux/of.h>
20
-#include <linux/clk-provider.h>
12
+#include <linux/of_clk.h>
2113 #include <linux/clocksource.h>
2214
2315
....@@ -30,7 +22,6 @@
3022
3123 if (of_machine_is_compatible("mediatek,mt6589") ||
3224 of_machine_is_compatible("mediatek,mt7623") ||
33
- of_machine_is_compatible("mediatek,mt7623a") ||
3425 of_machine_is_compatible("mediatek,mt8135") ||
3526 of_machine_is_compatible("mediatek,mt8127")) {
3627 /* turn on GPT6 which ungates arch timer clocks */
....@@ -50,7 +41,7 @@
5041 "mediatek,mt6589",
5142 "mediatek,mt6592",
5243 "mediatek,mt7623",
53
- "mediatek,mt7623a",
44
+ "mediatek,mt7629",
5445 "mediatek,mt8127",
5546 "mediatek,mt8135",
5647 NULL,