5/19/2012

How to override Processor Voltage Setting (PVS) in MSM8660/APQ8060 Linux/Anrdroid device

On MSM8660/8260 and APQ8060 devices that support 1.5 GHz Scorpion speed, PVS support is implemented.
This feature enables using different table for Scorpion Voltage levels  (VDDSCx) depending on efuse bit setting.
The tables for PVS are defined in acpuclock-8x60.c in arch/arm/mach-msm/ directory for kernel code.
Three levels are supported.  They are HIGH, MEDIUM, and LOW.

For testing or debugging some issues, there may be a need to disable PVS.
When this is done it defaults to the LOW setting.

Override can be accomplished by modifying one line of code in the function select_freq_plan(void) in the file acpuclock-8x60.c.

The needed modification sets pvs value to zero when acpu_freq_table is picked based on detected pvs value.

Insert a line    

                pvs = 0;       
right before  

switch (pvs) 
in the function mentioned above.

No comments:

Post a Comment