arm: tegratab: Set VALRT.MIN to 3.24V of max17048.
Hyongbin Kim [Mon, 3 Jun 2013 11:02:02 +0000 (20:02 +0900)]
Use voltage low alert when vcell is under 3.24V.

Bug 1245249
Bug 1298560

Change-Id: I91ce7ab800195942abb4b387c9fe12232ad0b29c
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/234972
(cherry picked from commit c9cc7ae7acd556d0e832d2e584d2e534785d3719)
Reviewed-on: http://git-master/r/235253
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/boot/dts/tegra114-tegratab-common.dtsi
arch/arm/mach-tegra/board-tegratab-power.c

index 4cac15f..a545ee7 100644 (file)
                        alert-threshold = <1>;          /* 1% SOC */
                        one-percent-alerts = <1>;
                        valert-max = <5100>;            /* not use */
-                       valert-min = <0>;               /* not use */
+                       valert-min = <3240>;            /* 3.24V */
                        vreset-threshold = <2400>;
                        vreset-disable = <1>;           /* not use */
                        hib-threshold = <48>;           /* 9.984%/hr */
index 1fdc61d..36b7bdf 100644 (file)
@@ -95,7 +95,7 @@ struct max17048_battery_model tegratab_max17048_mdata = {
        .rcomp_seg      = 0x0200,
        .hibernate      = 0x3080,
        .vreset         = 0x3c96,
-       .valert         = 0x00FF,       /* not use */
+       .valert         = 0xA2FF,       /*VALRT.MIN 3.24V, VALRT.MAX 5.1V*/
        .ocvtest        = 55952,
        .data_tbl = {
                0x98, 0x80, 0xB3, 0x50, 0xB7, 0x90, 0xB9, 0x00,