OSDN Git Service

mtd: nand: denali: support two row address cycle devices
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 13 Sep 2017 02:05:51 +0000 (11:05 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 18 Sep 2017 12:55:54 +0000 (14:55 +0200)
commita3750a6422a7112740fe69a596bcd5eb62577aed
tree918d0867198891a5aba457561e30af17d292870c
parent14157f861437ebe2d624b0a845b91bbdf8ca9a2d
mtd: nand: denali: support two row address cycle devices

The register TWO_ROW_ADDR_CYCLES specifies the number of row address
cycles of the device, but it is fixed to 0 in the driver init code
(i.e. always 3 row address cycles).

Reflect the result of nand_scan_ident() to the register setting
in order to support 2 row address cycle devices.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c