9
0
Fork 0

NOR flash: reduce size of cfiword_t if not using 64-bit bus.

This is done to reduce the binary size a bit.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Krzysztof Halasa 2012-05-05 23:35:10 +02:00 committed by Sascha Hauer
parent a42d8ce778
commit 254b183339
1 changed files with 10 additions and 0 deletions

View File

@ -30,7 +30,17 @@
#include <linux/mtd/mtd.h>
typedef unsigned long flash_sect_t;
#if defined(CONFIG_DRIVER_CFI_BANK_WIDTH_8)
typedef u64 cfiword_t;
#elif defined(CONFIG_DRIVER_CFI_BANK_WIDTH_4)
typedef u32 cfiword_t;
#elif defined(CONFIG_DRIVER_CFI_BANK_WIDTH_2)
typedef u16 cfiword_t;
#else
typedef u8 cfiword_t;
#endif
struct cfi_cmd_set;
/*-----------------------------------------------------------------------