Add building and usage instructions for SPL.
Signed-off-by: Ferass El Hafidi <[email protected]>
---
doc/board/amlogic/index.rst | 1 +
doc/board/amlogic/pre-generated-fip.rst | 9 ++++
doc/board/amlogic/spl.rst | 77 +++++++++++++++++++++++
++++++++++
3 files changed, 87 insertions(+)
diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst
index
dcd935224ac0280a77455e3475a610fd81cfb80d..23380ac33f2b06efff7d4741ce2967d75671ca13 100644
--- a/doc/board/amlogic/index.rst
+++ b/doc/board/amlogic/index.rst
@@ -78,6 +78,7 @@ Boot Documentation
boot-flow
pre-generated-fip
+ spl
Board Documentation
-------------------
diff --git a/doc/board/amlogic/pre-generated-fip.rst b/doc/board/
amlogic/pre-generated-fip.rst
index
6a43d776d43f35cbffc7ba9e72bf05dd719f6387..d820bd09115952d4fca2b9e7d7b5a9e30bd11430 100644
--- a/doc/board/amlogic/pre-generated-fip.rst
+++ b/doc/board/amlogic/pre-generated-fip.rst
@@ -98,6 +98,13 @@ The repo also provides the following files used
with GXBB boards:
The repo also supports the open-source 'gxlimg' signing tool that
can be used to sign
U-Boot binaries for GXL/GXM/G12A/G12B/SM1 boards: https://
github.com/repk/gxlimg
+The following binaries can be replaced with open-source implementations:
+
+- bl2.bin (GXBB and GXL only)
+- bl31.img (GXBB, GXL, AXG and G12A only)
+
+Refer to `Experimental U-Boot SPL Support`_ if you wish to replace them.
+
Licensing
---------
@@ -129,3 +136,5 @@ clarified. The current Amlogic distribution
licence is below:
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
+
+.. _`Experimental U-Boot SPL Support`: spl.rst
diff --git a/doc/board/amlogic/spl.rst b/doc/board/amlogic/spl.rst
new file mode 100644
index
0000000000000000000000000000000000000000..39d50e3da87d71f62cec1903c441c334bf7020e8
--- /dev/null
+++ b/doc/board/amlogic/spl.rst
@@ -0,0 +1,77 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+Experimental U-Boot SPL Support
+===============================
+
+There's some experimental support for some Amlogic SoCs, in U-Boot
SPL. It
+replaces the proprietary bl2.bin blob used for DRAM init. Currently
Meson GX
+SoCs (GXBB, GXL) are supported.
+
+A subset of Amlogic boards have SPL enabled. These boards have been
tested and
+known to work to an extent.