msm: pil: Align max address calculation to 4K

Both iommus and XPUs require that the region mapped or protected
be 4K aligned. Not all images have memory sizes aligned to 4K so
fix the alignment for those images by rounding up the max address
to the next 4K boundary. This should force the region the image
resides in to be 4K aligned.

Change-Id: Ib6d089c8d8b0fb50a9e76d0d6a7b7eacc6765962
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
1 file changed