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>
This commit is contained in:
parent
189909ea76
commit
85227a27fb
|
@ -163,7 +163,8 @@ static void rx6110sa_init(struct device *dev)
|
||||||
* VLF-bit can be cleared.
|
* VLF-bit can be cleared.
|
||||||
*/
|
*/
|
||||||
while (!stopwatch_expired(&sw))
|
while (!stopwatch_expired(&sw))
|
||||||
flags &= ~VLF_BIT;
|
;
|
||||||
|
flags &= ~VLF_BIT;
|
||||||
rx6110sa_write(dev, FLAG_REGISTER, flags);
|
rx6110sa_write(dev, FLAG_REGISTER, flags);
|
||||||
|
|
||||||
/* Before setting the clock stop oscillator. */
|
/* Before setting the clock stop oscillator. */
|
||||||
|
|
Loading…
Reference in New Issue