--- /dev/null
+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 -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;
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 \