9
0
Fork 0
barebox/drivers/nor
Sascha Hauer 51885a7d73 Change byte order detection mechanism to kernel style
The Linux Kernel defines only one of __LITTLE_ENDIAN and
__BIG_ENDIAN. Endianess can then be tested with #ifdef __xx_ENDIAN. Userspace
always defined both __LITTLE_ENDIAN and __BIG_ENDIAN and byteorder can then
be tested with #if __BYTE_ORDER == __xx_ENDIAN.

As we tend to use a lot of Kernel code in barebox we switch to use the kernel
way of determing the byte order.

As this always causes a lot of confusion add a check to include/common.h to
make sure only one of __LITTLE_ENDIAN and __BIG_ENDIAN is defined.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-06-28 13:49:16 +02:00
..
Kconfig remove unused Kconfig variable HAS_CFI 2011-12-07 13:04:54 +01:00
Makefile nor: Add SPI flash driver 2011-08-24 18:44:31 +02:00
cfi_flash.c Change byte order detection mechanism to kernel style 2012-06-28 13:49:16 +02:00
cfi_flash.h NOR flash: reduce size of cfiword_t if not using 64-bit bus. 2012-05-13 11:03:26 +02:00
cfi_flash_amd.c cfi_flash: support of u32 cmd 2011-08-26 09:33:37 +02:00
cfi_flash_intel.c cfi flash: Fix alignment problem 2012-04-05 10:58:02 +02:00
m25p80.c m25p80: progressbar tweak 2012-06-07 19:31:33 +02:00
m25p80.h nor: Add SPI flash driver 2011-08-24 18:44:31 +02:00