diff options
author | John Crispin <blogic@openwrt.org> | 2014-04-12 21:21:14 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-04-12 21:21:14 +0000 |
commit | 9c2f5aeffa9ad2ac4d7313cda94ac03ccf607c47 (patch) | |
tree | e35db02eb2bdf67a2a6076563158753649f63ad9 /package/boot/uboot-lantiq/patches/0007-sf-eon-use-16-bit-ID-for-comparison.patch | |
parent | 80894a6f0e1f089bb78ac1457c8a3f0e0ccfc205 (diff) | |
download | master-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/0007-sf-eon-use-16-bit-ID-for-comparison.patch')
-rw-r--r-- | package/boot/uboot-lantiq/patches/0007-sf-eon-use-16-bit-ID-for-comparison.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/package/boot/uboot-lantiq/patches/0007-sf-eon-use-16-bit-ID-for-comparison.patch b/package/boot/uboot-lantiq/patches/0007-sf-eon-use-16-bit-ID-for-comparison.patch deleted file mode 100644 index 6836674fed..0000000000 --- a/package/boot/uboot-lantiq/patches/0007-sf-eon-use-16-bit-ID-for-comparison.patch +++ /dev/null @@ -1,45 +0,0 @@ -From d32f45357f0475a2f810752eeb9412fe692e1c0a Mon Sep 17 00:00:00 2001 -From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> -Date: Wed, 7 Nov 2012 14:09:21 +0100 -Subject: sf: eon: use 16 bit ID for comparison - -Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> - ---- a/drivers/mtd/spi/eon.c -+++ b/drivers/mtd/spi/eon.c -@@ -11,19 +11,19 @@ - #include "spi_flash_internal.h" - - struct eon_spi_flash_params { -- u8 idcode1; -+ u16 idcode; - u16 nr_sectors; - const char *name; - }; - - static const struct eon_spi_flash_params eon_spi_flash_table[] = { - { -- .idcode1 = 0x16, -+ .idcode = 0x3016, - .nr_sectors = 1024, - .name = "EN25Q32B", - }, - { -- .idcode1 = 0x18, -+ .idcode = 0x3018, - .nr_sectors = 4096, - .name = "EN25Q128", - }, -@@ -33,10 +33,11 @@ int spi_flash_probe_eon(struct spi_flash - { - const struct eon_spi_flash_params *params; - unsigned int i; -+ u16 id = idcode[2] | idcode[1] << 8; - - for (i = 0; i < ARRAY_SIZE(eon_spi_flash_table); ++i) { - params = &eon_spi_flash_table[i]; -- if (params->idcode1 == idcode[2]) -+ if (params->idcode == id) - break; - } - |