u-boot-brain/drivers/mtd
Andrew Gabbasov aedadf10f0 cfi_flash: Fix unaligned accesses to cfi_qry structure
Packed structure cfi_qry contains unaligned 16- and 32-bits members,
accessing which causes problems when cfi_flash driver is compiled with
-munaligned-access option: flash initialization hangs, probably
due to data error.

Since the structure is supposed to replicate the actual data layout
in CFI Flash chips, the alignment issue can't be fixed in the structure.
So, unaligned fields need using of explicit unaligned access macros.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Reviewed-By: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Stefan Roese <sr@denx.de>
2013-05-23 09:47:59 +02:00
..
nand lib: consolidate hang() 2013-05-01 16:41:08 -04:00
onenand arm: Remove support for unused s3c64xx 2013-04-12 07:55:08 +02:00
spi Merge branch 'u-boot/master' into 'u-boot-arm/master' 2013-03-28 18:50:01 +01:00
ubi ubi: ubifs: Turn off verbose prints 2013-04-11 15:52:54 -04:00
at45.c drivers/mtd: Move conditional compilation to Makefile 2008-08-13 01:40:42 +02:00
cfi_flash.c cfi_flash: Fix unaligned accesses to cfi_qry structure 2013-05-23 09:47:59 +02:00
cfi_mtd.c CFI: fix warning: variable ... set but not used 2011-10-09 23:24:49 +02:00
dataflash.c drivers/mtd/dataflash.c: Fix GCC 4.6 warning 2011-11-16 21:28:47 +01:00
ftsmc020.c ftsmc020: fix relocation 2011-05-12 23:43:27 +02:00
jedec_flash.c add STM29F400BB to table of supported legacy flashs 2012-02-09 09:45:53 +01:00
Makefile st_smi: Add support for SPEAr SMI driver 2012-07-07 14:07:38 +02:00
mtdconcat.c linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
mtdcore.c linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
mtdpart.c ubi: ubifs: Turn off verbose prints 2013-04-11 15:52:54 -04:00
mw_eeprom.c Update i386 code (sc520_cdp) 2008-09-09 11:48:53 +02:00
st_smi.c MTD: SPEAr SMI: Add write support for length < 4 bytes 2012-07-07 14:07:44 +02:00