From 6ad39425bbc8b6dcade3ecd4883f624e277588c1 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Sun, 30 Nov 2014 10:47:11 +0800 Subject: [PATCH] MLK-9933 imx:mx6sxsabresd correct info for PFUZE We use PFUZE200 for SX SDB RevB board and PFUZE100 for SX SDB RevA board. Show correct msg according DeviceID, since PFUZE200 and PFUZE100 have different DeviceID. PFUZE200's id is 1, while PFUZE100's is 0. Signed-off-by: Peng Fan --- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c index cfa0898..0d033f3 100644 --- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c +++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c @@ -708,7 +708,12 @@ static int setup_pmic_voltages(void) printf("Read Rev ID error!\n"); return -1; } - printf("Found PFUZE100! deviceid 0x%x, revid 0x%x\n", value, rev_id); + /* + * PFUZE200: Die version 0001 = PF0200 + * PFUZE100: Die version 0000 = PF0100 + */ + printf("Found %s! deviceid 0x%x, revid 0x%x\n", (value & 0xf) ? + "PFUZE200" : "PFUZE100", value & 0xf, rev_id); if (setup_pmic_mode(value & 0xf)) { printf("setup pmic mode error!\n"); -- 1.9.1