[PATCH 2/2] mtd: add switch to support NAND flash on big endian bus

Hans-Christian Egtvedt hans-christian.egtvedt at atmel.com
Tue Apr 26 07:10:25 EDT 2011


On Thu, 2011-04-14 at 15:35 +0300, Artem Bityutskiy wrote:
> On Wed, 2011-04-13 at 15:55 +0200, Hans-Christian Egtvedt wrote:
> > This patch adds a new kconfig symbol to the MTD NAND system, MTD_NAND_BE_BUS.
> > This symbol is used by the nand base to properly convert the data read from the
> > bus into the format the CPU expects.
> > 
> > The patch fixes 16-bit NAND flash support on big endian architectures (at least
> > AVR32) with NAND flash hooked up to a big endian external bus.
> > 
> > Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com>
> 
> These kind of config options are bad and lead to confusion. You should
> try hard to auto-detect the endianness, or take this information from
> the boot-loader via the device tree.

AVR32 doesn't support the device tree.

For AVR32 assuming big endian wiring on the EBI is sane, as the
architecture is big-endian only. I don't know how other big endian
architectures behaves, and I am puzzled that I am the only observer of
this...

-- 
Hans-Christian Egtvedt




More information about the linux-mtd mailing list