mtd: allow uclinux map driver to be used on any ColdFire CPU platform

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:06 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=b05a1187bbf35035300313987cbd22e362d71dc6
Commit:     b05a1187bbf35035300313987cbd22e362d71dc6
Parent:     08a3c4bc23e2b71191ed95d4fd3177c23660e34f
Author:     Greg Ungerer <gerg at uclinux.org>
AuthorDate: Thu Jul 19 15:42:46 2012 +1000
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Sep 29 14:58:37 2012 +0100

    mtd: allow uclinux map driver to be used on any ColdFire CPU platform
    
    The uclinux.c map driver has traditionally been used only on non-MMU based
    systems. But there is no fundamental reason it can't be used on systems
    running with virtual memory.
    
    Some ColdFire CPU based systems now have full paged MMU hardware and can use
    the uclinux.c mapping driver, so making the uclinux.c driver configuration
    depend on !CONFIG_MMU doesn't make sense now. Allow the CONFIG_MTD_UCLINUX
    option to be enabled if CONFIG_COLDFIRE is enabled. (I have chosen not to
    just more generally allow uclinux.c for any MMU type to keep this option
    hidden for most systems that are not interested in setting it).
    
    Signed-off-by: Greg Ungerer <gerg at uclinux.org>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/maps/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index dbe7df1..2e47c2e 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -443,7 +443,7 @@ config MTD_GPIO_ADDR
 
 config MTD_UCLINUX
 	bool "Generic uClinux RAM/ROM filesystem support"
-	depends on MTD_RAM=y && !MMU
+	depends on MTD_RAM=y && (!MMU || COLDFIRE)
 	help
 	  Map driver to support image based filesystems for uClinux.
 



More information about the linux-mtd-cvs mailing list