Skip to content

Commit

Permalink
mtd: flash mapping support for Dreamcast VMU.
Browse files Browse the repository at this point in the history
This patch adds support for the Sega Dreamcast visual memory unit as a
flash mapping. It requires changes in the maple bus driver (posted
separately) to support block reads and writes.

The VMU is a 'smart' flash device, with a built-in 8-bit controller -
for instance there is an erase before a write but it is hidden from the
user. But the device's overall behaviour means it works well with the
mtd layer and it is appropriate to add it as an mtd mapping.

Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Acked-By: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Adrian McMenamin authored and Paul Mundt committed Mar 10, 2009
1 parent 71b973a commit 47a7268
Show file tree
Hide file tree
Showing 3 changed files with 844 additions and 1 deletion.
12 changes: 11 additions & 1 deletion drivers/mtd/maps/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -551,5 +551,15 @@ config MTD_PLATRAM

This selection automatically selects the map_ram driver.

endmenu
config MTD_VMU
tristate "Map driver for Dreamcast VMU"
depends on MAPLE
help
This driver enables access to the Dreamcast Visual Memory Unit (VMU).

Most Dreamcast users will want to say Y here.

To build this as a module select M here, the module will be called
vmu-flash.

endmenu
1 change: 1 addition & 0 deletions drivers/mtd/maps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ obj-$(CONFIG_MTD_PLATRAM) += plat-ram.o
obj-$(CONFIG_MTD_OMAP_NOR) += omap_nor.o
obj-$(CONFIG_MTD_INTEL_VR_NOR) += intel_vr_nor.o
obj-$(CONFIG_MTD_BFIN_ASYNC) += bfin-async-flash.o
obj-$(CONFIG_MTD_VMU) += vmu-flash.o
Loading

0 comments on commit 47a7268

Please sign in to comment.