diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2017-08-07 08:59:13 +0200 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2017-08-08 12:55:47 +0000 |
commit | 85227a27fb448a46933974e9670149c6f89bffcf (patch) | |
tree | 1108ac2be7f0e034ad183c048068d4b05613b30d /src/drivers/i2c/rx6110sa | |
parent | 189909ea76681dfea0018d60c2e4fe2e785c9421 (diff) |
rx6110sa: Make sure that VLF bit will be cleared
Ensure that the VLF bit will be cleared after a power loss event even if
the stopwatch has expired before the code to clear the bit is reached.
Change-Id: Ib2cfdabf4cd4df834395d6a102c6ae70568e71db
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/20893
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Diffstat (limited to 'src/drivers/i2c/rx6110sa')
-rw-r--r-- | src/drivers/i2c/rx6110sa/rx6110sa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/i2c/rx6110sa/rx6110sa.c b/src/drivers/i2c/rx6110sa/rx6110sa.c index 761d83d810..2c62f230bd 100644 --- a/src/drivers/i2c/rx6110sa/rx6110sa.c +++ b/src/drivers/i2c/rx6110sa/rx6110sa.c @@ -163,7 +163,8 @@ static void rx6110sa_init(struct device *dev) * VLF-bit can be cleared. */ while (!stopwatch_expired(&sw)) - flags &= ~VLF_BIT; + ; + flags &= ~VLF_BIT; rx6110sa_write(dev, FLAG_REGISTER, flags); /* Before setting the clock stop oscillator. */ |