hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/arm/mach-omap2/omap_twl.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * OMAP and TWL PMIC specific initializations.
34 *
....@@ -7,10 +8,6 @@
78 * Nishanth Menon
89 * Copyright (C) 2009 Nokia Corporation
910 * Paul Walmsley
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License version 2 as
13
- * published by the Free Software Foundation.
1411 */
1512
1613 #include <linux/err.h>
....@@ -38,11 +35,6 @@
3835 #define OMAP4_VDD_IVA_SR_CMD_REG 0x5C
3936 #define OMAP4_VDD_CORE_SR_VOLT_REG 0x61
4037 #define OMAP4_VDD_CORE_SR_CMD_REG 0x62
41
-
42
-#define OMAP4_VP_CONFIG_ERROROFFSET 0x00
43
-#define OMAP4_VP_VSTEPMIN_VSTEPMIN 0x01
44
-#define OMAP4_VP_VSTEPMAX_VSTEPMAX 0x04
45
-#define OMAP4_VP_VLIMITTO_TIMEOUT_US 200
4638
4739 static bool is_offset_valid;
4840 static u8 smps_offset;
....@@ -222,7 +214,8 @@
222214 {
223215 struct voltagedomain *voltdm;
224216
225
- if (!cpu_is_omap44xx())
217
+ if (!cpu_is_omap44xx() ||
218
+ of_find_compatible_node(NULL, NULL, "motorola,cpcap"))
226219 return -ENODEV;
227220
228221 voltdm = voltdm_lookup("mpu");