hatch: Setup flash dynamically using flash size from coreboot tables

This change sets up memory mapped flash dynamically using flash size
from coreboot tables. It allows supporting hatch variants using 16 and
32 MiB flash chips.

BUG=b:129464811
BRANCH=None
TEST=Hatch still boots with 32MiB flash.

Change-Id: I4bb9ad27ceb7db91806f2f45d6438a78a98d9194
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1579227
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
1 file changed