Patrick Rudolph 9f3e734e5c libpayload: Improve rtc functions
On Lenovo T500 the RTC readings where wrong, as RTC has
different encodings, depending on the statusB register.

Support BCD vs binary RTC format and AM/PM vs 24h RTC format.

Fixes wrong date and time on Lenovo 500.

Change-Id: Id773c33e228973e190a7e14c3d11979678b1a619
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/18498
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2020-03-09 08:14:04 +00:00
..
2020-02-26 17:06:40 +00:00
2015-12-16 19:00:53 +01:00
2019-03-04 13:25:01 +00:00
2020-03-09 08:14:04 +00:00
2011-07-07 22:29:53 +02:00
2015-10-20 16:50:25 +02:00
2015-09-10 20:11:33 +00:00
2017-08-21 16:53:20 +00:00