HACK: exynos5250: config/dtsi: Enable battery support on snow
authorSimon Glass <sjg@chromium.org>
Fri, 6 Jul 2012 02:35:25 +0000 (19:35 -0700)
committerGerrit <chrome-bot@google.com>
Mon, 9 Jul 2012 21:42:10 +0000 (14:42 -0700)
This enables the battery on snow so that you can see the battery status
on the gui.

BUG=none
TEST=manual:
boot on snow; see that the battery gauge comes up after a few seconds

Change-Id: I4363674eca57d16201b4ddedd49a21fa44dd17de
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/26835
Commit-Ready: Grant Grundler <grundler@chromium.org>
Reviewed-by: Grant Grundler <grundler@chromium.org>
Tested-by: Grant Grundler <grundler@chromium.org>
arch/arm/boot/dts/cros5250-common.dtsi
chromeos/config/armel/chromeos-exynos5.flavour.config

index e5559f9..826c149 100644 (file)
                        interrupt-parent = <&wakeup_eint>;
                 };
 
+               battery: sbs-battery@b {
+                       compatible = "sbs,sbs-battery";
+                       reg = <0xb>;
+                       sbs,poll-retry-count = <1>;
+               };
                // i2c4 hsic hub @0x8, eeprom @0x50, batt @0xb
        };
 
index b05bc7c..ab3d514 100644 (file)
@@ -331,3 +331,5 @@ CONFIG_WATCHDOG_CORE=y
 # CONFIG_WATCHDOG_NOWAYOUT is not set
 # CONFIG_XFRM_USER is not set
 CONFIG_XZ_DEC_X86=y
+
+CONFIG_BATTERY_SBS=y