All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v4] imx: mx6sabre: pfuze: Add clear print for pfuze200
@ 2014-09-15  7:17 Ye.Li
  0 siblings, 0 replies; only message in thread
From: Ye.Li @ 2014-09-15  7:17 UTC (permalink / raw)
  To: u-boot

Add clear print log to show pfuze200 or pfuze100 found on mx6 sabre
boards.

Signed-off-by: Ye.Li <B37916@freescale.com>
---
Changes since v1:
- None

Changes since v2:
- None

Changes since v3:
- Separate the patch from patch set
- Add the clear print to factorized pfuze function

 board/freescale/common/pfuze.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c
index 4398170..cf92c38 100644
--- a/board/freescale/common/pfuze.c
+++ b/board/freescale/common/pfuze.c
@@ -24,7 +24,8 @@ struct pmic * pfuze_common_init(unsigned char i2cbus)
 		return NULL;
 
 	pmic_reg_read(p, PFUZE100_DEVICEID, &reg);
-	printf("PMIC:  PFUZE100 ID=0x%02x\n", reg);
+	printf("PMIC:  PFUZE%s ID=0x%02x\n",
+		((reg & 0xf) == 0) ? "100" : "200", reg);
 
 	/* Set SW1AB stanby volage to 0.975V */
 	pmic_reg_read(p, PFUZE100_SW1ABSTBY, &reg);
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-15  7:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-15  7:17 [U-Boot] [PATCH v4] imx: mx6sabre: pfuze: Add clear print for pfuze200 Ye.Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.