coreboot-kgpe-d16/src/drivers/elog
Furquan Shaikh e19d9af9ee elog: Use rdev_mmap to find offset of ELOG
In case of elog not being stored in CBMEM, calculate flash offset by
using rdev_mmap instead of assuming that the entire flash is mapped just
below 4GiB. This allows custom mappings of flash to correctly convert
the flash offset to mmap address.

BUG=chrome-os-partner:54186
TEST=Verified behavior on reef. mosys able to read out the elog correctly.

Change-Id: I3eacd2c9266ecc3da1bd45c86ff9d0e8153ca3f2
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/15722
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-07-18 08:12:12 +02:00
..
boot_count.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
elog.c elog: Use rdev_mmap to find offset of ELOG 2016-07-18 08:12:12 +02:00
elog_internal.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
gsmi.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Kconfig tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Makefile.inc