From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Sat, 28 Aug 2010 22:26:59 -0400 Subject: [U-Boot] [PATCH] MTD/SPI/FLASH: add support for Ramtron FRAMs using SPI In-Reply-To: <4C79BEFE.1050803@emk-elektronik.de> References: <1282740439-7910-1-git-send-email-u-boot@emk-elektronik.de> <201008282014.51577.vapier@gentoo.org> <4C79BEFE.1050803@emk-elektronik.de> Message-ID: <201008282227.00264.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday, August 28, 2010 21:59:26 Reinhard Meyer wrote: > On 29.08.2010 02:14, Mike Frysinger wrote: > > if you want to take the patch i posted and extend that by itself with the > > comments here, and then do the ramtron patch separately on top of that, > > that'd be great. > > Hehe, you like to impose extra work on poor moi.... i can do the pre-ramtron stuff if you like > the first patch would add the table method and a > #define IDCODE_LEN 5 > at the top of file > > the ramtron patch would then add (inside the table) > #ifdef CONFIG_SPI_FRAM_RAMTRON > {6, 0xc2, spi_fram_probe_ramtron}, > # if IDCODE_LEN<9 > # undef IDCODE_LEN > # define IDCODE_LEN 9 > # endif > #endif > > Not exactly nice, but that way there is only one place where device > specific stuff happens, and we will automatically get the largest > idbuffer required for all the non-trivial devices included. looks fine to me -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20100828/7dd9dad7/attachment.pgp