OSDN Git Service

arm: boot: Add board specific setup code API
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Tue, 3 Nov 2015 13:49:41 +0000 (13:49 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 3 Nov 2015 13:49:41 +0000 (13:49 +0000)
commit10b8ec73e610e017ac2fbaf486fce21eec7061b2
treea756d9ae58f280c373c34dd9db49e07db1560925
parent84e59397797ff2040439058b689adbfef608b879
arm: boot: Add board specific setup code API

Add an API for boards to inject their own preboot software (or
firmware) sequence.

The software then returns to the bootloader via the link register. This
allows boards to do their own little bits of firmware setup without
needed to replace the bootloader completely (which is the requirement
for existing firmware support).

The blob is loaded by a callback if and only if doing a linux boot
(similar to the existing write_secondary support).

Rewrite the comment for the primary boot blob.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-id: 070295644c6ac84696d743913296e8cfefb48c15.1446182614.git.crosthwaite.peter@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/boot.c
include/hw/arm/arm.h