onenand: Replace ONENAND_IS_MLC() with ONENAND_HAS_4KB()
authorLukasz Majewski <l.majewski@samsung.com>
Wed, 9 Nov 2011 09:30:06 +0000 (10:30 +0100)
committerLukasz Majewski <l.majewski@samsung.com>
Wed, 4 Apr 2012 15:08:40 +0000 (17:08 +0200)
commite26fd3d3bfcf9a425b57defeb91b4e088392e3d9
treedf0e9dbe1e2d27773c029defd58fea0bc378b718
parent8f9c249836b1c081cb1b6b6bf063923473df6884
onenand: Replace ONENAND_IS_MLC() with ONENAND_HAS_4KB()

This replacement causes 4KB page size devices to work properly with u-boot.

The old ONENAND_IS_MLC() behavior has been preserved by explicit
setting of ONENAND_HAS_4KB_PAGE for those devices.

This change makes the onenand_base.c file more resembling the respective
kernel sources.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
Test HW:
       - Samsung S5PC110 GONI
       - Samsung S5PC210 Universal
drivers/mtd/onenand/onenand_base.c
include/linux/mtd/onenand.h