aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-06-23 04:33:52 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:02:13 -0400
commited764db2887aa90efb8c5a5d79775d5d18c26b27 (patch)
tree13de461ebbe52c0ce76adaa4bff7d135dc32b53c /drivers
parente1c10243df92822954b9b5e04d12dd2f23a39652 (diff)
mtd: maps: drop edb7312 support
EDB7312 isn't supported by mainline kernel, this driver wasn't working before recent fixes, the same functionality can be achieved via physmap, so drop it now. If the board support will ever be submitted to mainline, one either can revert this commit, or use physmap mtd map driver. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/maps/Kconfig7
-rw-r--r--drivers/mtd/maps/Makefile1
-rw-r--r--drivers/mtd/maps/edb7312.c135
3 files changed, 0 insertions, 143 deletions
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index 46eca3b3bcb0..891a9e644542 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -392,13 +392,6 @@ config MTD_AUTCPU12
392 This enables access to the NV-RAM on autronix autcpu12 board. 392 This enables access to the NV-RAM on autronix autcpu12 board.
393 If you have such a board, say 'Y'. 393 If you have such a board, say 'Y'.
394 394
395config MTD_EDB7312
396 tristate "CFI Flash device mapped on EDB7312"
397 depends on ARCH_EDB7312 && MTD_CFI
398 help
399 This enables access to the CFI Flash on the Cogent EDB7312 board.
400 If you have such a board, say 'Y' here.
401
402config MTD_IMPA7 395config MTD_IMPA7
403 tristate "JEDEC Flash device mapped on impA7" 396 tristate "JEDEC Flash device mapped on impA7"
404 depends on ARM && MTD_JEDECPROBE 397 depends on ARM && MTD_JEDECPROBE
diff --git a/drivers/mtd/maps/Makefile b/drivers/mtd/maps/Makefile
index d6379fea42b8..45dcb8b14f22 100644
--- a/drivers/mtd/maps/Makefile
+++ b/drivers/mtd/maps/Makefile
@@ -39,7 +39,6 @@ obj-$(CONFIG_MTD_DBOX2) += dbox2-flash.o
39obj-$(CONFIG_MTD_SOLUTIONENGINE)+= solutionengine.o 39obj-$(CONFIG_MTD_SOLUTIONENGINE)+= solutionengine.o
40obj-$(CONFIG_MTD_PCI) += pci.o 40obj-$(CONFIG_MTD_PCI) += pci.o
41obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o 41obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o
42obj-$(CONFIG_MTD_EDB7312) += edb7312.o
43obj-$(CONFIG_MTD_IMPA7) += impa7.o 42obj-$(CONFIG_MTD_IMPA7) += impa7.o
44obj-$(CONFIG_MTD_FORTUNET) += fortunet.o 43obj-$(CONFIG_MTD_FORTUNET) += fortunet.o
45obj-$(CONFIG_MTD_UCLINUX) += uclinux.o 44obj-$(CONFIG_MTD_UCLINUX) += uclinux.o
diff --git a/drivers/mtd/maps/edb7312.c b/drivers/mtd/maps/edb7312.c
deleted file mode 100644
index b07acd69277a..000000000000
--- a/drivers/mtd/maps/edb7312.c
+++ /dev/null
@@ -1,135 +0,0 @@
1/*
2 * Handle mapping of the NOR flash on Cogent EDB7312 boards
3 *
4 * Copyright 2002 SYSGO Real-Time Solutions GmbH
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#include <linux/module.h>
12#include <linux/types.h>
13#include <linux/kernel.h>
14#include <linux/init.h>
15#include <asm/io.h>
16#include <linux/mtd/mtd.h>
17#include <linux/mtd/map.h>
18#include <linux/mtd/partitions.h>
19
20#define WINDOW_ADDR 0x00000000 /* physical properties of flash */
21#define WINDOW_SIZE 0x01000000
22#define BUSWIDTH 2
23#define FLASH_BLOCKSIZE_MAIN 0x20000
24#define FLASH_NUMBLOCKS_MAIN 128
25/* can be "cfi_probe", "jedec_probe", "map_rom", NULL }; */
26#define PROBETYPES { "cfi_probe", NULL }
27
28#define MSG_PREFIX "EDB7312-NOR:" /* prefix for our printk()'s */
29#define MTDID "edb7312-nor" /* for mtdparts= partitioning */
30
31static struct mtd_info *mymtd;
32
33struct map_info edb7312nor_map = {
34 .name = "NOR flash on EDB7312",
35 .size = WINDOW_SIZE,
36 .bankwidth = BUSWIDTH,
37 .phys = WINDOW_ADDR,
38};
39
40/*
41 * MTD partitioning stuff
42 */
43static struct mtd_partition static_partitions[3] =
44{
45 {
46 .name = "ARMboot",
47 .size = 0x40000,
48 .offset = 0
49 },
50 {
51 .name = "Kernel",
52 .size = 0x200000,
53 .offset = 0x40000
54 },
55 {
56 .name = "RootFS",
57 .size = 0xDC0000,
58 .offset = 0x240000
59 },
60};
61
62static const char *probes[] = { "RedBoot", "cmdlinepart", NULL };
63
64static int mtd_parts_nb = 0;
65static struct mtd_partition *mtd_parts = 0;
66
67static int __init init_edb7312nor(void)
68{
69 static const char *rom_probe_types[] = PROBETYPES;
70 const char **type;
71 const char *part_type = 0;
72
73 printk(KERN_NOTICE MSG_PREFIX "0x%08x at 0x%08x\n",
74 WINDOW_SIZE, WINDOW_ADDR);
75 edb7312nor_map.virt = ioremap(WINDOW_ADDR, WINDOW_SIZE);
76
77 if (!edb7312nor_map.virt) {
78 printk(MSG_PREFIX "failed to ioremap\n");
79 return -EIO;
80 }
81
82 simple_map_init(&edb7312nor_map);
83
84 mymtd = 0;
85 type = rom_probe_types;
86 for(; !mymtd && *type; type++) {
87 mymtd = do_map_probe(*type, &edb7312nor_map);
88 }
89 if (mymtd) {
90 mymtd->owner = THIS_MODULE;
91 mymtd->name = MTDID;
92
93 mtd_parts_nb = parse_mtd_partitions(mymtd, probes, &mtd_parts, 0);
94 if (mtd_parts_nb > 0)
95 part_type = "detected";
96
97 if (mtd_parts_nb == 0) {
98 mtd_parts = static_partitions;
99 mtd_parts_nb = ARRAY_SIZE(static_partitions);
100 part_type = "static";
101 }
102
103 if (mtd_parts_nb == 0)
104 printk(KERN_NOTICE MSG_PREFIX "no partition info available\n");
105 else
106 printk(KERN_NOTICE MSG_PREFIX
107 "using %s partition definition\n", part_type);
108 /* Register the whole device first. */
109 mtd_device_register(mymtd, NULL, 0);
110 mtd_device_register(mymtd, mtd_parts, mtd_parts_nb);
111 return 0;
112 }
113
114 iounmap((void *)edb7312nor_map.virt);
115 return -ENXIO;
116}
117
118static void __exit cleanup_edb7312nor(void)
119{
120 if (mymtd) {
121 mtd_device_unregister(mymtd);
122 map_destroy(mymtd);
123 }
124 if (edb7312nor_map.virt) {
125 iounmap((void *)edb7312nor_map.virt);
126 edb7312nor_map.virt = 0;
127 }
128}
129
130module_init(init_edb7312nor);
131module_exit(cleanup_edb7312nor);
132
133MODULE_LICENSE("GPL");
134MODULE_AUTHOR("Marius Groeger <mag@sysgo.de>");
135MODULE_DESCRIPTION("Generic configurable MTD map driver");