impa7.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) impa7.c (0984c8910426371205da0b60fc1dae64a996fb64)
1/*
2 * Handle mapping of the NOR flash on implementa A7 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.

--- 10 unchanged lines hidden (view full) ---

19
20#define WINDOW_ADDR0 0x00000000 /* physical properties of flash */
21#define WINDOW_SIZE0 0x00800000
22#define WINDOW_ADDR1 0x10000000 /* physical properties of flash */
23#define WINDOW_SIZE1 0x00800000
24#define NUM_FLASHBANKS 2
25#define BUSWIDTH 4
26
1/*
2 * Handle mapping of the NOR flash on implementa A7 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.

--- 10 unchanged lines hidden (view full) ---

19
20#define WINDOW_ADDR0 0x00000000 /* physical properties of flash */
21#define WINDOW_SIZE0 0x00800000
22#define WINDOW_ADDR1 0x10000000 /* physical properties of flash */
23#define WINDOW_SIZE1 0x00800000
24#define NUM_FLASHBANKS 2
25#define BUSWIDTH 4
26
27/* can be { "cfi_probe", "jedec_probe", "map_rom", NULL } */
28#define PROBETYPES { "jedec_probe", NULL }
29
30#define MSG_PREFIX "impA7:" /* prefix for our printk()'s */
31#define MTDID "impa7-%d" /* for mtdparts= partitioning */
32
33static struct mtd_info *impa7_mtd[NUM_FLASHBANKS];
34
27#define MSG_PREFIX "impA7:" /* prefix for our printk()'s */
28#define MTDID "impa7-%d" /* for mtdparts= partitioning */
29
30static struct mtd_info *impa7_mtd[NUM_FLASHBANKS];
31
32static const char * const rom_probe_types[] = { "jedec_probe", NULL };
35
36static struct map_info impa7_map[NUM_FLASHBANKS] = {
37 {
38 .name = "impA7 NOR Flash Bank #0",
39 .size = WINDOW_SIZE0,
40 .bankwidth = BUSWIDTH,
41 },
42 {

--- 12 unchanged lines hidden (view full) ---

55 .name = "FileSystem",
56 .size = 0x800000,
57 .offset = 0x00000000
58 },
59};
60
61static int __init init_impa7(void)
62{
33
34static struct map_info impa7_map[NUM_FLASHBANKS] = {
35 {
36 .name = "impA7 NOR Flash Bank #0",
37 .size = WINDOW_SIZE0,
38 .bankwidth = BUSWIDTH,
39 },
40 {

--- 12 unchanged lines hidden (view full) ---

53 .name = "FileSystem",
54 .size = 0x800000,
55 .offset = 0x00000000
56 },
57};
58
59static int __init init_impa7(void)
60{
63 static const char *rom_probe_types[] = PROBETYPES;
64 const char **type;
61 const char * const *type;
65 int i;
66 static struct { u_long addr; u_long size; } pt[NUM_FLASHBANKS] = {
67 { WINDOW_ADDR0, WINDOW_SIZE0 },
68 { WINDOW_ADDR1, WINDOW_SIZE1 },
69 };
70 int devicesfound = 0;
71
72 for(i=0; i<NUM_FLASHBANKS; i++)

--- 50 unchanged lines hidden ---
62 int i;
63 static struct { u_long addr; u_long size; } pt[NUM_FLASHBANKS] = {
64 { WINDOW_ADDR0, WINDOW_SIZE0 },
65 { WINDOW_ADDR1, WINDOW_SIZE1 },
66 };
67 int devicesfound = 0;
68
69 for(i=0; i<NUM_FLASHBANKS; i++)

--- 50 unchanged lines hidden ---