drivers/xpowers/axp209: Print a message when probing fails

Probing is done by reading the ID register and comparing it to a known
value. When there is a mismatch, print an error.

Change-Id: I36fb1fe9b56e97660556dcb27be25bfe5129ad73
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/8433
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
Alexandru Gagniuc 2015-02-13 17:10:04 -06:00
parent a0edc78523
commit 23804fc6e5
1 changed files with 3 additions and 1 deletions

View File

@ -69,8 +69,10 @@ enum cb_err axp209_init(u8 bus)
return CB_ERR; return CB_ERR;
/* From U-Boot code : Low 4 bits is chip version */ /* From U-Boot code : Low 4 bits is chip version */
if ((id & 0x0f) != 0x1) if ((id & 0x0f) != 0x1) {
printk(BIOS_ERR, "[axp209] ID 0x%x does not match\n", id);
return CB_ERR; return CB_ERR;
}
return CB_SUCCESS; return CB_SUCCESS;
} }