Patchwork [U-Boot,13/16] arm:trats:pmic: Enable fuel-gauge (MAX17042) at Samsung's TRATS board

login
register
mail settings
Submitter Łukasz Majewski
Date Sept. 14, 2012, 3:40 p.m.
Message ID <1347637215-4830-14-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/183959/
State Superseded
Delegated to: Minkyu Kang
Headers show

Comments

Łukasz Majewski - Sept. 14, 2012, 3:40 p.m.
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 |    2 ++
 include/configs/trats.h     |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)
Tom Rini - Sept. 14, 2012, 5:26 p.m.
On Fri, Sep 14, 2012 at 05:40:12PM +0200, Lukasz Majewski wrote:

> FG IC built into the MAX8997 device (compliant to MAX17042) is enabled
> at TRATS.
[snip]
> +#define CONFIG_POWER_FG
> +#define CONFIG_POWER_FG_MAX17042
>  #define CONFIG_POWER_MUIC
>  #define CONFIG_POWER_MUIC_MAX8997
> +
> +
>  #define CONFIG_USB_GADGET

Double space? :)
Lukasz Majewski - Sept. 17, 2012, 8:56 p.m.
Hi Tom,


> On Fri, Sep 14, 2012 at 05:40:12PM +0200, Lukasz Majewski wrote:
> 
> > FG IC built into the MAX8997 device (compliant to MAX17042) is
> > enabled at TRATS.
> [snip]
> > +#define CONFIG_POWER_FG
> > +#define CONFIG_POWER_FG_MAX17042
> >  #define CONFIG_POWER_MUIC
> >  #define CONFIG_POWER_MUIC_MAX8997
> > +
> > +
> >  #define CONFIG_USB_GADGET
> 
> Double space? :)
> 

Will be fixed :-)

Regards,
Lukasz

Patch

diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index c729fb8..6462b30 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -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"
 
@@ -244,6 +245,7 @@  int power_board_init(void)
 	pmic_init(I2C_5);
 #endif
 	pmic_init_max8997();
+	power_fg_init(I2C_9);
 	power_muic_init(I2C_5);
 	return 0;
 }
diff --git a/include/configs/trats.h b/include/configs/trats.h
index ad79416..297bff6 100644
--- a/include/configs/trats.h
+++ b/include/configs/trats.h
@@ -260,8 +260,12 @@ 
 #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
 #define CONFIG_USB_GADGET_S3C_UDC_OTG
 #define CONFIG_USB_GADGET_DUALSPEED