diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2015-02-13 17:10:04 -0600 |
---|---|---|
committer | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2015-02-14 19:03:04 +0100 |
commit | 23804fc6e5a1ae4126a81899f1007f2ead4b7bf8 (patch) | |
tree | 89b2100390022dff4ae2fdb23d12484b48df28be /src | |
parent | a0edc78523245d30212c17cdd8b7645c56e185bb (diff) | |
download | coreboot-23804fc6e5a1ae4126a81899f1007f2ead4b7bf8.tar.xz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/xpowers/axp209/axp209.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/xpowers/axp209/axp209.c b/src/drivers/xpowers/axp209/axp209.c index 8aafd48ef0..ae2e3da40e 100644 --- a/src/drivers/xpowers/axp209/axp209.c +++ b/src/drivers/xpowers/axp209/axp209.c @@ -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; } |