msm: cpr: Add separate Vmin, Vmax for nominal and turbo frequencies

To have maximum power savings it is important to have separate
Vmin and Vmax defined for the nominal and turbo frequency ranges.

Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
(cherry picked from commit db64ae9cc896f239acf783a6291e0680dfeebd3c)

Change-Id: Ibb93584b85454e667517a28439634e1715a61315
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
msm: cpr: Adjust the expanded target quot equation

As per the CPR characterization data on the 8625, the expanded
quot equation should use the 600 as the offset to calculate the
target quot.

Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
(cherry picked from commit 7f311170857792213cdd91e77268ae9c5a2d62f5)

Change-Id: Ie0c3a9bd833995dcab616b5f209e03a8014f0ccb
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
msm: cpr: Update the dynamic quot calculation logic

Use 0.5v as multiplier instead of the 0.9v while deriving
the new quot. This will help us in the getting the
higher target quot with good functional stability.

Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
(cherry picked from commit 7565900a7001479e5501e29ced9c5b86a7139e32)

Change-Id: I348bb6b0d8b54dbdb2e1dbde1ae4f7aff99c969a
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
msm: cpr: Tweak quot equation for better accuracy

The quot calculation can be made more accurate by doing
division last.

Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
(cherry picked from commit 549c7220ba08c4c510bc47d2ce1a6d7353c659d6)

Change-Id: Ice5d354796dad409b0e10d1f8fbcdee585eae90d
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: cpr: Add software margin to the error steps

As per chip characterization recommendation, add a step
to up error steps to increase system stability and deduct
2 steps from down error steps to decrease chances of getting
closer to the system level Vmin, thereby improving stability

Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
(cherry picked from commit 210c2f356e57aa284311446f43279704c9cfd8ad)

Change-Id: I2aade627f341162143cbdc3af01cd0d0e2fae356
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: cpr: Update the scaling factor and Vmin

As per test results, update the values of quot scaling
factor and Vmin of Turbo and Nominal frequencies

Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
(cherry picked from commit ddd521c7478e3d59883b4636505d3bad7a5cb328)

Change-Id: Ifa45d73ca6802b8e9e687df70370c9110bdae04d
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: 8x25: Add Raw ID for 1.4GHz 8125

Add Raw ID for Edge only SoC version

Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
(cherry picked from commit 5b700f3b98b36f445a6f85e6b852d05f11f043ee)

Change-Id: I5c6605dda26b7503661480abcd8f402c495d0c71
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>