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:
parent
a0edc78523
commit
23804fc6e5
|
@ -69,8 +69,10 @@ enum cb_err axp209_init(u8 bus)
|
|||
return CB_ERR;
|
||||
|
||||
/* 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_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue