[PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver.

Laurent Pinchart laurentp at cse-semaphore.com
Wed Mar 26 08:44:03 EDT 2008


Signed-off-by: Laurent Pinchart <laurentp at cse-semaphore.com>
---
 drivers/mtd/maps/physmap_of.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c
index 49acd41..65c30b5 100644
--- a/drivers/mtd/maps/physmap_of.c
+++ b/drivers/mtd/maps/physmap_of.c
@@ -273,6 +273,14 @@ static struct of_device_id of_flash_match[] = {
 		.data		= (void *)"jedec_probe",
 	},
 	{
+		.compatible	= "physmap-ram",
+		.data		= (void *)"map_ram",
+	},
+	{
+		.compatible	= "physmap-rom",
+		.data		= (void *)"map_rom",
+	},
+	{
 		.type		= "rom",
 		.compatible	= "direct-mapped"
 	},
-- 
1.5.0


-- 
Laurent Pinchart
CSE Semaphore Belgium

Chaussée de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75



More information about the linux-mtd mailing list