From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Thu, 19 Nov 2009 13:48:15 +0100 Subject: [U-Boot] [PATCH V2 3/3] Add support for the LaCie ED Mini V2 board In-Reply-To: <200911190851.03443.sr@denx.de> References: <1258239796-21528-1-git-send-email-albert.aribaud@free.fr> <1258239796-21528-4-git-send-email-albert.aribaud@free.fr> <20091118222158.A05573F6C2@gemini.denx.de> <200911190851.03443.sr@denx.de> Message-ID: <4B053E8F.7040501@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.