forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/arch/arm/mach-ux500/cpu-db8500.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2008-2009 ST-Ericsson SA
34 *
45 * Author: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2, as
8
- * published by the Free Software Foundation.
9
- *
106 */
117 #include <linux/types.h>
128 #include <linux/init.h>
....@@ -88,6 +84,7 @@
8884 struct resource r;
8985
9086 irqchip_init();
87
+ prcmu_early_init();
9188 np = of_find_compatible_node(NULL, NULL, "stericsson,db8500-prcmu");
9289 of_address_to_resource(np, 0, &r);
9390 of_node_put(np);
....@@ -95,7 +92,6 @@
9592 pr_err("could not find PRCMU base resource\n");
9693 return;
9794 }
98
- prcmu_early_init(r.start, r.end-r.start);
9995 ux500_pm_init(r.start, r.end-r.start);
10096
10197 /* Unlock before init */
....@@ -114,7 +110,6 @@
114110 static const struct of_device_id u8500_local_bus_nodes[] = {
115111 /* only create devices below soc node */
116112 { .compatible = "stericsson,db8500", },
117
- { .compatible = "stericsson,db8500-prcmu", },
118113 { .compatible = "simple-bus"},
119114 { },
120115 };