Patchwork [U-Boot,v7,15/26] arm:trats:pmic: Enable MUIC (MAX8997) at Samsung's TRATS board

login
register
mail settings
Submitter Łukasz Majewski
Date Nov. 13, 2012, 1:22 p.m.
Message ID <1352812937-15998-16-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/198658/
State Accepted
Delegated to: Anatolij Gustschin
Headers show

Comments

Łukasz Majewski - Nov. 13, 2012, 1:22 p.m.
MUIC IC built into the MAX8997 device 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>

---
Changes for v2:
- None
Changes for v3:
- None
Changes for v4:
- None
Changes for v5:
- None
Changes for v6:
- None
Changes for v7:
- Check return value of power_muic_init() function
---
 board/samsung/trats/trats.c |    3 ++-
 include/configs/trats.h     |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)

Patch

diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index ebbc7ab..2359a99 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -38,6 +38,7 @@ 
 #include <usb/s3c_udc.h>
 #include <power/max8997_pmic.h>
 #include <libtizen.h>
+#include <power/max8997_muic.h>
 
 #include "setup.h"
 
@@ -241,7 +242,7 @@  int power_init_board(void)
 
 	ret = pmic_init(I2C_5);
 	ret |= pmic_init_max8997();
-
+	ret |= power_muic_init(I2C_5);
 	if (ret)
 		return ret;
 
diff --git a/include/configs/trats.h b/include/configs/trats.h
index d7808aa..74c4a23 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_MUIC
+#define CONFIG_POWER_MUIC_MAX8997
 #define CONFIG_USB_GADGET
 #define CONFIG_USB_GADGET_S3C_UDC_OTG
 #define CONFIG_USB_GADGET_DUALSPEED