annotate src/cs/drivers/drv_app/ffs/board/dev.c @ 624:012028896cfb

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