cfi_flash: add shift option for some cfi memory chips
Many cfi chips support 16 and 8 bit modes. Most important
difference is use of so called "Q15/A-1" pin. In 16bit mode this
pin is used for data IO. In 8bit mode, it is an address input
which add one more least significant bit (LSB). In this case
we should shift all adresses by one:
For example 0xaa << 1 = 0x154

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent aac2c84 commit fbf9d876334ba5ef50704fe33543a48a9e6d0440
@Oleksij Rempel Oleksij Rempel authored on 22 May 2013
Sascha Hauer committed on 27 May 2013
Showing 2 changed files
View
drivers/mtd/nor/cfi_flash.c
View
drivers/mtd/nor/cfi_flash.h