From 47a01543d2b222692f356121c6510213bacf7c7f Mon Sep 17 00:00:00 2001 From: "Martin T. H. Sandsmark" Date: Wed, 28 Sep 2016 11:58:45 +0200 Subject: [PATCH] Print the contents of the INSTAT registers on boot --- board/freescale/common/pfuze.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c index 69afa83562..9724c086f2 100644 --- a/board/freescale/common/pfuze.c +++ b/board/freescale/common/pfuze.c @@ -90,6 +90,15 @@ struct pmic *pfuze_common_init(unsigned char i2cbus) reg |= SW1xCONF_DVSSPEED_4US; pmic_reg_write(p, PFUZE100_SW1CCONF, reg); + pmic_reg_read(p, PFUZE100_INTSTAT0, ®); + printf("INSTAT0: %x\n", reg); + pmic_reg_read(p, PFUZE100_INTSTAT1, ®); + printf("INSTAT1: %x\n", reg); + pmic_reg_read(p, PFUZE100_INTSTAT3, ®); + printf("INSTAT3: %x\n", reg); + pmic_reg_read(p, PFUZE100_INTSTAT4, ®); + printf("INSTAT4: %x\n", reg); + return p; } #endif