[oe-commits] Mario Schuknecht : u-boot-2009.03: use AMD fixups for AMIC too

git version control git at git.openembedded.org
Tue Feb 22 01:33:21 UTC 2011


Module: openembedded.git
Branch: trini/simplify-target-flags
Commit: 09da7564ee2d8e6838079c9e0012fcd057528f11
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=09da7564ee2d8e6838079c9e0012fcd057528f11

Author: Mario Schuknecht <m.schuknecht at dresearch.de>
Date:   Fri Feb 18 22:12:02 2011 +0000

u-boot-2009.03: use AMD fixups for AMIC too

* AMIC flashes are AMD clones and need the same fixups otherwise e.g. the
  u-boot command saveenv may not work (depending on the sector layout)
* patch has been send upstream too: http://patchwork.ozlabs.org/patch/82763/

Signed-off-by: Mario Schuknecht <m.schuknecht at dresearch.de>
Signed-off-by: Steffen Sledz <sledz at dresearch.de>
Acked-by: Tom Rini <tom_rini at mentor.com>
Acked-by: Paul Menzel <paulepanter at users.sourceforge.net>

---

 recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch |   11 +++++++++++
 recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch |    3 ++-
 recipes/u-boot/u-boot_2009.03.bb                   |    7 +++++--
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch b/recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch
new file mode 100644
index 0000000..9d8c7ab
--- /dev/null
+++ b/recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch
@@ -0,0 +1,11 @@
+diff -Nurd u-boot-2009.03.orig//drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c
+--- u-boot-2009.03.orig//drivers/mtd/cfi_flash.c	2011-02-18 14:11:24.870432001 +0100
++++ u-boot-2009.03/drivers/mtd/cfi_flash.c	2011-02-18 14:11:45.440432001 +0100
+@@ -1883,6 +1883,7 @@
+ 		/* Do manufacturer-specific fixups */
+ 		switch (info->manufacturer_id) {
+ 		case 0x0001:
++		case 0x0037: // AMIC
+ 			flash_fixup_amd(info, &qry);
+ 			break;
+ 		case 0x001f:
diff --git a/recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch b/recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch
index 5b91d28..20a47da 100644
--- a/recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch
+++ b/recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch
@@ -6190,10 +6190,11 @@ diff -Nurd u-boot-2009.03.orig/cpu/arm926ejs/start.S u-boot-2009.03/cpu/arm926ej
 diff -Nurd u-boot-2009.03.orig/drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c
 --- u-boot-2009.03.orig/drivers/mtd/cfi_flash.c	2009-04-15 11:05:24.000000000 +0200
 +++ u-boot-2009.03/drivers/mtd/cfi_flash.c	2009-04-15 11:08:18.000000000 +0200
-@@ -1883,6 +1883,7 @@
+@@ -1883,7 +1883,8 @@
  		/* Do manufacturer-specific fixups */
  		switch (info->manufacturer_id) {
  		case 0x0001:
+ 		case 0x0037: // AMIC
 +		case 0x00da: // Winbond
  			flash_fixup_amd(info, &qry);
  			break;
diff --git a/recipes/u-boot/u-boot_2009.03.bb b/recipes/u-boot/u-boot_2009.03.bb
index 2cbded9..4b822f1 100644
--- a/recipes/u-boot/u-boot_2009.03.bb
+++ b/recipes/u-boot/u-boot_2009.03.bb
@@ -6,9 +6,12 @@ DEFAULT_PREFERENCE_hipox = "1"
 
 DEPENDS_append_hipox = " oxnas-boot-tools oxnas-boot-tools-native "
 
-SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "
+SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \
+	file://cfi-amic-fixup.patch \
+"
 
-SRC_URI_append_hipox = "file://00-hipox.patch \
+SRC_URI_append_hipox = " \
+	file://00-hipox.patch \
 	file://01-hipox-fix-gmac-reset.patch \
 	file://02-hipox-enable-mmu.patch \
 	file://03-hipox-direct-switch.patch \





More information about the Openembedded-commits mailing list