diff options
| author | Tony Lindgren <tony@atomide.com> | 2018-02-22 16:57:30 -0500 |
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2018-02-22 16:57:30 -0500 |
| commit | d060b40523dcd91428c7fb2aaa307de37887484a (patch) | |
| tree | 22121b1da438c7279ec2bed1d418e604cb22040f /include/linux/power | |
| parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
ARM: OMAP2+: Prepare to pass auxdata for smartreflex
We are still initializing smartreflex with platform data using
omap_device_build(). We can instead pass the platform data in
with auxdata in pdata-quirks.c and make the driver use that
in later patches.
Note that we cannot enable the auxdata use yet, this is done
in the last patch of the series.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/linux/power')
| -rw-r--r-- | include/linux/power/smartreflex.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/power/smartreflex.h b/include/linux/power/smartreflex.h index d8b187c3925d..7b81dad712de 100644 --- a/include/linux/power/smartreflex.h +++ b/include/linux/power/smartreflex.h | |||
| @@ -143,6 +143,13 @@ | |||
| 143 | #define OMAP3430_SR_ERRWEIGHT 0x04 | 143 | #define OMAP3430_SR_ERRWEIGHT 0x04 |
| 144 | #define OMAP3430_SR_ERRMAXLIMIT 0x02 | 144 | #define OMAP3430_SR_ERRMAXLIMIT 0x02 |
| 145 | 145 | ||
| 146 | enum sr_instance { | ||
| 147 | OMAP_SR_MPU, /* shared with iva on omap3 */ | ||
| 148 | OMAP_SR_CORE, | ||
| 149 | OMAP_SR_IVA, | ||
| 150 | OMAP_SR_NR, | ||
| 151 | }; | ||
| 152 | |||
| 146 | struct omap_sr { | 153 | struct omap_sr { |
| 147 | char *name; | 154 | char *name; |
| 148 | struct list_head node; | 155 | struct list_head node; |
| @@ -207,7 +214,6 @@ struct omap_smartreflex_dev_attr { | |||
| 207 | const char *sensor_voltdm_name; | 214 | const char *sensor_voltdm_name; |
| 208 | }; | 215 | }; |
| 209 | 216 | ||
| 210 | #ifdef CONFIG_POWER_AVS_OMAP | ||
| 211 | /* | 217 | /* |
| 212 | * The smart reflex driver supports CLASS1 CLASS2 and CLASS3 SR. | 218 | * The smart reflex driver supports CLASS1 CLASS2 and CLASS3 SR. |
| 213 | * The smartreflex class driver should pass the class type. | 219 | * The smartreflex class driver should pass the class type. |
| @@ -290,6 +296,8 @@ struct omap_sr_data { | |||
| 290 | struct voltagedomain *voltdm; | 296 | struct voltagedomain *voltdm; |
| 291 | }; | 297 | }; |
| 292 | 298 | ||
| 299 | #ifdef CONFIG_POWER_AVS_OMAP | ||
| 300 | |||
| 293 | /* Smartreflex module enable/disable interface */ | 301 | /* Smartreflex module enable/disable interface */ |
| 294 | void omap_sr_enable(struct voltagedomain *voltdm); | 302 | void omap_sr_enable(struct voltagedomain *voltdm); |
| 295 | void omap_sr_disable(struct voltagedomain *voltdm); | 303 | void omap_sr_disable(struct voltagedomain *voltdm); |
