diff options
author | Josh Wu <josh.wu@atmel.com> | 2013-05-09 03:34:54 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-05 15:55:42 -0400 |
commit | 71b94e2e866aa35f40945d9e820fc3214b792d1f (patch) | |
tree | 2747eb61ceeeda751671eaa3c1513eac0d386e19 /arch/avr32 | |
parent | d1cb556c3feb238f11dc47f8fa56df7880022908 (diff) |
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>
Diffstat (limited to 'arch/avr32')
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 7f8759a8a92a..a68f3cf7c3c1 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c | |||
@@ -1983,6 +1983,9 @@ at32_add_device_nand(unsigned int id, struct atmel_nand_data *data) | |||
1983 | ARRAY_SIZE(smc_cs3_resource))) | 1983 | ARRAY_SIZE(smc_cs3_resource))) |
1984 | goto fail; | 1984 | goto fail; |
1985 | 1985 | ||
1986 | /* For at32ap7000, we use the reset workaround for nand driver */ | ||
1987 | data->need_reset_workaround = true; | ||
1988 | |||
1986 | if (platform_device_add_data(pdev, data, | 1989 | if (platform_device_add_data(pdev, data, |
1987 | sizeof(struct atmel_nand_data))) | 1990 | sizeof(struct atmel_nand_data))) |
1988 | goto fail; | 1991 | goto fail; |