diff options
author | Roberto Vargas <roberto.vargas@arm.com> | 2017-09-26 12:53:01 +0100 |
---|---|---|
committer | Roberto Vargas <roberto.vargas@arm.com> | 2017-10-24 14:04:41 +0100 |
commit | 01f62b6d0d90a236cbfdf385aab7ec2ac11f2e65 (patch) | |
tree | 573a4998620b283963ecd60536df569f0b988759 /docs | |
parent | 3b39efa49d9949c80b6e76b99829f84619b46110 (diff) | |
download | platform_external_arm-trusted-firmware-01f62b6d0d90a236cbfdf385aab7ec2ac11f2e65.tar.gz platform_external_arm-trusted-firmware-01f62b6d0d90a236cbfdf385aab7ec2ac11f2e65.tar.bz2 platform_external_arm-trusted-firmware-01f62b6d0d90a236cbfdf385aab7ec2ac11f2e65.zip |
Add platform hooks for boot redundancy support
These hooks are intended to allow one platform to try load
images from alternative places. There is a hook to initialize
the sequence of boot locations and a hook to pass to the next
sequence.
Change-Id: Ia0f84c415208dc4fa4f9d060d58476db23efa5b2
Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/porting-guide.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/porting-guide.rst b/docs/porting-guide.rst index 6352bb950..f0a8aaf30 100644 --- a/docs/porting-guide.rst +++ b/docs/porting-guide.rst @@ -1596,6 +1596,34 @@ BL2 is responsible for loading the normal world BL33 image (e.g. UEFI). This function isn't needed if either ``PRELOADED_BL33_BASE`` or ``EL3_PAYLOAD_BASE`` build options are used. +Function : bl2\_plat\_preload\_setup [optional] +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + Argument : void + Return : void + +This optional function performs any BL2 platform initialization +required before image loading, that is not done later in +bl2\_platform\_setup(). Specifically, if support for multiple +boot sources is required, it initializes the boot sequence used by +plat\_try\_next\_boot\_source(). + +Function : plat\_try\_next\_boot\_source() [optional] +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + Argument : void + Return : int + +This optional function passes to the next boot source in the redundancy +sequence. + +This function moves the current boot redundancy source to the next +element in the boot sequence. If there are no more boot sources then it +must return 0, otherwise it must return 1. The default implementation +of this always returns 0. + FWU Boot Loader Stage 2 (BL2U) ------------------------------ |