mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-23 08:41:06 +02:00
adm5120: fix macronix bootloc patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31508 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
399af78951
commit
f2d86d5a21
@ -21,7 +21,7 @@
|
|||||||
+/*
|
+/*
|
||||||
+ * Some Macronix chips has no/bad bootblock information in the CFI table
|
+ * Some Macronix chips has no/bad bootblock information in the CFI table
|
||||||
+ */
|
+ */
|
||||||
+static void fixup_macronix_bootloc(struct mtd_info *mtd, void* param)
|
+static void fixup_macronix_bootloc(struct mtd_info *mtd)
|
||||||
+{
|
+{
|
||||||
+ struct map_info *map = mtd->priv;
|
+ struct map_info *map = mtd->priv;
|
||||||
+ struct cfi_private *cfi = map->fldrv_priv;
|
+ struct cfi_private *cfi = map->fldrv_priv;
|
||||||
@ -60,7 +60,7 @@
|
|||||||
{ CFI_MFR_ANY, CFI_ID_ANY, fixup_use_erase_chip },
|
{ CFI_MFR_ANY, CFI_ID_ANY, fixup_use_erase_chip },
|
||||||
{ CFI_MFR_ATMEL, AT49BV6416, fixup_use_atmel_lock },
|
{ CFI_MFR_ATMEL, AT49BV6416, fixup_use_atmel_lock },
|
||||||
+#ifdef CONFIG_MTD_CFI_FIXUP_MACRONIX_BOOTLOC
|
+#ifdef CONFIG_MTD_CFI_FIXUP_MACRONIX_BOOTLOC
|
||||||
+ { CFI_MFR_MACRONIX, CFI_ID_ANY, fixup_macronix_bootloc, NULL, },
|
+ { CFI_MFR_MACRONIX, CFI_ID_ANY, fixup_macronix_bootloc },
|
||||||
+#endif
|
+#endif
|
||||||
{ 0, 0, NULL }
|
{ 0, 0, NULL }
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user