mpc85xx: add SPI kernel loader for TP-Link TL-WDR4900 v1
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 27 Mar 2022 18:57:01 +0000 (20:57 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 14 Oct 2022 21:15:12 +0000 (23:15 +0200)
commitf7a43e46065609910bdd2fa6f97ffa1deeda222b
tree33730b5a09fee04e3d66b03917c40c5f2699258c
parentc1fcca50ba924fcb2b51a03a8dbf68c2fe7ae60c
mpc85xx: add SPI kernel loader for TP-Link TL-WDR4900 v1

Similar to the lzma-loader on our MIPS targets, the spi-loader acts as
a second-stage loader that will then load and start the actual kernel.
As the TL-WDR4900 uses SPI-NOR and the P1010 family does not have support
for memory mapping of this type of flash, this loader needs to contain a
basic driver for the FSL ESPI controller.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
(cherry picked from commit a296055b82fbb20457273492069ce9d62009e2a1)
22 files changed:
target/linux/mpc85xx/image/spi-loader/.gitignore [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/Makefile [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/config/tplink_tl-wdr4900-v1.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/config/tplink_tl-wdr4900-v1.mk [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/drivers/serial/ns16550.c [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/drivers/spi/fsl_espi.c [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/drivers/spi/spi-nor.c [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/head.S [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/image.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/init.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/io.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/ppc_asm.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/serial.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/spi-nor.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/spi.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/stdio.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/string.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/include/types.h [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/loader.c [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/loader.lds [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/stdio.c [new file with mode: 0644]
target/linux/mpc85xx/image/spi-loader/string.S [new file with mode: 0644]