Go to the documentation of this file.
11 #include <linux/module.h>
12 #include <linux/types.h>
13 #include <linux/kernel.h>
20 #define WINDOW_ADDR0 0x00000000
21 #define WINDOW_SIZE0 0x00800000
22 #define WINDOW_ADDR1 0x10000000
23 #define WINDOW_SIZE1 0x00800000
24 #define NUM_FLASHBANKS 2
28 #define PROBETYPES { "jedec_probe", NULL }
30 #define MSG_PREFIX "impA7:"
31 #define MTDID "impa7-%d"
38 .name =
"impA7 NOR Flash Bank #0",
43 .name =
"impA7 NOR Flash Bank #1",
61 static int __init init_impa7(
void)
63 static const char *rom_probe_types[] =
PROBETYPES;
77 impa7_map[
i].
phys = pt[
i].addr;
79 if (!impa7_map[i].virt) {
86 type = rom_probe_types;
87 for(; !impa7_mtd[
i] && *
type; type++) {
99 iounmap((
void *)impa7_map[i].virt);
101 return devicesfound == 0 ? -
ENXIO : 0;
104 static void __exit cleanup_impa7(
void)
111 iounmap((
void *)impa7_map[i].virt);
112 impa7_map[
i].
virt = 0;