aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-lantiq/patches/0013-sf-macronix-add-support-for-4-byte-address-mode.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-04-12 21:21:14 +0000
committerJohn Crispin <blogic@openwrt.org>2014-04-12 21:21:14 +0000
commit9c2f5aeffa9ad2ac4d7313cda94ac03ccf607c47 (patch)
treee35db02eb2bdf67a2a6076563158753649f63ad9 /package/boot/uboot-lantiq/patches/0013-sf-macronix-add-support-for-4-byte-address-mode.patch
parent80894a6f0e1f089bb78ac1457c8a3f0e0ccfc205 (diff)
downloadmaster-187ad058-9c2f5aeffa9ad2ac4d7313cda94ac03ccf607c47.tar.gz
master-187ad058-9c2f5aeffa9ad2ac4d7313cda94ac03ccf607c47.tar.bz2
master-187ad058-9c2f5aeffa9ad2ac4d7313cda94ac03ccf607c47.zip
uboot-lantiq: update to v2013.10
Patches created from tree: git@github.com:danielschwierzeck/u-boot-lantiq.git v2013.10..u-boot-lantiq-v2013.10-openwrt4 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40482 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/boot/uboot-lantiq/patches/0013-sf-macronix-add-support-for-4-byte-address-mode.patch')
-rw-r--r--package/boot/uboot-lantiq/patches/0013-sf-macronix-add-support-for-4-byte-address-mode.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/package/boot/uboot-lantiq/patches/0013-sf-macronix-add-support-for-4-byte-address-mode.patch b/package/boot/uboot-lantiq/patches/0013-sf-macronix-add-support-for-4-byte-address-mode.patch
deleted file mode 100644
index 70015c9130..0000000000
--- a/package/boot/uboot-lantiq/patches/0013-sf-macronix-add-support-for-4-byte-address-mode.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 207662a9270cc542709fbab0d25fbc361b39748c Mon Sep 17 00:00:00 2001
-From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-Date: Wed, 7 Nov 2012 15:13:49 +0100
-Subject: sf: macronix: add support for 4-byte address mode
-
-Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
---- a/drivers/mtd/spi/macronix.c
-+++ b/drivers/mtd/spi/macronix.c
-@@ -35,6 +35,8 @@
-
- #include "spi_flash_internal.h"
-
-+#define MX25XX_EN4B 0xb7 /* Enter 4-byte mode */
-+
- struct macronix_spi_flash_params {
- u16 idcode;
- u16 nr_blocks;
-@@ -79,6 +81,13 @@ static const struct macronix_spi_flash_p
- },
- };
-
-+static __maybe_unused int macronix_set_4byte_mode(struct spi_flash *flash)
-+{
-+ struct spi_slave *spi = flash->spi;
-+
-+ return spi_flash_cmd(spi, MX25XX_EN4B, NULL, 0);
-+}
-+
- int spi_flash_probe_macronix(struct spi_flash *flash, u8 *idcode)
- {
- const struct macronix_spi_flash_params *params;
-@@ -106,6 +115,11 @@ int spi_flash_probe_macronix(struct spi_
- flash->sector_size = 256 * 16 * 16;
- flash->size = flash->sector_size * params->nr_blocks;
-
-+#ifdef CONFIG_SPI_FLASH_4BYTE_MODE
-+ if (flash->size > (1 << 24))
-+ flash->set_4byte_mode = macronix_set_4byte_mode;
-+#endif
-+
- /* Clear BP# bits for read-only flash */
- spi_flash_cmd_write_status(flash, 0);
-