Skip to content

Commit

Permalink
[MTD] OneNAND Simulator support
Browse files Browse the repository at this point in the history
This simulate various OneNAND flash chips for the MTD onenand layer.
It's simple implementation, only basic operations.
It don't support the recent changes in NANDSIM such as lazy block allocation,
bitflip, and so on.

Note: This passed nand-tests.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Kyungmin Park authored and David Woodhouse committed Jun 30, 2007
1 parent ee9745f commit 8dab169
Show file tree
Hide file tree
Showing 3 changed files with 505 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/mtd/onenand/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,11 @@ config MTD_ONENAND_2X_PROGRAM

And more recent chips

config MTD_ONENAND_SIM
tristate "OneNAND simulator support"
depends on MTD_PARTITIONS
help
The simulator may simulate various OneNAND flash chips for the
OneNAND MTD layer.

endif # MTD_ONENAND
3 changes: 3 additions & 0 deletions drivers/mtd/onenand/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ obj-$(CONFIG_MTD_ONENAND) += onenand.o
# Board specific.
obj-$(CONFIG_MTD_ONENAND_GENERIC) += generic.o

# Simulator
obj-$(CONFIG_MTD_ONENAND_SIM) += onenand_sim.o

onenand-objs = onenand_base.o onenand_bbt.o
Loading

0 comments on commit 8dab169

Please sign in to comment.