Stefan Roese a écrit : > Hi Albert, > > On Wednesday 18 November 2009 23:21:58 Wolfgang Denk wrote: >>> This board is based on the Marvell Orion5x SoC. >>> Current support is limited to console and Flash. >>> Flash support uses LEGACY as the Macronix 29LV400 >>> used on ED Mini V2 is not 100% CFI compliant. >> And the differences are really so big that we cannot tweak the CFI >> driver? > > It's not CFI compliant. But you can use the legacy infrastructure in this > driver, which meant to support such chips. Please take a look at the > following > driver: > > drivers/mtd/jedec_flash.c > > Your board config header would need something like this: > > /* Use common CFI driver */ > #define CONFIG_SYS_FLASH_CFI > #define CONFIG_FLASH_CFI_DRIVER > /* board provides its own flash_init code */ > #define CONFIG_FLASH_CFI_LEGACY 1 > #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT > #define CONFIG_SYS_FLASH_LEGACY_512Kx8 1 > ... > > Taken from include/configs/hcu4.h. This should give you an idea... > > Cheers, > Stefan
Er... Precisely, I am using [CONFIG_FLASH_CFI_]LEGACY, as the patch comment says, though obviously not clearly enough. Amicalement, -- Albert. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot