Patchwork u-boot-2009.03: Fix sector table direction for AMIC (hipox machine only)

login
register
mail settings
Submitter Mario Schuknecht
Date Feb. 16, 2011, 1:26 p.m.
Message ID <1297862774-31036-1-git-send-email-m.schuknecht@dresearch.de>
Download mbox | patch
Permalink /patch/647/
State Rejected
Headers show

Comments

Mario Schuknecht - Feb. 16, 2011, 1:26 p.m.
Signed-off-by: Mario Schuknecht <m.schuknecht@dresearch.de>
---
 .../u-boot-2009.03/hipox/11-cfi-amic-fixup.patch   |   11 +++++++++++
 recipes/u-boot/u-boot_2009.03.bb                   |    1 +
 2 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch

Patch

diff --git a/recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch b/recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch
new file mode 100644
index 0000000..a7432a5
--- /dev/null
+++ b/recipes/u-boot/u-boot-2009.03/hipox/11-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-11 15:18:38.000000000 +0100
++++ u-boot-2009.03/drivers/mtd/cfi_flash.c	2011-02-11 15:19:06.000000000 +0100
+@@ -1883,6 +1883,7 @@
+ 		/* 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..d6e9768 100644
--- a/recipes/u-boot/u-boot_2009.03.bb
+++ b/recipes/u-boot/u-boot_2009.03.bb
@@ -14,6 +14,7 @@  SRC_URI_append_hipox = "file://00-hipox.patch \
 	file://03-hipox-direct-switch.patch \
 	file://04-hipox-env.patch \
 	file://10-hipox-boot-abort-key.patch \
+	file://11-cfi-amic-fixup.patch \
 "
 
 TARGET_LDFLAGS = ""