physmap.c: Introduce round_to_page_boundaries()

V.2: Fix missing include of <inttypes.h>.

This is needed for the SPI100 controller in
Picasso. This is because we needed to round
address ranges requested from rphysmap() to
the page boundaries.

BUG=chromium:478356,b:124061017
BRANCH=none
TEST=still builds

Change-Id: I1bdbb0be776c619a49dfb9fcc8e6e82b49d18c1b
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/1635061
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
2 files changed