ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif
authorIvan Khoronzhuk <ivan.khoronzhuk@ti.com>
Thu, 30 Jan 2014 11:03:40 +0000 (13:03 +0200)
committerSekhar Nori <nsekhar@ti.com>
Sun, 23 Feb 2014 15:03:18 +0000 (20:33 +0530)
commit67f5185cad24b3c3d9ab07508dfcab55cdab02de
tree31f797e58dac77f11b07673afeceb1125bd6b7b6
parent6d0abeca3242a88cab8232e4acd7e2bf088f3bc2
ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif

The problem that the set timings code contains the call of Davinci
platform function davinci_aemif_setup_timing() which is not
accessible if kernel is built for another platform like Keystone.

The Keysone platform is going to use TI AEMIF driver.
If TI AEMIF is used we don't need to set timings and bus width.
It is done by AEMIF driver.

To get rid of davinci-nand driver dependency on aemif platform code
we moved aemif code to davinci platform.

The platform AEMIF code (aemif.c) has to be removed once Davinci
will be converted to DT and use ti-aemif.c driver.

Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
[nsekhar@ti.com: fixed checkpatch error and a build breakage due to
 missing include, rebased onto l2-mtd/master]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/aemif.c
arch/arm/mach-davinci/board-da830-evm.c
arch/arm/mach-davinci/board-da850-evm.c
arch/arm/mach-davinci/board-dm644x-evm.c
arch/arm/mach-davinci/board-dm646x-evm.c
arch/arm/mach-davinci/board-mityomapl138.c
drivers/mtd/nand/davinci_nand.c
include/linux/platform_data/mtd-davinci-aemif.h