aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-02-06 03:17:28 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-02-28 01:23:48 +0000
commitc16958e19463a59303f90c49e458bfa68057d1d3 (patch)
tree33b3bd0ac68ebe7901c2274d93eea9332189fcfe /package/boot
parentaa94e34c1d7ce40684ec01b8ddc056548ecd34f0 (diff)
downloadupstream-c16958e19463a59303f90c49e458bfa68057d1d3.tar.gz
upstream-c16958e19463a59303f90c49e458bfa68057d1d3.tar.bz2
upstream-c16958e19463a59303f90c49e458bfa68057d1d3.zip
arm-trusted-firmware-mediatek: add patch for Fidelix SPI NAND
The Linksys E8450 aka. Belkin RT3200 comes with a rather fresh brand of SPI NAND storage. Add support for it to the nandx driver in arm-trusted-firmware-mediatek, so we can boot from that chip. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/arm-trusted-firmware-mediatek/patches/010-nandx-add-fidelix-spi-nand.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/boot/arm-trusted-firmware-mediatek/patches/010-nandx-add-fidelix-spi-nand.patch b/package/boot/arm-trusted-firmware-mediatek/patches/010-nandx-add-fidelix-spi-nand.patch
new file mode 100644
index 0000000000..d0a8f7616a
--- /dev/null
+++ b/package/boot/arm-trusted-firmware-mediatek/patches/010-nandx-add-fidelix-spi-nand.patch
@@ -0,0 +1,24 @@
+--- a/plat/mediatek/common/drivers/nandx/core/nand/device_spi.c
++++ b/plat/mediatek/common/drivers/nandx/core/nand/device_spi.c
+@@ -150,6 +150,21 @@ static struct device_spi spi_nand[] = {
+ &spi_extend_cmds, 0xff, 0xff
+ },
+ {
++ NAND_DEVICE("FM35X1GA",
++ NAND_PACK_ID(0xe5, 0x71, 0, 0, 0, 0, 0, 0),
++ 2, 0, 3, 3,
++ 1, 1, 1, 1024, KB(128), KB(2), 64, 1,
++ &spi_cmds, &spi_addressing, &spi_status[0],
++ &spi_endurance, &spi_array_timing),
++ {
++ NAND_SPI_PROTECT(0xa0, 1, 2, 6),
++ NAND_SPI_CONFIG(0xb0, 4, 6, 1),
++ NAND_SPI_STATUS(0xc0, 4, 5),
++ NAND_SPI_CHARACTER(0xff, 0xff, 0xff, 0xff)
++ },
++ &spi_extend_cmds, 0xff, 0xff
++ },
++ {
+ NAND_DEVICE("NO-DEVICE",
+ NAND_PACK_ID(0, 0, 0, 0, 0, 0, 0, 0), 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 1,