Commit 6ad39425bbc8b6dcade3ecd4883f624e277588c1

Authored by Peng Fan
1 parent 9af06ef99b

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 <Peng.Fan@freescale.com>

Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff

board/freescale/mx6sxsabresd/mx6sxsabresd.c
... ... @@ -708,7 +708,12 @@
708 708 printf("Read Rev ID error!\n");
709 709 return -1;
710 710 }
711   - printf("Found PFUZE100! deviceid 0x%x, revid 0x%x\n", value, rev_id);
  711 + /*
  712 + * PFUZE200: Die version 0001 = PF0200
  713 + * PFUZE100: Die version 0000 = PF0100
  714 + */
  715 + printf("Found %s! deviceid 0x%x, revid 0x%x\n", (value & 0xf) ?
  716 + "PFUZE200" : "PFUZE100", value & 0xf, rev_id);
712 717  
713 718 if (setup_pmic_mode(value & 0xf)) {
714 719 printf("setup pmic mode error!\n");