提交 5a77358c 编写于 作者: Ł Łukasz Majewski 提交者: Anatolij Gustschin

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: NLukasz Majewski <l.majewski@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
上级 7dcda99d
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <power/max8997_pmic.h> #include <power/max8997_pmic.h>
#include <libtizen.h> #include <libtizen.h>
#include <power/max8997_muic.h> #include <power/max8997_muic.h>
#include <power/max17042_fg.h>
#include "setup.h" #include "setup.h"
...@@ -242,6 +243,7 @@ int power_init_board(void) ...@@ -242,6 +243,7 @@ int power_init_board(void)
ret = pmic_init(I2C_5); ret = pmic_init(I2C_5);
ret |= pmic_init_max8997(); ret |= pmic_init_max8997();
ret |= power_fg_init(I2C_9);
ret |= power_muic_init(I2C_5); ret |= power_muic_init(I2C_5);
if (ret) if (ret)
return ret; return ret;
......
...@@ -238,6 +238,8 @@ ...@@ -238,6 +238,8 @@
#define CONFIG_PMIC_I2C #define CONFIG_PMIC_I2C
#define CONFIG_PMIC_MAX8997 #define CONFIG_PMIC_MAX8997
#define CONFIG_POWER_FG
#define CONFIG_POWER_FG_MAX17042
#define CONFIG_POWER_MUIC #define CONFIG_POWER_MUIC
#define CONFIG_POWER_MUIC_MAX8997 #define CONFIG_POWER_MUIC_MAX8997
#define CONFIG_USB_GADGET #define CONFIG_USB_GADGET
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册