ARM: OMAP5: DRA7xx: support class 0 optimized voltages

DRA752 now uses AVS Class 0 voltages which are voltages in efuse.

This means that we can now use the optimized voltages which are
stored as mV values in efuse and program PMIC accordingly.

This allows us to go with higher OPP as needed in the system without
the need for implementing complex AVS logic.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
Nishanth Menon 2013-05-30 03:19:31 +00:00 committed by Tom Rini
parent 3332b24421
commit 18c9d55ac6
4 changed files with 97 additions and 12 deletions

View file

@ -506,9 +506,20 @@ struct pmic_data {
int (*pmic_write)(u8 sa, u8 reg_addr, u8 reg_data);
};
/**
* struct volts_efuse_data - efuse definition for voltage
* @reg: register address for efuse
* @reg_bits: Number of bits in a register address, mandatory.
*/
struct volts_efuse_data {
u32 reg;
u8 reg_bits;
};
struct volts {
u32 value;
u32 addr;
struct volts_efuse_data efuse;
struct pmic_data *pmic;
};