From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Retanubun Date: Fri, 06 Mar 2009 11:30:58 -0500 Subject: [U-Boot] [PATCH] CFI: geometry reversal for STMicro M29W320DT In-Reply-To: <200903061627.24200.sr@denx.de> References: <49B13CB1.8010704@RuggedCom.com> <200903061627.24200.sr@denx.de> Message-ID: <49B14FC2.8090505@RuggedCom.com> 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 wrote: > On Friday 06 March 2009, Richard Retanubun wrote: >> Follow up to the flash_fixup_stm to fix geometry reversal >> on STMicro M29W320ET flash chip. The M29W320DT has 4 erase region. >> >> Signed-off-by: Richard Retanubun >> >> --- >> My baseline is 2009.03-rc1. If there are STMicro/Numonyx guys on >> this mailing list, can you help provide a more 'generic' way of >> detection? this way the exception list does not have to grow a lot. > > Did you take a look at the Linux driver to see how this is handled there? > Maybe they have a more "generic" solution... Hi Stefan, Thanks for the comments. I took a quick look around /drivers/mtd, but can't find a similar geometry reversal. Unfortunately, I found this in: /driver/mtd/chips/cfi_cmdset_0001.c [snip] { CFI_MFR_ST, 0x00ba, /* M28W320CT */ fixup_st_m28w320ct, NULL }, { CFI_MFR_ST, 0x00bb, /* M28W320CB */ fixup_st_m28w320cb, NULL }, [/snip] By no means am I a CFI expert, but my impression is, if there has to be a part number specific fixup function for any reason, then it is a good indication that there are just some part specific peculiarity. What utilities exist in Linux-world to do the equivalent of "flinfo" in u-boot, just so I can see if Linux has a more generic way. And just in case it matters, our board with these flash is MMU-less, so if there is a different tool for uCLinux that will help too :) - Richard