From: Ɓukasz Majewski Date: Tue, 13 Nov 2012 03:22:08 +0000 (+0000) Subject: arm:trats:pmic: Enable battery support at Samsung's TRATS board X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=61365ffc2efc52717af1b4c38a71b4a3d8c77149;p=u-boot.git arm:trats:pmic: Enable battery support at Samsung's TRATS board Support for TRATS battery has been added. It is treated as a "normal" power related device and thereof controlled by pmic/power subsystem. 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 6c2f199c59..94bf5c0de1 100644 --- a/board/samsung/trats/trats.c +++ b/board/samsung/trats/trats.c @@ -39,6 +39,7 @@ #include #include #include +#include #include #include "setup.h" @@ -245,6 +246,7 @@ int power_init_board(void) ret |= pmic_init_max8997(); ret |= power_fg_init(I2C_9); ret |= power_muic_init(I2C_5); + ret |= power_bat_init(0); if (ret) return ret; diff --git a/include/configs/trats.h b/include/configs/trats.h index 0bc1f3abc0..2fdc597c00 100644 --- a/include/configs/trats.h +++ b/include/configs/trats.h @@ -242,6 +242,8 @@ #define CONFIG_POWER_FG_MAX17042 #define CONFIG_POWER_MUIC #define CONFIG_POWER_MUIC_MAX8997 +#define CONFIG_POWER_BATTERY +#define CONFIG_POWER_BATTERY_TRATS #define CONFIG_USB_GADGET #define CONFIG_USB_GADGET_S3C_UDC_OTG #define CONFIG_USB_GADGET_DUALSPEED