Skip to content

Commit

Permalink
goldfish: NAND flash driver
Browse files Browse the repository at this point in the history
Fold together the NAND driver for Goldfish from Arve with cleanups by
Jun Nakajima and a tidy up to 3.7 and checkpatch.

This provides a virtual flash driver for the Goldfish Android Virtual Platform,
and which is normally used as the root file system when testing emulated
devices.

Signed-off-by: Mike A. Chan <mikechan@google.com>
Signed-off-by: Arve Hjønnevåg <arve@android.com>
[Ported to handle x86]
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
[Ported to 3.4]
Signed-off-by: Tom Keel <thomas.keel@intel.com>
[Ported to 3.7 and tided for checkpatch etc]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Arve Hjønnevåg authored and Greg Kroah-Hartman committed Jan 24, 2013
1 parent 2e82b83 commit 8e404ff
Show file tree
Hide file tree
Showing 5 changed files with 533 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/staging/goldfish/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ config GOLDFISH_AUDIO
---help---
Emulated audio channel for the Goldfish Android Virtual Device

config MTD_GOLDFISH_NAND
tristate "Goldfish NAND device"
depends on GOLDFISH
help
Drives the emulated NAND flash device on the Google Goldfish
Android virtual device.
1 change: 1 addition & 0 deletions drivers/staging/goldfish/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
#

obj-$(CONFIG_GOLDFISH_AUDIO) += goldfish_audio.o
obj-$(CONFIG_MTD_GOLDFISH_NAND) += goldfish_nand.o
10 changes: 10 additions & 0 deletions drivers/staging/goldfish/README
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
Audio
-----
- Move to using the ALSA framework not faking it
- Fix the wrong user page DMA (moving to ALSA may fix that too)

NAND
----
- Switch from spinlock to mutex
- Remove excess checking of parameters in calls
- Use dma coherent memory not kmalloc/__pa for the memory (this is just
a cleanliness issue not a correctness one)

Loading

0 comments on commit 8e404ff

Please sign in to comment.