]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: mxc-nand: Implement support for PARAM command
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 10 Feb 2015 18:59:59 +0000 (19:59 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Mar 2015 22:20:41 +0000 (15:20 -0700)
commitc7ff38e158f8fcecb9f24174cd3511c3d2974c9b
tree966c560a00993666a0b2039f6a3140674b496be7
parent3cce1b985839c0ed6ecf7e2323f1ad6b3f8ec874
mtd: mxc-nand: Implement support for PARAM command

The mxc-nand driver never supported the PARAM command to read out the
ONFI parameter page and so always relied on probing my manufacturer and
device id (as provided by the READID command).

This patch implements reading out the first parameter page copy at least
which should be good enough in practise.

This makes the boot log change from

nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xb1
nand: Micron NAND 128MiB 1,8V 16-bit

to
nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xb1
nand: Micron MT29F1G16ABBDAH4

on my machine.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/mxc_nand.c