From: Ɓukasz Majewski Date: Tue, 13 Nov 2012 03:22:07 +0000 (+0000) Subject: arm:trats:pmic: Enable fuel-gauge (MAX17042) at Samsung's TRATS board X-Git-Tag: v2013.01-rc2~140^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a77358c4b870a58ed68f5fcff32534c47f38b19;p=u-boot arm:trats:pmic: Enable fuel-gauge (MAX17042) at Samsung's TRATS board FG IC built into the MAX8997 device (compliant to MAX17042) is enabled at TRATS. Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Cc: Minkyu Kang --- diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c index 2359a99fc4..6c2f199c59 100644 --- a/board/samsung/trats/trats.c +++ b/board/samsung/trats/trats.c @@ -39,6 +39,7 @@ #include #include #include +#include #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; diff --git a/include/configs/trats.h b/include/configs/trats.h index 74c4a23773..0bc1f3abc0 100644 --- a/include/configs/trats.h +++ b/include/configs/trats.h @@ -238,6 +238,8 @@ #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