diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-07-11 09:55:48 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-07-11 09:55:48 -0400 |
commit | db1b39d8b860e3716620c225bc86e0ec41764e34 (patch) | |
tree | 8739074db733ef767400ea92cfbfed9352ddb92d /drivers/mtd/maps | |
parent | a6bc432e296dfa1f05d4b586ca5ca3085a2d42d7 (diff) | |
parent | 4eb6bf6bfb580afaf1e1a1d30cba17a078530cf4 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r-- | drivers/mtd/maps/Kconfig | 6 | ||||
-rw-r--r-- | drivers/mtd/maps/Makefile | 1 | ||||
-rw-r--r-- | drivers/mtd/maps/lasat.c | 103 |
3 files changed, 0 insertions, 110 deletions
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index b665e4ac2208..f88ebc5b685e 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig | |||
@@ -258,12 +258,6 @@ config MTD_TSUNAMI | |||
258 | help | 258 | help |
259 | Support for the flash chip on Tsunami TIG bus. | 259 | Support for the flash chip on Tsunami TIG bus. |
260 | 260 | ||
261 | config MTD_LASAT | ||
262 | tristate "LASAT flash device" | ||
263 | depends on LASAT && MTD_CFI | ||
264 | help | ||
265 | Support for the flash chips on the Lasat 100 and 200 boards. | ||
266 | |||
267 | config MTD_NETtel | 261 | config MTD_NETtel |
268 | tristate "CFI flash device on SnapGear/SecureEdge" | 262 | tristate "CFI flash device on SnapGear/SecureEdge" |
269 | depends on X86 && MTD_PARTITIONS && MTD_JEDECPROBE | 263 | depends on X86 && MTD_PARTITIONS && MTD_JEDECPROBE |
diff --git a/drivers/mtd/maps/Makefile b/drivers/mtd/maps/Makefile index 3acbb5d01ca4..970b189271a2 100644 --- a/drivers/mtd/maps/Makefile +++ b/drivers/mtd/maps/Makefile | |||
@@ -47,7 +47,6 @@ obj-$(CONFIG_MTD_OCELOT) += ocelot.o | |||
47 | obj-$(CONFIG_MTD_SOLUTIONENGINE)+= solutionengine.o | 47 | obj-$(CONFIG_MTD_SOLUTIONENGINE)+= solutionengine.o |
48 | obj-$(CONFIG_MTD_PCI) += pci.o | 48 | obj-$(CONFIG_MTD_PCI) += pci.o |
49 | obj-$(CONFIG_MTD_ALCHEMY) += alchemy-flash.o | 49 | obj-$(CONFIG_MTD_ALCHEMY) += alchemy-flash.o |
50 | obj-$(CONFIG_MTD_LASAT) += lasat.o | ||
51 | obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o | 50 | obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o |
52 | obj-$(CONFIG_MTD_EDB7312) += edb7312.o | 51 | obj-$(CONFIG_MTD_EDB7312) += edb7312.o |
53 | obj-$(CONFIG_MTD_IMPA7) += impa7.o | 52 | obj-$(CONFIG_MTD_IMPA7) += impa7.o |
diff --git a/drivers/mtd/maps/lasat.c b/drivers/mtd/maps/lasat.c deleted file mode 100644 index e34376321050..000000000000 --- a/drivers/mtd/maps/lasat.c +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | /* | ||
2 | * Flash device on Lasat 100 and 200 boards | ||
3 | * | ||
4 | * (C) 2002 Brian Murphy <brian@murphy.dk> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License version | ||
8 | * 2 as published by the Free Software Foundation. | ||
9 | * | ||
10 | * $Id: lasat.c,v 1.9 2004/11/04 13:24:15 gleixner Exp $ | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/module.h> | ||
15 | #include <linux/types.h> | ||
16 | #include <linux/kernel.h> | ||
17 | #include <linux/init.h> | ||
18 | #include <asm/io.h> | ||
19 | #include <linux/mtd/mtd.h> | ||
20 | #include <linux/mtd/map.h> | ||
21 | #include <linux/mtd/partitions.h> | ||
22 | #include <asm/lasat/lasat.h> | ||
23 | |||
24 | static struct mtd_info *lasat_mtd; | ||
25 | |||
26 | static struct mtd_partition partition_info[LASAT_MTD_LAST]; | ||
27 | static char *lasat_mtd_partnames[] = {"Bootloader", "Service", "Normal", "Filesystem", "Config"}; | ||
28 | |||
29 | static void lasat_set_vpp(struct map_info *map, int vpp) | ||
30 | { | ||
31 | if (vpp) | ||
32 | *lasat_misc->flash_wp_reg |= 1 << lasat_misc->flash_wp_bit; | ||
33 | else | ||
34 | *lasat_misc->flash_wp_reg &= ~(1 << lasat_misc->flash_wp_bit); | ||
35 | } | ||
36 | |||
37 | static struct map_info lasat_map = { | ||
38 | .name = "LASAT flash", | ||
39 | .bankwidth = 4, | ||
40 | .set_vpp = lasat_set_vpp | ||
41 | }; | ||
42 | |||
43 | static int __init init_lasat(void) | ||
44 | { | ||
45 | int i; | ||
46 | /* since we use AMD chips and set_vpp is not implimented | ||
47 | * for these (yet) we still have to permanently enable flash write */ | ||
48 | printk(KERN_NOTICE "Unprotecting flash\n"); | ||
49 | ENABLE_VPP((&lasat_map)); | ||
50 | |||
51 | lasat_map.phys = lasat_flash_partition_start(LASAT_MTD_BOOTLOADER); | ||
52 | lasat_map.virt = ioremap_nocache( | ||
53 | lasat_map.phys, lasat_board_info.li_flash_size); | ||
54 | lasat_map.size = lasat_board_info.li_flash_size; | ||
55 | |||
56 | simple_map_init(&lasat_map); | ||
57 | |||
58 | for (i=0; i < LASAT_MTD_LAST; i++) | ||
59 | partition_info[i].name = lasat_mtd_partnames[i]; | ||
60 | |||
61 | lasat_mtd = do_map_probe("cfi_probe", &lasat_map); | ||
62 | |||
63 | if (!lasat_mtd) | ||
64 | lasat_mtd = do_map_probe("jedec_probe", &lasat_map); | ||
65 | |||
66 | if (lasat_mtd) { | ||
67 | u32 size, offset = 0; | ||
68 | |||
69 | lasat_mtd->owner = THIS_MODULE; | ||
70 | |||
71 | for (i=0; i < LASAT_MTD_LAST; i++) { | ||
72 | size = lasat_flash_partition_size(i); | ||
73 | partition_info[i].size = size; | ||
74 | partition_info[i].offset = offset; | ||
75 | offset += size; | ||
76 | } | ||
77 | |||
78 | add_mtd_partitions( lasat_mtd, partition_info, LASAT_MTD_LAST ); | ||
79 | return 0; | ||
80 | } | ||
81 | |||
82 | iounmap(lasat_map.virt); | ||
83 | return -ENXIO; | ||
84 | } | ||
85 | |||
86 | static void __exit cleanup_lasat(void) | ||
87 | { | ||
88 | if (lasat_mtd) { | ||
89 | del_mtd_partitions(lasat_mtd); | ||
90 | map_destroy(lasat_mtd); | ||
91 | } | ||
92 | if (lasat_map.virt) { | ||
93 | iounmap(lasat_map.virt); | ||
94 | lasat_map.virt = 0; | ||
95 | } | ||
96 | } | ||
97 | |||
98 | module_init(init_lasat); | ||
99 | module_exit(cleanup_lasat); | ||
100 | |||
101 | MODULE_LICENSE("GPL"); | ||
102 | MODULE_AUTHOR("Brian Murphy <brian@murphy.dk>"); | ||
103 | MODULE_DESCRIPTION("Lasat Safepipe/Masquerade MTD map driver"); | ||