coreboot/src
Julius Werner 90d0acbe9a as3277: Fix month-off-by-one error for RTC driver
The AS3277 RTC code seems to closely follow the corresponding Linux
driver. Unfortunately, while coreboot (and even other parts of Linux,
like mktime()) directly follows the standard IBM PC RTC time
representation (except for the BCD part), Linux' struct rtc_time decided
to use 0-based (instead of 1-based) months instead.

This patch removes the faulty month offset that was copied into our
driver so that we will generate correct timestamps again.

BRANCH=nyan
BUG=chrome-os-partner:34108
TEST=firmware_EventLog (pre-release version) gets further than before
(and then craps up on unrelated problems with suspend/resume events).

Change-Id: Ica221a8bcfd7c1c6cd7ba382d760b586d511e3a3
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 5b55c3f5bbecc776a71338256b910aecccac1e04
Original-Change-Id: I163fa4778ec534cd9e6f92a6b6dc55e9871a6a82
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/238122
Original-Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/9723
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-04-17 09:20:54 +02:00
..
arch arm: allow custom stage entry code 2015-04-17 09:20:46 +02:00
console Add console wrapper for UART driver 2015-04-14 21:25:34 +02:00
cpu CBFS: Automate ROM image layout and remove hardcoded offsets 2015-04-14 09:01:27 +02:00
device cbfs: correct types used for accessing files 2015-04-01 22:51:10 +02:00
drivers as3277: Fix month-off-by-one error for RTC driver 2015-04-17 09:20:54 +02:00
ec chromeec: Fix printf formatting warning 2015-04-14 09:01:03 +02:00
include Add console wrapper for UART driver 2015-04-14 21:25:34 +02:00
lib arm: Fix checkstack() to use correct stack size 2015-04-14 09:04:04 +02:00
mainboard rk3288: Add a config variable hack to skip display init 2015-04-17 09:20:42 +02:00
northbridge northbridge/amd/agesa/familyXY: Make NULL device op explicit 2015-04-09 19:34:22 +02:00
soc bg4cd: define custom romstage entry 2015-04-17 09:20:50 +02:00
southbridge southbridge/intel/fsp_rangeley/ : Spellcheck + Formatting 2015-04-10 17:57:11 +02:00
superio kconfig: drop intermittend forwarder files 2015-04-07 17:40:28 +02:00
vendorcode timestamps: You can never have enough of them! 2015-04-14 09:03:40 +02:00
Kconfig Kconfig: Fix incorrect CONFIG_STACK_SIZE values for X86 and ARM64 2015-04-15 00:22:13 +02:00