diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-03-11 11:38:43 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 07:57:24 -0400 |
commit | e6828b1b7af084d1271779eeeaf079dfd0c38dac (patch) | |
tree | ffc00c427cedb66aec61cdfa302ce687a35afa16 /drivers/mtd | |
parent | ad2457894c272279bf73ca46ae5ea5de4876d2a0 (diff) |
mtd: remove the dbox2-flash map driver
This driver depends on the CONFIG_DBOX2 symbol which does not exist in
the kernel, which means the driver is dead.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/maps/Kconfig | 8 | ||||
-rw-r--r-- | drivers/mtd/maps/Makefile | 1 | ||||
-rw-r--r-- | drivers/mtd/maps/dbox2-flash.c | 123 |
3 files changed, 0 insertions, 132 deletions
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index 3ed17c4d4358..74fe0c2f05a6 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig | |||
@@ -302,14 +302,6 @@ config MTD_MBX860 | |||
302 | MBX860 board. If you have one of these boards and would like | 302 | MBX860 board. If you have one of these boards and would like |
303 | to use the flash chips on it, say 'Y'. | 303 | to use the flash chips on it, say 'Y'. |
304 | 304 | ||
305 | config MTD_DBOX2 | ||
306 | tristate "CFI Flash device mapped on D-Box2" | ||
307 | depends on DBOX2 && MTD_CFI_INTELSTD && MTD_CFI_INTELEXT && MTD_CFI_AMDSTD | ||
308 | help | ||
309 | This enables access routines for the flash chips on the Nokia/Sagem | ||
310 | D-Box 2 board. If you have one of these boards and would like to use | ||
311 | the flash chips on it, say 'Y'. | ||
312 | |||
313 | config MTD_CFI_FLAGADM | 305 | config MTD_CFI_FLAGADM |
314 | tristate "CFI Flash device mapping on FlagaDM" | 306 | tristate "CFI Flash device mapping on FlagaDM" |
315 | depends on 8xx && MTD_CFI | 307 | depends on 8xx && MTD_CFI |
diff --git a/drivers/mtd/maps/Makefile b/drivers/mtd/maps/Makefile index 4ded28711bc1..93f4db2c1da8 100644 --- a/drivers/mtd/maps/Makefile +++ b/drivers/mtd/maps/Makefile | |||
@@ -34,7 +34,6 @@ obj-$(CONFIG_MTD_TS5500) += ts5500_flash.o | |||
34 | obj-$(CONFIG_MTD_SUN_UFLASH) += sun_uflash.o | 34 | obj-$(CONFIG_MTD_SUN_UFLASH) += sun_uflash.o |
35 | obj-$(CONFIG_MTD_VMAX) += vmax301.o | 35 | obj-$(CONFIG_MTD_VMAX) += vmax301.o |
36 | obj-$(CONFIG_MTD_SCx200_DOCFLASH)+= scx200_docflash.o | 36 | obj-$(CONFIG_MTD_SCx200_DOCFLASH)+= scx200_docflash.o |
37 | obj-$(CONFIG_MTD_DBOX2) += dbox2-flash.o | ||
38 | obj-$(CONFIG_MTD_SOLUTIONENGINE)+= solutionengine.o | 37 | obj-$(CONFIG_MTD_SOLUTIONENGINE)+= solutionengine.o |
39 | obj-$(CONFIG_MTD_PCI) += pci.o | 38 | obj-$(CONFIG_MTD_PCI) += pci.o |
40 | obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o | 39 | obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o |
diff --git a/drivers/mtd/maps/dbox2-flash.c b/drivers/mtd/maps/dbox2-flash.c deleted file mode 100644 index 85bdece6ab3f..000000000000 --- a/drivers/mtd/maps/dbox2-flash.c +++ /dev/null | |||
@@ -1,123 +0,0 @@ | |||
1 | /* | ||
2 | * D-Box 2 flash driver | ||
3 | */ | ||
4 | |||
5 | #include <linux/module.h> | ||
6 | #include <linux/types.h> | ||
7 | #include <linux/kernel.h> | ||
8 | #include <linux/init.h> | ||
9 | #include <asm/io.h> | ||
10 | #include <linux/mtd/mtd.h> | ||
11 | #include <linux/mtd/map.h> | ||
12 | #include <linux/mtd/partitions.h> | ||
13 | #include <linux/errno.h> | ||
14 | |||
15 | /* partition_info gives details on the logical partitions that the split the | ||
16 | * single flash device into. If the size if zero we use up to the end of the | ||
17 | * device. */ | ||
18 | static struct mtd_partition partition_info[]= { | ||
19 | { | ||
20 | .name = "BR bootloader", | ||
21 | .size = 128 * 1024, | ||
22 | .offset = 0, | ||
23 | .mask_flags = MTD_WRITEABLE | ||
24 | }, | ||
25 | { | ||
26 | .name = "FLFS (U-Boot)", | ||
27 | .size = 128 * 1024, | ||
28 | .offset = MTDPART_OFS_APPEND, | ||
29 | .mask_flags = 0 | ||
30 | }, | ||
31 | { | ||
32 | .name = "Root (SquashFS)", | ||
33 | .size = 7040 * 1024, | ||
34 | .offset = MTDPART_OFS_APPEND, | ||
35 | .mask_flags = 0 | ||
36 | }, | ||
37 | { | ||
38 | .name = "var (JFFS2)", | ||
39 | .size = 896 * 1024, | ||
40 | .offset = MTDPART_OFS_APPEND, | ||
41 | .mask_flags = 0 | ||
42 | }, | ||
43 | { | ||
44 | .name = "Flash without bootloader", | ||
45 | .size = MTDPART_SIZ_FULL, | ||
46 | .offset = 128 * 1024, | ||
47 | .mask_flags = 0 | ||
48 | }, | ||
49 | { | ||
50 | .name = "Complete Flash", | ||
51 | .size = MTDPART_SIZ_FULL, | ||
52 | .offset = 0, | ||
53 | .mask_flags = MTD_WRITEABLE | ||
54 | } | ||
55 | }; | ||
56 | |||
57 | #define NUM_PARTITIONS ARRAY_SIZE(partition_info) | ||
58 | |||
59 | #define WINDOW_ADDR 0x10000000 | ||
60 | #define WINDOW_SIZE 0x800000 | ||
61 | |||
62 | static struct mtd_info *mymtd; | ||
63 | |||
64 | |||
65 | struct map_info dbox2_flash_map = { | ||
66 | .name = "D-Box 2 flash memory", | ||
67 | .size = WINDOW_SIZE, | ||
68 | .bankwidth = 4, | ||
69 | .phys = WINDOW_ADDR, | ||
70 | }; | ||
71 | |||
72 | static int __init init_dbox2_flash(void) | ||
73 | { | ||
74 | printk(KERN_NOTICE "D-Box 2 flash driver (size->0x%X mem->0x%X)\n", WINDOW_SIZE, WINDOW_ADDR); | ||
75 | dbox2_flash_map.virt = ioremap(WINDOW_ADDR, WINDOW_SIZE); | ||
76 | |||
77 | if (!dbox2_flash_map.virt) { | ||
78 | printk("Failed to ioremap\n"); | ||
79 | return -EIO; | ||
80 | } | ||
81 | simple_map_init(&dbox2_flash_map); | ||
82 | |||
83 | // Probe for dual Intel 28F320 or dual AMD | ||
84 | mymtd = do_map_probe("cfi_probe", &dbox2_flash_map); | ||
85 | if (!mymtd) { | ||
86 | // Probe for single Intel 28F640 | ||
87 | dbox2_flash_map.bankwidth = 2; | ||
88 | |||
89 | mymtd = do_map_probe("cfi_probe", &dbox2_flash_map); | ||
90 | } | ||
91 | |||
92 | if (mymtd) { | ||
93 | mymtd->owner = THIS_MODULE; | ||
94 | |||
95 | /* Create MTD devices for each partition. */ | ||
96 | mtd_device_register(mymtd, partition_info, NUM_PARTITIONS); | ||
97 | |||
98 | return 0; | ||
99 | } | ||
100 | |||
101 | iounmap((void *)dbox2_flash_map.virt); | ||
102 | return -ENXIO; | ||
103 | } | ||
104 | |||
105 | static void __exit cleanup_dbox2_flash(void) | ||
106 | { | ||
107 | if (mymtd) { | ||
108 | mtd_device_unregister(mymtd); | ||
109 | map_destroy(mymtd); | ||
110 | } | ||
111 | if (dbox2_flash_map.virt) { | ||
112 | iounmap((void *)dbox2_flash_map.virt); | ||
113 | dbox2_flash_map.virt = 0; | ||
114 | } | ||
115 | } | ||
116 | |||
117 | module_init(init_dbox2_flash); | ||
118 | module_exit(cleanup_dbox2_flash); | ||
119 | |||
120 | |||
121 | MODULE_LICENSE("GPL"); | ||
122 | MODULE_AUTHOR("Kári Davíðsson <kd@flaga.is>, Bastian Blank <waldi@tuxbox.org>, Alexander Wild <wild@te-elektronik.com>"); | ||
123 | MODULE_DESCRIPTION("MTD map driver for D-Box 2 board"); | ||