Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
voltage-omap.h File Reference

Go to the source code of this file.

Data Structures

struct  omap_volt_data
 

Functions

struct voltagedomainvoltdm_lookup (const char *name)
 
int voltdm_scale (struct voltagedomain *voltdm, unsigned long target_volt)
 
unsigned long voltdm_get_voltage (struct voltagedomain *voltdm)
 
struct omap_volt_dataomap_voltage_get_voltdata (struct voltagedomain *voltdm, unsigned long volt)
 

Function Documentation

struct omap_volt_data* omap_voltage_get_voltdata ( struct voltagedomain voltdm,
unsigned long  volt 
)
read

omap_voltage_get_voltdata() - API to get the voltage table entry for a particular voltage : pointer to the VDD whose voltage table has to be searched : the voltage to be searched in the voltage table

This API searches through the voltage table for the required voltage domain and tries to find a matching entry for the passed voltage volt. If a matching entry is found volt_data is populated with that entry. This API searches only through the non-compensated voltages int the voltage table. Returns pointer to the voltage table entry corresponding to volt on success. Returns -ENODATA if no voltage table exisits for the passed voltage domain or if there is no matching entry.

Definition at line 177 of file voltage.c.

unsigned long voltdm_get_voltage ( struct voltagedomain voltdm)

voltdm_get_voltage() - Gets the current non-auto-compensated voltage : pointer to the voltdm for which current voltage info is needed

API to get the current non-auto-compensated voltage for a voltage domain. Returns 0 in case of error else returns the current voltage.

Definition at line 55 of file voltage.c.

struct voltagedomain* voltdm_lookup ( const char name)
read

Definition at line 417 of file voltage.c.

int voltdm_scale ( struct voltagedomain voltdm,
unsigned long  target_volt 
)

voltdm_scale() - API to scale voltage of a particular voltage domain. : pointer to the voltage domain which is to be scaled. : The target voltage of the voltage domain

This API should be called by the kernel to do the voltage scaling for a particular voltage domain during DVFS.

Definition at line 73 of file voltage.c.