| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * machine.h -- SoC Regulator support, machine/board driver API. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2007, 2008 Wolfson Microelectronics PLC. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: Liam Girdwood <lrg@slimlogic.co.uk> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 10 | | - * published by the Free Software Foundation. |
|---|
| 11 | 8 | * |
|---|
| 12 | 9 | * Regulator Machine/Board Interface. |
|---|
| 13 | 10 | */ |
|---|
| .. | .. |
|---|
| 104 | 101 | * @system_load: Load that isn't captured by any consumer requests. |
|---|
| 105 | 102 | * |
|---|
| 106 | 103 | * @max_spread: Max possible spread between coupled regulators |
|---|
| 104 | + * @max_uV_step: Max possible step change in voltage |
|---|
| 107 | 105 | * @valid_modes_mask: Mask of modes which may be configured by consumers. |
|---|
| 108 | 106 | * @valid_ops_mask: Operations which may be performed by consumers. |
|---|
| 109 | 107 | * |
|---|
| .. | .. |
|---|
| 156 | 154 | int system_load; |
|---|
| 157 | 155 | |
|---|
| 158 | 156 | /* used for coupled regulators */ |
|---|
| 159 | | - int max_spread; |
|---|
| 157 | + u32 *max_spread; |
|---|
| 158 | + |
|---|
| 159 | + /* used for changing voltage in steps */ |
|---|
| 160 | + int max_uV_step; |
|---|
| 160 | 161 | |
|---|
| 161 | 162 | /* valid regulator operating modes for this machine */ |
|---|
| 162 | 163 | unsigned int valid_modes_mask; |
|---|