diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-01-08 17:37:46 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-01-08 17:37:46 -0500 |
commit | 0fec53a24a5e5f7ba68d891b68f568b6aeafaca6 (patch) | |
tree | c16976218b4f9bd1632ffea9619d209392c1a213 /drivers/mtd | |
parent | b9abaa3fb7328851bdeaad19e694048f0ff71d9a (diff) |
[ARM] Remove EPXA10DB machine support
EPXA10DB seems to be uncared for:
- the "PLD" code has never been merged
- no one has reported that this platform has been broken since
at least 2.6.10
- interest seems to have dried up around March 2003.
Therefore, remove EPXA10DB support.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
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/epxa10db-flash.c | 179 |
3 files changed, 0 insertions, 188 deletions
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index b9b77cf39a18..7abd7fee0dda 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig | |||
@@ -473,14 +473,6 @@ config MTD_IXP2000 | |||
473 | IXDP425 and Coyote. If you have an IXP2000 based board and | 473 | IXDP425 and Coyote. If you have an IXP2000 based board and |
474 | would like to use the flash chips on it, say 'Y'. | 474 | would like to use the flash chips on it, say 'Y'. |
475 | 475 | ||
476 | config MTD_EPXA10DB | ||
477 | tristate "CFI Flash device mapped on Epxa10db" | ||
478 | depends on MTD_CFI && MTD_PARTITIONS && ARCH_CAMELOT | ||
479 | help | ||
480 | This enables support for the flash devices on the Altera | ||
481 | Excalibur XA10 Development Board. If you are building a kernel | ||
482 | for on of these boards then you should say 'Y' otherwise say 'N'. | ||
483 | |||
484 | config MTD_FORTUNET | 476 | config MTD_FORTUNET |
485 | tristate "CFI Flash device mapped on the FortuNet board" | 477 | tristate "CFI Flash device mapped on the FortuNet board" |
486 | depends on MTD_CFI && MTD_PARTITIONS && SA1100_FORTUNET | 478 | depends on MTD_CFI && MTD_PARTITIONS && SA1100_FORTUNET |
diff --git a/drivers/mtd/maps/Makefile b/drivers/mtd/maps/Makefile index 2f7e254912f0..ab71f172eb77 100644 --- a/drivers/mtd/maps/Makefile +++ b/drivers/mtd/maps/Makefile | |||
@@ -15,7 +15,6 @@ obj-$(CONFIG_MTD_CFI_FLAGADM) += cfi_flagadm.o | |||
15 | obj-$(CONFIG_MTD_CSTM_MIPS_IXX) += cstm_mips_ixx.o | 15 | obj-$(CONFIG_MTD_CSTM_MIPS_IXX) += cstm_mips_ixx.o |
16 | obj-$(CONFIG_MTD_DC21285) += dc21285.o | 16 | obj-$(CONFIG_MTD_DC21285) += dc21285.o |
17 | obj-$(CONFIG_MTD_DILNETPC) += dilnetpc.o | 17 | obj-$(CONFIG_MTD_DILNETPC) += dilnetpc.o |
18 | obj-$(CONFIG_MTD_EPXA10DB) += epxa10db-flash.o | ||
19 | obj-$(CONFIG_MTD_IQ80310) += iq80310.o | 18 | obj-$(CONFIG_MTD_IQ80310) += iq80310.o |
20 | obj-$(CONFIG_MTD_L440GX) += l440gx.o | 19 | obj-$(CONFIG_MTD_L440GX) += l440gx.o |
21 | obj-$(CONFIG_MTD_AMD76XROM) += amd76xrom.o | 20 | obj-$(CONFIG_MTD_AMD76XROM) += amd76xrom.o |
diff --git a/drivers/mtd/maps/epxa10db-flash.c b/drivers/mtd/maps/epxa10db-flash.c deleted file mode 100644 index 265b079fe934..000000000000 --- a/drivers/mtd/maps/epxa10db-flash.c +++ /dev/null | |||
@@ -1,179 +0,0 @@ | |||
1 | /* | ||
2 | * Flash memory access on EPXA based devices | ||
3 | * | ||
4 | * (C) 2000 Nicolas Pitre <nico@cam.org> | ||
5 | * Copyright (C) 2001 Altera Corporation | ||
6 | * Copyright (C) 2001 Red Hat, Inc. | ||
7 | * | ||
8 | * $Id: epxa10db-flash.c,v 1.15 2005/11/07 11:14:27 gleixner Exp $ | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; either version 2 of the License, or | ||
13 | * (at your option) any later version. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, | ||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18 | * GNU General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License | ||
21 | * along with this program; if not, write to the Free Software | ||
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
23 | */ | ||
24 | |||
25 | #include <linux/config.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/types.h> | ||
28 | #include <linux/kernel.h> | ||
29 | #include <linux/init.h> | ||
30 | #include <linux/slab.h> | ||
31 | |||
32 | #include <linux/mtd/mtd.h> | ||
33 | #include <linux/mtd/map.h> | ||
34 | #include <linux/mtd/partitions.h> | ||
35 | |||
36 | #include <asm/io.h> | ||
37 | #include <asm/hardware.h> | ||
38 | |||
39 | #ifdef CONFIG_EPXA10DB | ||
40 | #define BOARD_NAME "EPXA10DB" | ||
41 | #else | ||
42 | #define BOARD_NAME "EPXA1DB" | ||
43 | #endif | ||
44 | |||
45 | static int nr_parts = 0; | ||
46 | static struct mtd_partition *parts; | ||
47 | |||
48 | static struct mtd_info *mymtd; | ||
49 | |||
50 | static int epxa_default_partitions(struct mtd_info *master, struct mtd_partition **pparts); | ||
51 | |||
52 | |||
53 | static struct map_info epxa_map = { | ||
54 | .name = "EPXA flash", | ||
55 | .size = FLASH_SIZE, | ||
56 | .bankwidth = 2, | ||
57 | .phys = FLASH_START, | ||
58 | }; | ||
59 | |||
60 | static const char *probes[] = { "RedBoot", "afs", NULL }; | ||
61 | |||
62 | static int __init epxa_mtd_init(void) | ||
63 | { | ||
64 | int i; | ||
65 | |||
66 | printk(KERN_NOTICE "%s flash device: 0x%x at 0x%x\n", BOARD_NAME, FLASH_SIZE, FLASH_START); | ||
67 | |||
68 | epxa_map.virt = ioremap(FLASH_START, FLASH_SIZE); | ||
69 | if (!epxa_map.virt) { | ||
70 | printk("Failed to ioremap %s flash\n",BOARD_NAME); | ||
71 | return -EIO; | ||
72 | } | ||
73 | simple_map_init(&epxa_map); | ||
74 | |||
75 | mymtd = do_map_probe("cfi_probe", &epxa_map); | ||
76 | if (!mymtd) { | ||
77 | iounmap((void *)epxa_map.virt); | ||
78 | return -ENXIO; | ||
79 | } | ||
80 | |||
81 | mymtd->owner = THIS_MODULE; | ||
82 | |||
83 | /* Unlock the flash device. */ | ||
84 | if(mymtd->unlock){ | ||
85 | for (i=0; i<mymtd->numeraseregions;i++){ | ||
86 | int j; | ||
87 | for(j=0;j<mymtd->eraseregions[i].numblocks;j++){ | ||
88 | mymtd->unlock(mymtd,mymtd->eraseregions[i].offset + j * mymtd->eraseregions[i].erasesize,mymtd->eraseregions[i].erasesize); | ||
89 | } | ||
90 | } | ||
91 | } | ||
92 | |||
93 | #ifdef CONFIG_MTD_PARTITIONS | ||
94 | nr_parts = parse_mtd_partitions(mymtd, probes, &parts, 0); | ||
95 | |||
96 | if (nr_parts > 0) { | ||
97 | add_mtd_partitions(mymtd, parts, nr_parts); | ||
98 | return 0; | ||
99 | } | ||
100 | #endif | ||
101 | /* No recognised partitioning schemes found - use defaults */ | ||
102 | nr_parts = epxa_default_partitions(mymtd, &parts); | ||
103 | if (nr_parts > 0) { | ||
104 | add_mtd_partitions(mymtd, parts, nr_parts); | ||
105 | return 0; | ||
106 | } | ||
107 | |||
108 | /* If all else fails... */ | ||
109 | add_mtd_device(mymtd); | ||
110 | return 0; | ||
111 | } | ||
112 | |||
113 | static void __exit epxa_mtd_cleanup(void) | ||
114 | { | ||
115 | if (mymtd) { | ||
116 | if (nr_parts) | ||
117 | del_mtd_partitions(mymtd); | ||
118 | else | ||
119 | del_mtd_device(mymtd); | ||
120 | map_destroy(mymtd); | ||
121 | } | ||
122 | if (epxa_map.virt) { | ||
123 | iounmap((void *)epxa_map.virt); | ||
124 | epxa_map.virt = 0; | ||
125 | } | ||
126 | } | ||
127 | |||
128 | |||
129 | /* | ||
130 | * This will do for now, once we decide which bootldr we're finally | ||
131 | * going to use then we'll remove this function and do it properly | ||
132 | * | ||
133 | * Partions are currently (as offsets from base of flash): | ||
134 | * 0x00000000 - 0x003FFFFF - bootloader (!) | ||
135 | * 0x00400000 - 0x00FFFFFF - Flashdisk | ||
136 | */ | ||
137 | |||
138 | static int __init epxa_default_partitions(struct mtd_info *master, struct mtd_partition **pparts) | ||
139 | { | ||
140 | struct mtd_partition *parts; | ||
141 | int ret, i; | ||
142 | int npartitions = 0; | ||
143 | char *names; | ||
144 | const char *name = "jffs"; | ||
145 | |||
146 | printk("Using default partitions for %s\n",BOARD_NAME); | ||
147 | npartitions=1; | ||
148 | parts = kmalloc(npartitions*sizeof(*parts)+strlen(name), GFP_KERNEL); | ||
149 | memzero(parts,npartitions*sizeof(*parts)+strlen(name)); | ||
150 | if (!parts) { | ||
151 | ret = -ENOMEM; | ||
152 | goto out; | ||
153 | } | ||
154 | i=0; | ||
155 | names = (char *)&parts[npartitions]; | ||
156 | parts[i].name = names; | ||
157 | names += strlen(name) + 1; | ||
158 | strcpy(parts[i].name, name); | ||
159 | |||
160 | #ifdef CONFIG_EPXA10DB | ||
161 | parts[i].size = FLASH_SIZE-0x00400000; | ||
162 | parts[i].offset = 0x00400000; | ||
163 | #else | ||
164 | parts[i].size = FLASH_SIZE-0x00180000; | ||
165 | parts[i].offset = 0x00180000; | ||
166 | #endif | ||
167 | |||
168 | out: | ||
169 | *pparts = parts; | ||
170 | return npartitions; | ||
171 | } | ||
172 | |||
173 | |||
174 | module_init(epxa_mtd_init); | ||
175 | module_exit(epxa_mtd_cleanup); | ||
176 | |||
177 | MODULE_AUTHOR("Clive Davies"); | ||
178 | MODULE_DESCRIPTION("Altera epxa mtd flash map"); | ||
179 | MODULE_LICENSE("GPL"); | ||