OSDN Git Service

mtd: nand: denali: max_banks calculation changed in revision 5.1
authorGraham Moore <grmoore@opensource.altera.com>
Tue, 21 Jul 2015 14:39:31 +0000 (09:39 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 29 Sep 2015 18:44:59 +0000 (11:44 -0700)
commit271707b1d817f5104e02b2bd1bab43f0c8759418
tree39cee6aba8d527a6ad9ff3751acaa729a855bcdd
parent9c07d094bbfe3d09e4c3e01a81cd1399bd23b268
mtd: nand: denali: max_banks calculation changed in revision 5.1

Read Denali hardware revision number and use it to
calculate max_banks,  The encoding of max_banks changed
in Denali revision 5.1.

Signed-off-by: Graham Moore <grmoore@opensource.altera.com>
[Brian: parentheses around macro arg]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/denali.c
drivers/mtd/nand/denali.h