mips: mtmips: add SPL support
authorWeijie Gao <weijie.gao@mediatek.com>
Tue, 21 Apr 2020 07:28:47 +0000 (09:28 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 27 Apr 2020 18:30:12 +0000 (20:30 +0200)
commit7a4b6964b54d5067181db803f68c7472a9d07efa
treeaffcc3ed7942af9635306e9f0c23d8149b9bde44
parent02cd449f0b03a3015577b42fbb4db88606c76c03
mips: mtmips: add SPL support

This patch adds SPL support for mtmips platform. The lowlevel architecture
is split into SPL and the rest parts are built into a memory loadable
u-boot image. Optional SPL_DM and OF_CONTROL are also supported.

The increment of size is very small (< 10 KiB) if SPL_DM and OF_CONTROL are
not enabled and the memory bootable u-boot (u-boot.img) is generated
automatically so there is not need to add a separate config for it.

A lzma compressed payload (u-boot-lzma.img) is also generated and it will
be combined with u-boot-spl.bin to form the unified ROM bootable binary
u-boot-mtmips.bin.

A spl loader is added to support uncompress the payload.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
arch/mips/Kconfig
arch/mips/dts/mt7628-u-boot.dtsi [new file with mode: 0644]
arch/mips/dts/mt7628a.dtsi
arch/mips/mach-mtmips/Kconfig
arch/mips/mach-mtmips/Makefile
arch/mips/mach-mtmips/include/mach/serial.h [new file with mode: 0644]
arch/mips/mach-mtmips/mt7628/Makefile
arch/mips/mach-mtmips/mt7628/serial.c [new file with mode: 0644]
arch/mips/mach-mtmips/spl.c [new file with mode: 0644]