Fix checksum calculation both in romstage and ramstage.
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 27 Oct 2011 16:42:53 +0000 (18:42 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Fri, 28 Oct 2011 07:09:40 +0000 (09:09 +0200)
commitea5c2b62caec8a2acd5298777b825b799e2b9c15
tree293aa3b0d6c9a986f3a0cd416ce41e9961f55acc
parent113c3497201a28fd58335788da5e206ea8902b90
Fix checksum calculation both in romstage and ramstage.

The earlier fix for CMOS checksums only fixed the function rtc_set_checksum,
which would fix the checksum, but then coreboot would no longer honor the
settings because it assumed the checksum is wrong after this.
This change fixes the remaining functions.

Change-Id: I3f52d074df29fc29ae1d940b3dcec3aa2cfc96a5
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/342
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/pc80/mc146818rtc.c
src/pc80/mc146818rtc_early.c