arm: Clarify memory layout calculation
The memory calculations used are all hardcoded into three different
files, start-pbl.c, uncompress.c and start.c. To make this more readable
and reliable, this patch gathers these information in barebox-arm.h with
static inline functions for the calculation of the memory offsets.

This patch also adds proper handling of different barebox/board data
sizes. Currently only 1MB+Alignment of RAM is reserved for Barebox and
board data. This could be too small for bigger devicetrees and barebox.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 899b382 commit 65071bd0910ef109c86b9645c570a6ceed7de534
@Markus Pargmann Markus Pargmann authored on 8 Dec 2015
Sascha Hauer committed on 10 Dec 2015
Showing 4 changed files
View
arch/arm/cpu/start-pbl.c
View
arch/arm/cpu/start.c
View
arch/arm/cpu/uncompress.c
View
arch/arm/include/asm/barebox-arm.h