[U-Boot] [PATCHv2 5/8] drivers: mtd: spi: Modify read/write command for sfl256s flash.

Felipe Balbi balbi at ti.com
Tue Jul 23 16:30:23 CEST 2013


Hi,

On Tue, Jul 23, 2013 at 07:53:06PM +0530, Sourav Poddar wrote:
> >@@ -311,7 +341,7 @@ int spi_flash_cmd_read_fast(struct spi_flash *flash, u32 offset,
> >  			debug("SF: read failed\n");
> >  			break;
> >  		}
> >-
> >+#endif
> >  		offset += read_len;
> >  		len -= read_len;
> >  		data += read_len;
> Elaborating a bit more on this,
> There is a constrain on our hardware, which goes like this..
> 
> As soon as the words transfered is 4096 bytes, the CS gets deasserted
> automatically.

constraint is 4096 *words*. If you're using anything other than 8-bits
per word, your statement doesn't make sense.

-- 
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130723/8dbb9aa9/attachment.pgp>


More information about the U-Boot mailing list