Re: Supported flash memory

Nicolas Pitre
2001-01-05T18:01:21Z

On Fri, 5 Jan 2001, David Woodhouse wrote:

>
> kenneth.johansson@inn.ericsson.se said:
> > Well with SRAM you can intercange any data pin with another data pin
> > and likewise with the adress bus and nothing would notice. Doing this
> > with ROM or FLASH makes things quite interesting. This would mean that
> > anything trying to program the device has to do translation.
>
> For address lines, this is fixed up by the 'map' driver. For data lines it's
> a little more annoying. But include/linux/cfi_endian.h could theoretically
> at least do any form of swapping you desire.

This is required only for flash in command mode, so cfi_build_cmd() is the
best place to shuffle bits. Everything is likely to be shuffled at compile
time and raw reads/writes aren't impacted.

Nicolas