mtd: fsmc_nand.c: Use default timings if none are provided in the dts
authorStefan Roese <sr@denx.de>
Thu, 19 Mar 2015 13:34:29 +0000 (14:34 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 31 Mar 2015 00:49:07 +0000 (17:49 -0700)
commit62b57f4c1475a4c452000192e5cad2ae86164be5
tree219bcf9ef500223358b8768a261e324455736e13
parentd800fcabc75a091569b6e19a67844eb264c7db9b
mtd: fsmc_nand.c: Use default timings if none are provided in the dts

Without this patch the timings are all set to 0 if not specified in the dts.
With this patch the driver falls back to use the defaults that are already
present in the driver and are known to work okay for some (older) boards.

Tested on a custom SPEAr600 based board.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Viresh Kumar <viresh.linux@gmail.com>
Cc: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/fsmc_nand.c