.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /** |
---|
2 | 3 | * OMAP and TWL PMIC specific initializations. |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * Nishanth Menon |
---|
8 | 9 | * Copyright (C) 2009 Nokia Corporation |
---|
9 | 10 | * 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. |
---|
14 | 11 | */ |
---|
15 | 12 | |
---|
16 | 13 | #include <linux/err.h> |
---|
.. | .. |
---|
38 | 35 | #define OMAP4_VDD_IVA_SR_CMD_REG 0x5C |
---|
39 | 36 | #define OMAP4_VDD_CORE_SR_VOLT_REG 0x61 |
---|
40 | 37 | #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 |
---|
46 | 38 | |
---|
47 | 39 | static bool is_offset_valid; |
---|
48 | 40 | static u8 smps_offset; |
---|
.. | .. |
---|
222 | 214 | { |
---|
223 | 215 | struct voltagedomain *voltdm; |
---|
224 | 216 | |
---|
225 | | - if (!cpu_is_omap44xx()) |
---|
| 217 | + if (!cpu_is_omap44xx() || |
---|
| 218 | + of_find_compatible_node(NULL, NULL, "motorola,cpcap")) |
---|
226 | 219 | return -ENODEV; |
---|
227 | 220 | |
---|
228 | 221 | voltdm = voltdm_lookup("mpu"); |
---|