Print the contents of the INSTAT registers on boot
parent
32b32132d2
commit
47a01543d2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue