ARM: add a machine number mechanism for boarddata
Multi machine barebox builds have to pass information on which
board we are running on via boarddata. Usually this will be a
pointer to a device tree. Some boards might not have a device
tree available though because they are either not ported over
to device tree yet, or are running in some limited first state
environment which does not offer enough space for a device
tree. For these cases this patch adds a mechanism to embed a
machine number into a struct type along with a magic number.
This makes it possible to check for a specific machine
later during regular runtime.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 5c29d36 commit 84d28cec7f49b9dabf14892323a6ea421c470fea
@Sascha Hauer Sascha Hauer authored on 2 Jul 2015
Showing 2 changed files
View
arch/arm/cpu/start.c
View
arch/arm/include/asm/barebox-arm.h