FreeCalypso > hg > fc-selenite
annotate src/cs/drivers/drv_app/ffs/board/dev.c @ 135:ac4c0a9bc022
FFS dev.c: change from Magnetite for potential future
embedded modem products with K5A32xxCTM flash chips
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 20 Dec 2018 04:24:06 +0000 |
parents | 7d50d8d13711 |
children | 7409b22cac61 |
rev | line source |
---|---|
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /****************************************************************************** |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * Flash File System (ffs) |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * Idea, design and coding by Mads Meisner-Jensen, mmj@ti.com |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 * |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 * ffs flash device definitions |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 * |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 * $Id: dev.c 1.34.1.25 Thu, 18 Dec 2003 10:50:52 +0100 tsj $ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 * |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 ******************************************************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 #include "ffs/ffs.h" |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 #include "ffs/board/drv.h" |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 #include "config/board.cfg" |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 #include "config/rf.cfg" |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 #include "config/fc-target.cfg" |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 /****************************************************************************** |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 Flash memories supported: |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 The real flash device names are listed in the Device column. The names of |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 compatible/similar devices are listed in the "aliases" column. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 Compatible/similar devices are e.g. combo devices using that particular |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 flash device. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 The size column denotes the full device memory size in megabits (Mb). For |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 dual and multi-bank devices, two or more numbers indicate the sizes of the |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 respective banks, starting from the lowest address. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 ---------------+--------+------------------------------------------------- |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 Device | Size| Aliases and Notes |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 ---------------+--------+----------------------------------------------------- |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 AMD | | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 29DL161T |15.5+0.5| |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 29DL162T |14.0+2.0| |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 29DL163T |12.0+4.0| |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 29DL164T | 8.0+8.0| |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 29DL322T |28.0+4.0| |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 29DL323T |24.0+8.0| |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 ---------------+--------+----------------------------------------------------- |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 Fujitsu | | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 29DL161T |15.5+0.5| (Am29DL161) |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 29DL162T |14.0+2.0| (Am29DL162) |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 29DL163T |12.0+4.0| (Am29DL163) |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 29DL164T | 8.0+8.0| (Am29DL164) |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 29DL321TD | | (Am29DL321), MB84VD22181, MB84VD22081, MB84VD22191 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 29DL322TD |28.0+4.0| (Am29DL322), MB84VD22182, MB84VD22082, MB84VD22192 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 29DL323TD |24.0+8.0| (Am29DL323), MB84VD22183, MB84VD22083, MB84VD22193, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 | | BSample device |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 ---------------+--------+----------------------------------------------------- |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 Samsung | | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 K5A3240YT |24+8 | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 K5A3240YB | 8+24 | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 K5A3340YT |16+16 | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 K5A3340YB |14+18 | (!?) |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 ---------------+--------+----------------------------------------------------- |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 SST | | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 SST36VF1601 | | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 ---------------+--------+----------------------------------------------------- |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 Toshiba | | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 ? | | TH50VSF2581AASB |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 ---------------+--------+----------------------------------------------------- |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 Intel | | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 28F160C3 | 16.0| Both Top and Bottom boot |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 28F320C3 | 32.0| Both Top and Bottom boot |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 28F640C3 | 64.0| Both Top and Bottom boot |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 28F640W30 | 64.0| Both Top and Bottom boot, DSample device |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 ---------------+--------+----------------------------------------------------- |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 Test | | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 | | |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 ---------------+--------+----------------------------------------------------- |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 ******************************************************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 /****************************************************************************** |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 * Flash Device Memory Maps |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 ******************************************************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 // The memory map, flash_AAxBB[], used by each flash device definition in |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 // the flash_info[] array below can be either one of the pre-defined ones |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 // below or a custom-defined one. Each line in the memory map represents one |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 // physical device sector. The columns in the memory map has the following |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 // meaning: |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 // |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 // 1. Relative address offset of sector. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 // 2. Base 2 logarithm of sector byte size, e.g. 64kB ~ 2^16. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 // |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 // Note that does NOT support a flash definition with different sized blocks |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 // so all blocks contained in the device definition MUST be the same size! |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 #if defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_FCFAM) |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 // 256 KiB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 static const struct block_info_s flash_32x256[] = |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 { |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 { 0x000000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 { 0x040000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 { 0x080000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 { 0x0C0000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 { 0x100000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 { 0x140000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 { 0x180000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 { 0x1C0000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 { 0x200000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 { 0x240000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 { 0x280000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 { 0x2C0000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 { 0x300000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 { 0x340000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 { 0x380000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
111 { 0x3C0000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
112 { 0x400000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
113 { 0x440000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
114 { 0x480000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
115 { 0x4C0000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
116 { 0x500000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
117 { 0x540000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
118 { 0x580000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
119 { 0x5C0000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
120 { 0x600000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
121 { 0x640000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
122 { 0x680000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
123 { 0x6C0000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
124 { 0x700000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
125 { 0x740000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
126 { 0x780000, 18 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 { 0x7C0000, 18 } |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
128 }; |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129 #endif |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
130 |
134
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
131 #if defined(CONFIG_TARGET_LEONARDO) || defined(CONFIG_TARGET_PIRELLI) || \ |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
132 defined(CONFIG_TARGET_FCFAM) |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 // 128x64kb |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 static const struct block_info_s flash_128x64[] = |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135 { |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 { 0x00000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 { 0x10000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 { 0x20000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 { 0x30000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
140 { 0x40000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141 { 0x50000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
142 { 0x60000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
143 { 0x70000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
144 { 0x80000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
145 { 0x90000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
146 { 0xa0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 { 0xb0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148 { 0xc0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
149 { 0xd0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
150 { 0xe0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 { 0xf0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 { 0x100000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 { 0x110000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 { 0x120000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 { 0x130000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 { 0x140000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 { 0x150000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 { 0x160000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 { 0x170000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 { 0x180000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 { 0x190000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 { 0x1a0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 { 0x1b0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 { 0x1c0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 { 0x1d0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 { 0x1e0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 { 0x1f0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 { 0x200000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 { 0x210000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 { 0x220000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171 { 0x230000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 { 0x240000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 { 0x250000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 { 0x260000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 { 0x270000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
176 { 0x280000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 { 0x290000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 { 0x2a0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 { 0x2b0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
180 { 0x2c0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
181 { 0x2d0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 { 0x2e0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 { 0x2f0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 { 0x300000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185 { 0x310000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
186 { 0x320000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187 { 0x330000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 { 0x340000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189 { 0x350000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
190 { 0x360000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
191 { 0x370000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192 { 0x380000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 { 0x390000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194 { 0x3a0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 { 0x3b0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 { 0x3c0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
197 { 0x3d0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 { 0x3e0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
199 { 0x3f0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 { 0x400000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 { 0x410000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
202 { 0x420000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
203 { 0x430000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 { 0x440000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
205 { 0x450000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
206 { 0x460000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207 { 0x470000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 { 0x480000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 { 0x490000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 { 0x4a0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 { 0x4b0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 { 0x4c0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213 { 0x4d0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 { 0x4e0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
215 { 0x4f0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
216 { 0x500000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
217 { 0x510000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
218 { 0x520000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
219 { 0x530000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
220 { 0x540000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
221 { 0x550000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 { 0x560000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 { 0x570000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224 { 0x580000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 { 0x590000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
226 { 0x5a0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
227 { 0x5b0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 { 0x5c0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 { 0x5d0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
230 { 0x5e0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
231 { 0x5f0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
232 { 0x600000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
233 { 0x610000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
234 { 0x620000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
235 { 0x630000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
236 { 0x640000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
237 { 0x650000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
238 { 0x660000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
239 { 0x670000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
240 { 0x680000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
241 { 0x690000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
242 { 0x6a0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
243 { 0x6b0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
244 { 0x6c0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
245 { 0x6d0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
246 { 0x6e0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 { 0x6f0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 { 0x700000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 { 0x710000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 { 0x720000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
251 { 0x730000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 { 0x740000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 { 0x750000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 { 0x760000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
255 { 0x770000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
256 { 0x780000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
257 { 0x790000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
258 { 0x7a0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
259 { 0x7b0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
260 { 0x7c0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
261 { 0x7d0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
262 { 0x7e0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
263 { 0x7f0000, 16 } |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
264 }; |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
265 #endif |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
266 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
267 // 16x64kB |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
268 static const struct block_info_s flash_16x64[] = |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
269 { |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
270 { 0x00000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
271 { 0x10000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
272 { 0x20000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
273 { 0x30000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
274 { 0x40000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
275 { 0x50000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
276 { 0x60000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
277 { 0x70000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
278 { 0x80000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
279 { 0x90000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
280 { 0xA0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
281 { 0xB0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
282 { 0xC0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
283 { 0xD0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
284 { 0xE0000, 16 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
285 { 0xF0000, 16 } |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
286 }; |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
287 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
288 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
289 // 8x8kB |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
290 static const struct block_info_s flash_8x8[] = |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
291 { |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
292 { 0x0000, 13 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
293 { 0x2000, 13 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
294 { 0x4000, 13 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
295 { 0x6000, 13 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
296 { 0x8000, 13 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
297 { 0xa000, 13 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
298 { 0xc000, 13 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
299 { 0xe000, 13 } |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
300 }; |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
301 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
302 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
303 // 4x4kB |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
304 static const struct block_info_s flash_4x4[] = |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
305 { |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
306 { 0x0000, 12 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
307 { 0x1000, 12 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
308 { 0x2000, 12 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
309 { 0x3000, 12 } |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
310 }; |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
311 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
312 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
313 /****************************************************************************** |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
314 * Flash Device Info Array |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
315 ******************************************************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
316 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
317 // Each entry in the array below represents one flash device definition as |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
318 // FFS needs it. The columns have the following meaning: |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
319 // |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
320 // 1. Device memory map. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
321 // 2. Absolute address of the first sector to be used by/for FFS. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
322 // 3. Manufacturer code. Values are from FFS_MANUFACTURER enumeration |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
323 // in drv.h |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
324 // 4. Device code. Available from device datasheet. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
325 // 5. FFS device driver to use. Values are from FFS_DRIVER enumeration |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
326 // in drv.h |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
327 // 6. Number of sectors to use, starting from the address given in |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
328 // column 2. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
329 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
330 /********** RAM configuration ************************************************* |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
331 * Note it is necessary to hardwire the configuration of the ram driver |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
332 * in cfgffs.c. The ram driver is configured like and pseudo flash |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
333 * device with only a few exceptions: Field 2 which is the absolute |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
334 * address of the first sector MUST be set to zero, instead the address |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
335 * is configured in cfgffs.c. Field 4 'Device code' is an arbitrary |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
336 * value and not a real device code. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
337 ******************************************************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
338 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
339 /********** Multi-id configuration ******************************************** |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
340 * When 227Eh is output, it indicates that two additional codes, called |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
341 * Extended Device Codes, will be required. The two additional codes will be |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
342 * read and the lower byte of each code will be combined into one id, which |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
343 * is used for auto-detection of the flash configuration. The device code |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
344 * format for the multi-id devices is as follow: 0x227E, 0x22YY, 0x22ZZ -> |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
345 * 0xYYZZ. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
346 ******************************************************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
347 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
348 const struct flash_info_s flash_info[] = |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
349 { |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
350 #if 0 |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
351 //BOARD 34. Ram device 4x4kB. Note it is necessary to hardwire the conf |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
352 //in cfgffs.c |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
353 { &flash_4x4[0], 0, MANUFACT_RAM, 0x0404, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
354 FFS_DRIVER_RAM, 4}, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
355 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
356 // Ram device 8x8kB. Note it is necessary to hardwire the conf in cfgffs.c |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
357 { &flash_8x8[0], 0, MANUFACT_RAM, 0x080D, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
358 FFS_DRIVER_RAM, 8}, |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
359 #endif |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
360 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
361 #ifdef CONFIG_TARGET_PIRELLI |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
362 |
134
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
363 /* |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
364 * Our familiar version of the Pirelli DP-L10 hw features Spansion |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
365 * S71PL129NC0HFW4B flash (N version, 256 KiB sectors), but apparently |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
366 * an earlier hw version had S71PL-J flash with 64 KiB sectors, |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
367 * and Pirelli's official fw supports both. They have modified |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
368 * TI's flash ID code to generate device ID 0x2100 for the J version |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
369 * or 0x2101 for the N version. We have now replicated this ID logic |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
370 * in our FreeCalypso code base, and we can now support both flash |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
371 * chip versions as well. |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
372 * |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
373 * Our FFS configuration for the Pirelli target is aftermarket. |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
374 */ |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
375 |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
376 /* J flash */ |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
377 { &flash_128x64[0], (char *) 0x02480000, MANUFACT_AMD, 0x2100, |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
378 FFS_DRIVER_AMD, 24 }, |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
379 |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
380 /* N flash */ |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
381 { &flash_32x256[0], (char *) 0x02480000, MANUFACT_AMD, 0x2101, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
382 FFS_DRIVER_AMD, 6 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
383 |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
384 #elif defined(CONFIG_TARGET_FCFAM) |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
385 |
134
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
386 /* |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
387 * Our FreeCalypso hardware family is currently in its infancy |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
388 * (we have only one board design so far, but hoping to have more), |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
389 * thus the set of possible flash chip types on FC hw platforms |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
390 * is expected to grow. The footprint on our current FCDEV3B PCB |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
391 * ideally fits Spansion MCPs with two chip select banks (either |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
392 * S71PL-J or S71PL-N), but can also be fitted with Openmoko's |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
393 * Samsung K5A3281. Spansion S71PL129NC0HFW4B (copied from the |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
394 * Pirelli DP-L10) is our official flash+RAM chip, populated on |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
395 * our production boards, but now that we have fixed TI's autodetect |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
396 * code to work with the newer Spansion chips, we can support |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
397 * all 3 possibilities in our fw with autodetection: S71PL-J, |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
398 * S71PL-N or K5A32xx. |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
399 * |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
400 * For future FreeCalypso hw designs, the Mother's plan is to |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
401 * keep the high-capacity S71PL129NC0HFW4B for the handset prototype |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
402 * and UI development board, but for embedded modem products |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
403 * we will probably switch to Openmoko's K5A32xx. |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
404 */ |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
405 |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
406 /* S71PL-N, FreeCalypso official, FFS in the first 2 MiB of the 2nd bank */ |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
407 { &flash_32x256[0], (char *) 0x01800000, MANUFACT_AMD, 0x2101, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
408 FFS_DRIVER_AMD, 8 }, |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
409 |
134
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
410 /* S71PL-J, currently only theoretical */ |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
411 { &flash_128x64[0], (char *) 0x01800000, MANUFACT_AMD, 0x2100, |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
412 FFS_DRIVER_AMD, 32 }, |
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
413 |
135
ac4c0a9bc022
FFS dev.c: change from Magnetite for potential future
Mychaela Falconia <falcon@freecalypso.org>
parents:
134
diff
changeset
|
414 /* |
ac4c0a9bc022
FFS dev.c: change from Magnetite for potential future
Mychaela Falconia <falcon@freecalypso.org>
parents:
134
diff
changeset
|
415 * K5A32xxCTM from Openmoko, but note our different FFS config: |
ac4c0a9bc022
FFS dev.c: change from Magnetite for potential future
Mychaela Falconia <falcon@freecalypso.org>
parents:
134
diff
changeset
|
416 * if we are going to put this smaller flash chip into our embedded |
ac4c0a9bc022
FFS dev.c: change from Magnetite for potential future
Mychaela Falconia <falcon@freecalypso.org>
parents:
134
diff
changeset
|
417 * modem products, let's use it efficiently. |
ac4c0a9bc022
FFS dev.c: change from Magnetite for potential future
Mychaela Falconia <falcon@freecalypso.org>
parents:
134
diff
changeset
|
418 */ |
ac4c0a9bc022
FFS dev.c: change from Magnetite for potential future
Mychaela Falconia <falcon@freecalypso.org>
parents:
134
diff
changeset
|
419 { &flash_16x64[0], (char *) 0x300000, MANUFACT_SAMSUNG, 0x22A0, |
ac4c0a9bc022
FFS dev.c: change from Magnetite for potential future
Mychaela Falconia <falcon@freecalypso.org>
parents:
134
diff
changeset
|
420 FFS_DRIVER_AMD, 15 }, |
134
7d50d8d13711
FFS code sync with Magnetite + gcc version fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
117
diff
changeset
|
421 |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
422 #elif defined(CONFIG_TARGET_COMPAL) |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
423 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
424 /* aftermarket FFS configurations for FreeCalypso on Mot C1xx phones */ |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
425 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
426 // Intel 28F160C3-T 16Mb. Using top-most 8x8kB (parameter) sectors. |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
427 // Changed for C11x aftermarket FFS config: 64x3 at 0x1C0000 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
428 { &flash_16x64[0], (char *) 0x1C0000, MANUFACT_INTEL, 0x88C2, |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
429 FFS_DRIVER_INTEL_SB, 3 }, |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
430 |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
431 /* |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
432 * A user in the field found that some Mot C11x phones have 2 MiB |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
433 * of flash, but use some different flash chip, not our familiar |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
434 * 28F160C3-T. This chip reports manufacturer ID 0x20 and device |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
435 * ID 0x88CE, but the CFI structure lists the same sector geometry |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
436 * as our familiar 28F160C3-T. Let's treat this mystery flash chip |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
437 * as equivalent to our familiar one. |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
438 */ |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
439 { &flash_16x64[0], (char *) 0x1C0000, 0x20, 0x88CE, |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
440 FFS_DRIVER_INTEL_SB, 3 }, |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
441 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
442 // Intel 28F320C3-T, 32Mb. Using top-most 8x8kB (parameter) sectors. |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
443 // Changed for C139 aftermarket FFS config: 64x3 at 0x3C0000 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
444 { &flash_16x64[0], (char *) 0x3C0000, MANUFACT_INTEL, 0x88C4, |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
445 FFS_DRIVER_INTEL_SB, 3 }, |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
446 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
447 // Intel 28F640C3-B, 64Mb. Using top-most 16x64kB sectors |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
448 // Changed for C155 aftermarket FFS config: 64x13 at 0x700000 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
449 { &flash_16x64[0], (char *) 0x700000, MANUFACT_INTEL, 0x88CD, |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
450 FFS_DRIVER_INTEL_SB, 13 }, |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
451 |
117
e67bbb9b1fb9
src/cs sync with Magnetite: C155 support
Mychaela Falconia <falcon@freecalypso.org>
parents:
111
diff
changeset
|
452 // Intel 28F640W30-B, 64Mb. (DSample). Using top-most 15x64kB sectors |
e67bbb9b1fb9
src/cs sync with Magnetite: C155 support
Mychaela Falconia <falcon@freecalypso.org>
parents:
111
diff
changeset
|
453 // Changed for C155 aftermarket FFS config: 64x13 at 0x700000 |
e67bbb9b1fb9
src/cs sync with Magnetite: C155 support
Mychaela Falconia <falcon@freecalypso.org>
parents:
111
diff
changeset
|
454 { &flash_16x64[0], (char *) 0x700000, MANUFACT_INTEL, 0x8855, |
e67bbb9b1fb9
src/cs sync with Magnetite: C155 support
Mychaela Falconia <falcon@freecalypso.org>
parents:
111
diff
changeset
|
455 FFS_DRIVER_INTEL, 13 }, |
e67bbb9b1fb9
src/cs sync with Magnetite: C155 support
Mychaela Falconia <falcon@freecalypso.org>
parents:
111
diff
changeset
|
456 |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
457 #else |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
458 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
459 /* original table from TI/Openmoko, used on TI and Openmoko targets */ |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
460 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
461 /********** AMD Devices ***********************************************/ |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
462 |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
463 #ifdef CONFIG_TARGET_LEONARDO |
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
464 // AMD Am29DL640F. Ignoring the 8kB sectors |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
465 // Multi-id device: 0x227E, 0x2221, 0x2200. Converted to 0x2100 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
466 { &flash_16x64[0], (char *) 0x01800000, MANUFACT_AMD, 0x2100, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
467 FFS_DRIVER_AMD, 15 }, |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
468 #endif |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
469 |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
470 // AMD Am29DL640G. Ignoring the 8kB sectors |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
471 // Multi-id device: 0x227E, 0x2202, 0x2201. Converted to 0x0201 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
472 { &flash_16x64[0], (char *) 0x700000, MANUFACT_AMD, 0x0201, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
473 FFS_DRIVER_AMD, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
474 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
475 // AMD Am29DL321DT does not exist as of 2000-0217 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
476 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
477 // AMD Am29DL322DT. Ignoring the 8kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
478 { &flash_16x64[0], (char *) 0x380000, MANUFACT_AMD, 0x2255, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
479 FFS_DRIVER_AMD_SB, 7 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
480 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
481 // AMD Am29DL323DT. Ignoring the 8kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
482 { &flash_16x64[0], (char *) 0x300000, MANUFACT_AMD, 0x2250, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
483 FFS_DRIVER_AMD, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
484 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
485 // AMD Am29DL161DT. Using 8x8kB sectors. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
486 { &flash_8x8[0], (char *) 0x1F0000, MANUFACT_AMD, 0x2236, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
487 FFS_DRIVER_AMD, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
488 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
489 // AMD Am29DL162DT. Ignoring the 8kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
490 { &flash_16x64[0], (char *) 0x1C0000, MANUFACT_AMD, 0x222D, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
491 FFS_DRIVER_AMD, 3 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
492 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
493 // AMD Am29DL163DT. Ignoring the 8kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
494 { &flash_16x64[0], (char *) 0x180000, MANUFACT_AMD, 0x2228, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
495 FFS_DRIVER_AMD, 7 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
496 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
497 // AMD Am29DL164DT. Ignoring the 8kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
498 { &flash_16x64[0], (char *) 0x100000, MANUFACT_AMD, 0x2233, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
499 FFS_DRIVER_AMD, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
500 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
501 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
502 /********** Fujitsu Devices *******************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
503 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
504 // Fujitsu MBM29DL321TD. Using 8x8kB sectors. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
505 { &flash_8x8[0], (char *) 0x3f0000, MANUFACT_FUJITSU, 0x2259, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
506 FFS_DRIVER_AMD, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
507 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
508 // Fujitsu MBM29DL322TD. Ignoring all the 8kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
509 { &flash_16x64[0], (char *) 0x380000, MANUFACT_FUJITSU, 0x2255, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
510 FFS_DRIVER_AMD, 7 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
511 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
512 // Fujitsu MBM29DL323TD (BSample). Dual bank device definition. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
513 { &flash_16x64[0], (char *) 0x300000, MANUFACT_FUJITSU, 0x2250, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
514 FFS_DRIVER_AMD, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
515 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
516 // Fujitsu MBM29DL161DT (similar to Am29DL161T). |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
517 { &flash_8x8[0], (char *) 0x1F0000, MANUFACT_FUJITSU, 0x2236, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
518 FFS_DRIVER_AMD, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
519 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
520 // Fujitsu MBM29DL162DT (similar to Am29DL162T). |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
521 { &flash_16x64[0], (char *) 0x1C0000, MANUFACT_FUJITSU, 0x222D, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
522 FFS_DRIVER_AMD, 3 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
523 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
524 // Fujitsu MBM29DL163DT (similar to Am29DL163T). |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
525 { &flash_16x64[0], (char *) 0x180000, MANUFACT_FUJITSU, 0x2228, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
526 FFS_DRIVER_AMD, 7 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
527 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
528 // Fujitsu MBM29DL164DT (similar to Am29DL164T). |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
529 { &flash_16x64[0], (char *) 0x100000, MANUFACT_FUJITSU, 0x2233, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
530 FFS_DRIVER_AMD, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
531 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
532 /* This is the RITA flash configuration */ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
533 // Fujitsu MBM29DL320FB |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
534 // Multi-id device: 0x227E, 0x220A, 0x2200. Converted to 0x0A00 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
535 { &flash_16x64[0], (char *) 0x320000, MANUFACT_FUJITSU, 0x0A00, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
536 FFS_DRIVER_AMD_SB, 13 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
537 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
538 // Fujitsu MBM29DL320FT |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
539 // Multi-id device: 0x227E, 0x220A, 0x2201. Converted to 0x0A01 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
540 { &flash_16x64[0], (char *) 0x320000, MANUFACT_FUJITSU, 0x0A01, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
541 FFS_DRIVER_AMD_SB, 13 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
542 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
543 // Fujitsu MBM29DL640F, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
544 // Multi-id device: 0x227E, 0x2221, 0x2200. Converted to 0x2100 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
545 { &flash_16x64[0], (char *) 0x700000, MANUFACT_FUJITSU, 0x2100, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
546 FFS_DRIVER_AMD_SB, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
547 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
548 // Fujitsu 84VF5F5F4J2, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
549 // Multi-id device: 0x227E, 0x2202, 0x2201. Converted to 0x0201 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
550 { &flash_16x64[0], (char *) 0x700000, MANUFACT_FUJITSU, 0x0201, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
551 FFS_DRIVER_AMD_SB, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
552 |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
553 #ifdef CONFIG_TARGET_LEONARDO |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
554 // Fujitsu MB84VF5F5F4J2 stacked device. Using the 2nd sub device |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
555 // The 8x8 are located both in top and bottom, thus only 126 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
556 // blocks are used. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
557 { &flash_128x64[0], (char *) 0x1810000, MANUFACT_FUJITSU, 0xB496, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
558 FFS_DRIVER_AMD_SB, 126 }, |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
559 #endif |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
560 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
561 /********** Intel Devices *********************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
562 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
563 // Intel 28F160C3-T 16Mb. Using top-most 8x8kB (parameter) sectors. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
564 { &flash_8x8[0], (char *) 0x1F0000, MANUFACT_INTEL, 0x88C2, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
565 FFS_DRIVER_INTEL_SB, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
566 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
567 // Intel 28F160C3-B, 16Mb. Using top-most 6x64kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
568 { &flash_16x64[0], (char *) 0x1A0000, MANUFACT_INTEL, 0x88C3, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
569 FFS_DRIVER_INTEL_SB, 6 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
570 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
571 // Intel 28F320C3-T, 32Mb. Using top-most 8x8kB (parameter) sectors. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
572 { &flash_8x8[0], (char *) 0x3F0000, MANUFACT_INTEL, 0x88C4, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
573 FFS_DRIVER_INTEL_SB, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
574 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
575 // Intel 28F320C3-B, 32Mb. Using top-most 8x64kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
576 { &flash_16x64[0], (char *) 0x380000, MANUFACT_INTEL, 0x88C5, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
577 FFS_DRIVER_INTEL_SB, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
578 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
579 // Intel 28F640C3-T, 64Mb. Using top-most 8x8kB (parameter) sectors. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
580 { &flash_8x8[0], (char *) 0x7F0000, MANUFACT_INTEL, 0x88CC, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
581 FFS_DRIVER_INTEL_SB, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
582 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
583 // Intel 28F640C3-B, 64Mb. Using top-most 16x64kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
584 { &flash_16x64[0], (char *) 0x700000, MANUFACT_INTEL, 0x88CD, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
585 FFS_DRIVER_INTEL_SB, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
586 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
587 // Intel 28F640W30-T, 64Mb. Using top-most 8x8kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
588 { &flash_8x8[0], (char *) 0x7F0000, MANUFACT_INTEL, 0x8854, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
589 FFS_DRIVER_INTEL_SB, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
590 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
591 // Intel 28F640W30-B, 64Mb. (DSample). Using top-most 47x64kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
592 // { &flash_128x64[0], (char *) 0x500000, MANUFACT_INTEL, 0x8855, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
593 // FFS_DRIVER_INTEL_SB, 47 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
594 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
595 // Intel 28F640W30-B, 64Mb. (DSample). Using top-most 15x64kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
596 { &flash_16x64[0], (char *) 0x700000, MANUFACT_INTEL, 0x8855, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
597 FFS_DRIVER_INTEL, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
598 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
599 // Intel 28F640W30-B, 64Mb. (DSample). Using top-most 15x64kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
600 { &flash_16x64[0], (char *) 0x700000, MANUFACT_INTEL, 0x88FF, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
601 FFS_DRIVER_INTEL_SB, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
602 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
603 /********** MXIC Devices *******************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
604 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
605 // Intel 28F640W30-T, 64Mb. Using top-most 8x8kB sectors |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
606 { &flash_8x8[0], (char *) 0x3F0000, MANUFACT_MXIC, 0x0024, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
607 FFS_DRIVER_INTEL_SB, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
608 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
609 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
610 /********** Samsung Devices *******************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
611 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
612 // Samsung K5A3240YT Top boot, 24Mb + 8Mb |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
613 { &flash_16x64[0], (char *) 0x380000, MANUFACT_SAMSUNG, 0x22B7, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
614 FFS_DRIVER_AMD_SB, 7 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
615 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
616 // Samsung K5A3340YT Top boot, 16Mb + 16Mb |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
617 { &flash_16x64[0], (char *) 0x380000, MANUFACT_SAMSUNG, 0x22BA, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
618 FFS_DRIVER_AMD_SB, 7 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
619 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
620 // Samsung K5A3240YB Bottom boot, 8Mb + 24Mb |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
621 { &flash_16x64[0], (char *) 0x380000, MANUFACT_SAMSUNG, 0x223F, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
622 FFS_DRIVER_AMD_SB, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
623 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
624 // Samsung K5A3340YB Bottom boot, 14Mb + 18Mb (!?) |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
625 { &flash_16x64[0], (char *) 0x380000, MANUFACT_SAMSUNG, 0x223D, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
626 FFS_DRIVER_AMD_SB, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
627 //zack add |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
628 //Samsung K5A3240CG |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
629 { &flash_16x64[0], (char *) 0x380000, MANUFACT_SAMSUNG, 0x22A0, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
630 FFS_DRIVER_AMD_SB, 7 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
631 //Samsung K5L6331CAA-D270 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
632 { &flash_16x64[0], (char *) 0x380000, MANUFACT_SAMSUNG, 0x257E, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
633 FFS_DRIVER_AMD_SB, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
634 { &flash_16x64[0], (char *) 0x380000, MANUFACT_SAMSUNG, 0x2506, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
635 FFS_DRIVER_AMD_SB, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
636 { &flash_16x64[0], (char *) 0x380000, MANUFACT_SAMSUNG, 0x2501, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
637 FFS_DRIVER_AMD_SB, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
638 //end zack |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
639 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
640 /********** SST Devices ***********************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
641 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
642 // SST SST36VF1601 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
643 { &flash_16x64[0], (char *) 0x180000, MANUFACT_SST, 0x2761, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
644 FFS_DRIVER_SST, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
645 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
646 /********** Toshiba Devices *******************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
647 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
648 // Toshiba TH50VSF2581AASB Bottom boot combo device |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
649 { &flash_16x64[0], (char *) 0x380000, MANUFACT_TOSHIBA, 0x009C, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
650 FFS_DRIVER_AMD, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
651 |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
652 #endif |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
653 |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
654 #if 0 |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
655 /********** Special/Test Devices **************************************/ |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
656 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
657 // Intel 28F160C3-B, 16Mb. Single bank driver |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
658 // Note that device ID is bogus! |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
659 { &flash_16x64[0], (char *) 0x1A0000, MANUFACT_INTEL, 0x01C3, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
660 FFS_DRIVER_INTEL_SB, 6 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
661 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
662 // Fujitsu MBM29DL323TD (BSample). Single bank device definition. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
663 // Note that device ID is bogus! |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
664 { &flash_16x64[0], (char *) 0x300000, MANUFACT_FUJITSU, 0x0150, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
665 FFS_DRIVER_AMD_SB, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
666 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
667 // Fujitsu MBM29DL323TD (BSample). Pseudo single bank device definition. |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
668 // Note that device ID is bogus! |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
669 { &flash_16x64[0], (char *) 0x300000, MANUFACT_FUJITSU, 0x0250, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
670 FFS_DRIVER_AMD_PSEUDO_SB, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
671 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
672 // Fujitsu MBM29DL323TD (BSample). "True" single bank device definition |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
673 // within first flash device bank! |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
674 // Note that device ID is bogus! |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
675 { &flash_16x64[0], (char *) 0x280000, MANUFACT_FUJITSU, 0x0350, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
676 FFS_DRIVER_AMD_SB, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
677 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
678 // AMD Am29DL323DT on EVA4 (base address = 0x200000) |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
679 { &flash_16x64[0], (char *) 0x500000, MANUFACT_AMD, 0xF250, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
680 FFS_DRIVER_AMD, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
681 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
682 // PC Test/Simulation flash 128x64kb |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
683 { &flash_128x64[0], (char *) 0x000000, MANUFACT_TEST, 0x0F12, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
684 FFS_DRIVER_TEST, 127 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
685 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
686 // PC Test/Simulation flash 16x64kB |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
687 { &flash_16x64[0], (char *) 0x000000, MANUFACT_TEST, 0x0F10, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
688 FFS_DRIVER_TEST, 15 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
689 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
690 // PC Test/Simulation flash 8x8kB |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
691 { &flash_8x8[0], (char *) 0x000000, MANUFACT_TEST, 0x080D, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
692 FFS_DRIVER_TEST, 8 }, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
693 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
694 // PC Test/Simulation flash 4x4kB |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
695 { &flash_4x4[0], (char *) 0x000000, MANUFACT_TEST, 0x0404, |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
696 FFS_DRIVER_TEST, 4 }, |
111
97297555c71a
FFS dev.c flash device table reworked as described in TCS211-fw-arch
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
697 #endif |
0
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
698 |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
699 // terminator |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
700 { 0, 0, 0, 0 } |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
701 }; |
b6a5e36de839
src/cs: initial import from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
702 |