mtd: nand: mxs_nand_spl: add mxs_flash_full_ident
authorJörg Krause <joerg.krause@embedded.rocks>
Sun, 14 Jan 2018 18:26:40 +0000 (19:26 +0100)
committerStefano Babic <sbabic@denx.de>
Wed, 27 Jun 2018 10:20:55 +0000 (12:20 +0200)
commit4368f85359b947da7f151265d8969d6af1235357
treedb56d562936d612462fbae39b9a50cf538ebeef9
parentf3f2af3bdf2af89d0621aa0fbd94a918e4447081
mtd: nand: mxs_nand_spl: add mxs_flash_full_ident

For now, the existing SPL MXS NAND driver only supports to identify
ONFi-compliant NAND chips. In order to allow identifying
non-ONFi-compliant chips add `mxs_flash_full_ident()` which uses the
`nand_get_flash_type()` functionality from `nand_base.c` to lookup
for supported NAND chips in the chip ID list.

For compatibility reason the full identification support is only
available if the config option `CONFIG_SPL_NAND_IDENT` is enabled.

The lookup was tested on a custom i.MX6ULL board with a Toshiba
TC58NVG1S3HTAI0 NAND chip.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
drivers/mtd/nand/mxs_nand_spl.c