]> git.sur5r.net Git - u-boot/commitdiff
arm:trats:pmic: Enable fuel-gauge (MAX17042) at Samsung's TRATS board
authorŁukasz Majewski <l.majewski@samsung.com>
Tue, 13 Nov 2012 03:22:07 +0000 (03:22 +0000)
committerAnatolij Gustschin <agust@denx.de>
Wed, 14 Nov 2012 10:21:11 +0000 (11:21 +0100)
FG IC built into the MAX8997 device (compliant to MAX17042) is enabled
at TRATS.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/trats/trats.c
include/configs/trats.h

index 2359a99fc4eceb0540cbf636fcac85a51081684a..6c2f199c598902359854e99063aa257d308411b9 100644 (file)
@@ -39,6 +39,7 @@
 #include <power/max8997_pmic.h>
 #include <libtizen.h>
 #include <power/max8997_muic.h>
+#include <power/max17042_fg.h>
 
 #include "setup.h"
 
@@ -242,6 +243,7 @@ int power_init_board(void)
 
        ret = pmic_init(I2C_5);
        ret |= pmic_init_max8997();
+       ret |= power_fg_init(I2C_9);
        ret |= power_muic_init(I2C_5);
        if (ret)
                return ret;
index 74c4a237734f903127221fb2d779319cc35be94f..0bc1f3abc0c5fc0d14075286c3c723048433d9e6 100644 (file)
 #define CONFIG_PMIC_I2C
 #define CONFIG_PMIC_MAX8997
 
+#define CONFIG_POWER_FG
+#define CONFIG_POWER_FG_MAX17042
 #define CONFIG_POWER_MUIC
 #define CONFIG_POWER_MUIC_MAX8997
 #define CONFIG_USB_GADGET