mtd: atmel_nand: replace cpu_is_at32ap7000() with a nand platform data
authorJosh Wu <josh.wu@atmel.com>
Thu, 9 May 2013 07:34:54 +0000 (15:34 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 19:55:42 +0000 (20:55 +0100)
commit71b94e2e866aa35f40945d9e820fc3214b792d1f
tree2747eb61ceeeda751671eaa3c1513eac0d386e19
parentd1cb556c3feb238f11dc47f8fa56df7880022908
mtd: atmel_nand: replace cpu_is_at32ap7000() with a nand platform data

The nand driver use cpu_is_at32ap7000() macro for a workaround. For the
multi-platform support, we will remove this cpu_is_xxx() macro.

This patch adds a boolean variable need_reset_workaround in structure
atmel_nand_data. Using this variable we can remove cpu_is_at32ap7000() macro.

Hans-Christian: Feel free to push this through the mtd tree, if they won't
accept it I'm working on getting my workflow up on the linux-avr32.git tree.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
arch/avr32/mach-at32ap/at32ap700x.c
drivers/mtd/nand/atmel_nand.c
include/linux/platform_data/atmel.h