regulator: palmas; correct PALMAS_SMPS_NUM_VOLTAGES
authorShu Zhang <chazhang@nvidia.com>
Fri, 13 Sep 2013 14:32:59 +0000 (22:32 +0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:45:34 +0000 (13:45 -0700)
commit19965592d16fd8973fcfa179fc2e5227c70e0348
tree602374d2075cc4dfc97a5f46da196e95a4b501f8
parent65d9ea17906f472eff0ece01952abec19636da49
regulator: palmas; correct PALMAS_SMPS_NUM_VOLTAGES

Setting PALMAS_SMPS_NUM_VOLTAGES to 122, original value was 117.

For smps*(except smps10), the vsel reg-value and voltage mapping as
below:

    reg-value       volt (uV) ( Assume RANGE is x1 )
        0               0
        1               500000
        2               500000
        3               500000
        4               500000
        5               500000
        6               500000 (0.49V + 1 * 0.01V) * RANGE
        7               510000 (0.49V + 2 * 0.01V) * RANGE
        8               520000 (0.49V + 3 * 0.01V) * RANGE
        9               530000 (0.49V + 4 * 0.01V) * RANGE
        ....

For max_uV = 3300000, reg-value should be 121, and PALMAS_NUM_VOLTAGES
should be 122.

Bug 1365109
Bug 1366263

Change-Id: I039777b553dbfc0297c9a4da780abc165108e274
Reviewed-on: http://git-master/r/274417
Reviewed-by: Shu Zhang <chazhang@nvidia.com>
Tested-by: Shu Zhang <chazhang@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/regulator/palmas-regulator.c