regulator_set_optimum_mode(9)

regulator_set_optimum_mode9

Set regulator optimum operating mode

Usage

int regulator_set_optimum_mode(struct regulator * regulator, int uA_load);

Arguments

regulator

regulator source

uA_load

load current

Overview

Notifies the regulator core of a new device load. This is then used by DRMS (if enabled by constraints) to set the most efficient regulator operating mode for the new regulator loading.

Consumer devices notify their supply regulator of the maximum power they will require (can be taken from device datasheet in the power consumption tables) when they change operational status and hence power state. Examples of operational state changes that can affect power

Consumption are

-

o Device is opened / closed. o Device I/O is about to begin or has just finished. o Device is idling in between work.

This information is also exported via sysfs to userspace.

DRMS will sum the total requested load on the regulator and change to the most efficient operating mode if platform constraints allow.

Returns the new regulator mode or error.

Releases

3 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7
  3. 8

Authors

Liam Girdwood <[email protected]>

Author.

Mark Brown <[email protected]>
Wolfson Microelectronics,

Author.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.