1 |
786 |
skrzyp |
2008-11-17 Jonathan Larmour
|
2 |
|
|
|
3 |
|
|
* src/strata.c: leave _FLASH_PRIVATE_ to the private strata.h
|
4 |
|
|
(Change from bartv 2004-12-02, merged from flash_v2 branch).
|
5 |
|
|
* cdl/flash_strata.cdl: Indicate that this driver uses
|
6 |
|
|
the legacy flash device API.
|
7 |
|
|
|
8 |
|
|
2005-01-14 Thomas Koeller
|
9 |
|
|
|
10 |
|
|
* src/flash_query.c (flash_query): Fix switching the flash back to
|
11 |
|
|
array mode, which was broken on MIPS platforms. Always write
|
12 |
|
|
control codes to offset 0.
|
13 |
|
|
|
14 |
|
|
2004-09-02 Mark Salter
|
15 |
|
|
|
16 |
|
|
* src/flash_query.c (CYGHWR_FLASH_READ_QUERY): Add platform hook
|
17 |
|
|
to handle access to query info.
|
18 |
|
|
* src/flash_program_buf.c (CYGHWR_FLASH_WRITE_BUF): Add platform
|
19 |
|
|
hook handle access to write buffer.
|
20 |
|
|
|
21 |
|
|
2004-08-21 Andrew Lunn
|
22 |
|
|
|
23 |
|
|
* src/flash_unlock_block.c (flash_unlock_block):
|
24 |
|
|
* cdl/flash_strata.cdl: CDL to control the maximum number of
|
25 |
|
|
blocks the driver supports. Some of the newer strata device has more
|
26 |
|
|
than the default maximum of 128. Problem pointed out by Kevin Zhang.
|
27 |
|
|
|
28 |
|
|
2005-01-26 Scott Wilkinson
|
29 |
|
|
* src/strata.h:
|
30 |
|
|
* src/strata.c:
|
31 |
|
|
Flash from STMicro is compatible with the Intel strata chips,
|
32 |
|
|
so detect them as well. Check for manuf id 0x20.
|
33 |
|
|
|
34 |
|
|
2003-10-29 Jonathan Larmour
|
35 |
|
|
|
36 |
|
|
* src/flash_unlock_block.c (flash_unlock_block): test lock bit
|
37 |
|
|
explicitly - newer flash parts use the reserved bits in the
|
38 |
|
|
returned data.
|
39 |
|
|
|
40 |
|
|
2003-09-11 Jani Monoses
|
41 |
|
|
|
42 |
|
|
* src/flash_erase_block.c (flash_erase_block):
|
43 |
|
|
* src/flash_program_buf.c (flash_program_buf): Fix bootblock handling
|
44 |
|
|
in erase. Fix erase and word-program for Synchronous Strata and later
|
45 |
|
|
chips where block address and word address are required in the first
|
46 |
|
|
cycle of the operation while for earlier parts any address was good.
|
47 |
|
|
|
48 |
|
|
2003-09-10 Jani Monoses
|
49 |
|
|
|
50 |
|
|
* cdl/flash_strata.cdl:
|
51 |
|
|
* src/flash_lock_block.c (flash_lock_block):
|
52 |
|
|
* src/flash_unlock_block.c (flash_unlock_block):
|
53 |
|
|
* src/flash_erase_block.c (flash_erase_block):
|
54 |
|
|
* src/flash_query.c (flash_query):
|
55 |
|
|
* src/flash_program_buf.c (flash_program_buf): Use .2ram sections
|
56 |
|
|
for putting flash functions to RAM instead of the old method.
|
57 |
|
|
|
58 |
|
|
2003-05-02 Jani Monoses
|
59 |
|
|
|
60 |
|
|
* src/strata.c: Switch to using generic flash_query_dev.
|
61 |
|
|
The previous cache related changes broke flash_query for
|
62 |
|
|
Strata because in the query case the generic flash driver was not
|
63 |
|
|
called to handle the caches but the internal handling was removed
|
64 |
|
|
nevertheless.
|
65 |
|
|
|
66 |
|
|
2003-04-04 Jani Monoses
|
67 |
|
|
|
68 |
|
|
* src/strata.h:
|
69 |
|
|
Use generic flash_dev.h for providing the FLASHWORD macro for
|
70 |
|
|
different widths and device numbers.No reason to duplicate that
|
71 |
|
|
here.This implicitely fixes the case when CYGNUM_FLASH_WIDTH is 16
|
72 |
|
|
and CYGNUM_FLASH_DEVICES is 4.
|
73 |
|
|
|
74 |
|
|
2003-04-03 Jani Monoses
|
75 |
|
|
|
76 |
|
|
* src/flash_lock_block.c (flash_lock_block):
|
77 |
|
|
* src/flash_unlock_block.c (flash_unlock_block):
|
78 |
|
|
* src/flash_erase_block.c (flash_erase_block):
|
79 |
|
|
* src/flash_query.c (flash_query):
|
80 |
|
|
* src/flash_program_buf.c (flash_program_buf):
|
81 |
|
|
Cache enabling and disabling are already handled by generic flash
|
82 |
|
|
|
83 |
|
|
2002-08-12 Mark Salter
|
84 |
|
|
|
85 |
|
|
* src/flash_unlock_block.c: Add synchronous strataflash support.
|
86 |
|
|
* src/strata.h: Add comments regarding synchronous strataflash.
|
87 |
|
|
|
88 |
|
|
2002-04-30 Christoph Csebits
|
89 |
|
|
|
90 |
|
|
* src/flash_unlock_block.c: Getting the current block lock
|
91 |
|
|
state for flashes in 8-Bit mode is now working correctly.
|
92 |
|
|
|
93 |
|
|
2002-04-16 Jonathan Larmour
|
94 |
|
|
|
95 |
|
|
* cdl/flash_strata.cdl: Invoke $(CC) with $(CFLAGS) to ensure the
|
96 |
|
|
correct flags are passed.
|
97 |
|
|
|
98 |
|
|
2002-04-12 Gary Thomas
|
99 |
|
|
|
100 |
|
|
* src/strata.c: Clean up warnings.
|
101 |
|
|
|
102 |
|
|
2002-01-22 Mark Salter
|
103 |
|
|
|
104 |
|
|
* cdl/flash_strata.cdl: Add ".text" before "_end" markers in .s files.
|
105 |
|
|
|
106 |
|
|
2001-10-23 Hugo Tyson
|
107 |
|
|
|
108 |
|
|
* cdl/flash_strata.cdl: Provide an option so that RedBoot .ecm
|
109 |
|
|
files can turn off the functionality of copying flash driver code
|
110 |
|
|
to separate RAM for execution; it's not needed for RAM and ROMRAM
|
111 |
|
|
startup, and for some platforms it is required to *not* copy thus.
|
112 |
|
|
|
113 |
|
|
2001-08-25 Gary Thomas
|
114 |
|
|
|
115 |
|
|
* src/flash_program_buf.c (flash_program_buf): Allow configuration
|
116 |
|
|
specific code sequence for actual writing of data. Define by the
|
117 |
|
|
macro CYGHWR_FLASH_WRITE_ELEM. Note: this is required on some
|
118 |
|
|
hardware, like the Intel SA185, which handles flash writes in
|
119 |
|
|
strange/obscure fashion.
|
120 |
|
|
|
121 |
|
|
2001-07-17 Jeroen Dobbelaere
|
122 |
|
|
|
123 |
|
|
* src/flash_query.c (flash_query): Query needs to be done on even
|
124 |
|
|
addresses for byte-enabled strata flash
|
125 |
|
|
|
126 |
|
|
* src/flash_program_buf.c (flash_program_buf): Fix of conversion of
|
127 |
|
|
write buffer length (in bytes) to the length in 'flash_t' words.
|
128 |
|
|
|
129 |
|
|
2001-06-22 Hugo Tyson
|
130 |
|
|
|
131 |
|
|
* src/strata.c (flash_hwr_init): Need to refer to the query code
|
132 |
|
|
as extern char flash_query[], flash_query_end[]; (with the []) or
|
133 |
|
|
MIPS code gen assumes these are short offsets and linking fails.
|
134 |
|
|
The generic flash code in io/flash already uses this idiom.
|
135 |
|
|
|
136 |
|
|
2001-06-22 Hugo Tyson
|
137 |
|
|
|
138 |
|
|
* src/strata.c (flash_hwr_init): Warnings reduced. No arithmetic
|
139 |
|
|
on void *.
|
140 |
|
|
|
141 |
|
|
2001-06-21 Hugo Tyson
|
142 |
|
|
|
143 |
|
|
* src/flash_program_buf.c (flash_program_buf): The buffered write
|
144 |
|
|
code didn't jump out if there was a write error, nor verify the
|
145 |
|
|
data by reading back. This isn't consistent with the slow case,
|
146 |
|
|
and made it take an age if the device is unhappy, and then report
|
147 |
|
|
a bizarre error code. Both issues fixed.
|
148 |
|
|
|
149 |
|
|
2001-06-21 Hugo Tyson
|
150 |
|
|
|
151 |
|
|
* src/strata.c (flash_hwr_init): If shrinking to fit, must also
|
152 |
|
|
adjust the flash_info.blocks field, else unlock crashes trying to
|
153 |
|
|
get status of all those extra blocks that we cannot actually see.
|
154 |
|
|
|
155 |
|
|
2001-06-11 Gary Thomas
|
156 |
|
|
|
157 |
|
|
* src/strata.c: Remove dependency on printf() via user functions.
|
158 |
|
|
|
159 |
|
|
2001-06-07 Hugo Tyson
|
160 |
|
|
|
161 |
|
|
* src/strata.c (flash_hwr_init): If we find a flash device that is
|
162 |
|
|
larger than is possible given the memory map, shrink to fit.
|
163 |
|
|
We know about the memory map from CYGNUM_FLASH_BASE_MASK (if
|
164 |
|
|
defined); it tells us the stride from one device to another.
|
165 |
|
|
|
166 |
|
|
This is to cope with installing, say, a 28F640 in a slot designed
|
167 |
|
|
for a 28F320 because of supply issues - it all works fine so long
|
168 |
|
|
as A22 is grounded.
|
169 |
|
|
|
170 |
|
|
2001-05-23 Jesper Skov
|
171 |
|
|
|
172 |
|
|
* cdl/flash_strata.cdl: Needs IO driver to copy functions to RAM.
|
173 |
|
|
|
174 |
|
|
2001-04-26 Gary Thomas
|
175 |
|
|
|
176 |
|
|
* src/strata.c: Be more careful when enable/flush/disable caches.
|
177 |
|
|
|
178 |
|
|
* src/flash_erase_block.c (flash_erase_block): Boot block devices
|
179 |
|
|
may require additional erase commands to erase entire 'block'.
|
180 |
|
|
|
181 |
|
|
2001-03-21 Hugo Tyson
|
182 |
|
|
|
183 |
|
|
* src/strata.h (FLASH_Write_Buffer): Do not define this if
|
184 |
|
|
CYGOPT_FLASH_IS_NOT_ADVANCED is defined; Advanced (xxxJ3) flash is
|
185 |
|
|
usual these days. Also added documentation of the options that
|
186 |
|
|
can be used to control this module.
|
187 |
|
|
|
188 |
|
|
* src/flash_program_buf.c (flash_program_buf): Reduce warnings
|
189 |
|
|
about unused variables if no FLASH_Write_Buffer command available.
|
190 |
|
|
|
191 |
|
|
2001-03-21 Gary Thomas
|
192 |
|
|
|
193 |
|
|
* src/flash_program_buf.c (flash_program_buf): Buffered write code
|
194 |
|
|
fixups, only on platforms with it defined.
|
195 |
|
|
|
196 |
|
|
2001-03-17 Gary Thomas
|
197 |
|
|
|
198 |
|
|
* src/strata.h:
|
199 |
|
|
* src/strata.c: Support buffered writes.
|
200 |
|
|
|
201 |
|
|
* src/flash_program_buf.c: Use buffered writes if possible. This
|
202 |
|
|
mode allows the chip to do parallelized writes which is much faster.
|
203 |
|
|
It does require additional information, now provided by upper layer.
|
204 |
|
|
|
205 |
|
|
2001-02-15 Hugo Tyson
|
206 |
|
|
|
207 |
|
|
* src/flash_query.c (flash_query): Depending on whether
|
208 |
|
|
CYGOPT_FLASH_IS_BOOTBLOCK (just a #define from the instantiator,
|
209 |
|
|
not really a cdl_option) is set, do the full Read_Query or just
|
210 |
|
|
acquire two codes for manufacturer and device type using Read_ID.
|
211 |
|
|
|
212 |
|
|
* src/strata.c (flash_hwr_init): Again depending on whether
|
213 |
|
|
CYGOPT_FLASH_IS_BOOTBLOCK, decode the device type into a size and
|
214 |
|
|
so on, or use the full Read_Query data as before.
|
215 |
|
|
|
216 |
|
|
* src/strata.h (FLASH_Read_ID): Undefine those commands which we
|
217 |
|
|
do not use. Conditionally define those that we use depending on
|
218 |
|
|
CYGOPT_FLASH_IS_BOOTBLOCK. Thus we should be able to deal with
|
219 |
|
|
StrataFlash and BootBlock flash with the same code.
|
220 |
|
|
|
221 |
|
|
* cdl/flash_strata.cdl: Do not implement (in the CDL sense)
|
222 |
|
|
CYGHWR_IO_FLASH_BLOCK_LOCKING leave it up to the instantiating
|
223 |
|
|
package instead. Also move the build of the two objects that do
|
224 |
|
|
locking and unlocking into a compenent which is only active if
|
225 |
|
|
CYGHWR_IO_FLASH_BLOCK_LOCKING is indeed (requested to be)
|
226 |
|
|
implemented somewhere.
|
227 |
|
|
|
228 |
|
|
2001-02-14 Hugo Tyson
|
229 |
|
|
|
230 |
|
|
* devs/flash/intel/strata/...: New package, generic strataFlash
|
231 |
|
|
driver based on several others; a portion of its history
|
232 |
|
|
follows...
|
233 |
|
|
|
234 |
|
|
flash.h -> strata.h
|
235 |
|
|
flash.c -> strata.c
|
236 |
|
|
|
237 |
|
|
2001-02-06 Hugo Tyson
|
238 |
|
|
|
239 |
|
|
* src/flash.h: Much more generic again. Not yet separated into
|
240 |
|
|
generic component and invocation header, but the structure is
|
241 |
|
|
there. Also included support for a mapping from the physical
|
242 |
|
|
flash address we're thinking of to the virtual address we use to
|
243 |
|
|
access it. More documentation. Generalization to 8,16,32 and
|
244 |
|
|
64-bit access, made up from 8,16 or 32-bit devices. Command and
|
245 |
|
|
status macros modified to accommodate these options.
|
246 |
|
|
|
247 |
|
|
* src/flash_lock_block.c (flash_lock_block):
|
248 |
|
|
* src/flash_erase_block.c (flash_erase_block):
|
249 |
|
|
* src/flash_query.c (flash_query):
|
250 |
|
|
* src/flash_program_buf.c (flash_program_buf):
|
251 |
|
|
All now acquire when possible the ROM address from the block
|
252 |
|
|
address, and use the physical to virtual macro as needed.
|
253 |
|
|
|
254 |
|
|
* src/flash_unlock_block.c (flash_unlock_block):
|
255 |
|
|
The same changes, but a little more complex because of the need to
|
256 |
|
|
clear-all then re-lock some semantics. Shadow pointer to virtual
|
257 |
|
|
address is used each time round the loop.
|
258 |
|
|
|
259 |
|
|
* cdl/flash_strata.cdl: Add explicit dependencies on flash.h, for
|
260 |
|
|
there were none - or they were ignored - for the specially built
|
261 |
|
|
compilation units that get copied to RAM for execution.
|
262 |
|
|
|
263 |
|
|
2001-02-01 Hugo Tyson
|
264 |
|
|
|
265 |
|
|
* all: copied from the assabet flash driver.
|
266 |
|
|
|
267 |
|
|
2000-12-05 Jonathan Larmour
|
268 |
|
|
|
269 |
|
|
* src/assabet_flash.c (flash_code_overlaps): Define stext/etext
|
270 |
|
|
as array types so no assumptions can be made by the compiler about
|
271 |
|
|
location.
|
272 |
|
|
|
273 |
|
|
2000-10-24 Gary Thomas
|
274 |
|
|
|
275 |
|
|
* src/flash_unlock_block.c (flash_unlock_block):
|
276 |
|
|
* src/flash_lock_block.c (flash_lock_block):
|
277 |
|
|
* src/flash_program_buf.c (flash_program_buf):
|
278 |
|
|
* src/flash_erase_block.c (flash_erase_block): Support up to 32M FLASH.
|
279 |
|
|
|
280 |
|
|
2000-09-10 Gary Thomas
|
281 |
|
|
|
282 |
|
|
* src/flash_unlock_block.c:
|
283 |
|
|
* src/flash_lock_block.c: New file(s).
|
284 |
|
|
|
285 |
|
|
* src/flash.h:
|
286 |
|
|
* cdl/flash_assabet.cdl: Add region locking functions.
|
287 |
|
|
|
288 |
|
|
2000-08-29 Gary Thomas
|
289 |
|
|
|
290 |
|
|
* src/assabet_flash.c: Improve error decoding.
|
291 |
|
|
|
292 |
|
|
2000-08-24 Gary Thomas
|
293 |
|
|
|
294 |
|
|
* src/flash_query.c:
|
295 |
|
|
* src/flash_erase_block.c:
|
296 |
|
|
* src/flash.h: FLASH support for Intel SA1110 Assabet.
|
297 |
|
|
|
298 |
|
|
//===========================================================================
|
299 |
|
|
// ####GPLCOPYRIGHTBEGIN####
|
300 |
|
|
// -------------------------------------------
|
301 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
302 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
303 |
|
|
//
|
304 |
|
|
// This program is free software; you can redistribute it and/or modify
|
305 |
|
|
// it under the terms of the GNU General Public License as published by
|
306 |
|
|
// the Free Software Foundation; either version 2 or (at your option) any
|
307 |
|
|
// later version.
|
308 |
|
|
//
|
309 |
|
|
// This program is distributed in the hope that it will be useful, but
|
310 |
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
311 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
312 |
|
|
// General Public License for more details.
|
313 |
|
|
//
|
314 |
|
|
// You should have received a copy of the GNU General Public License
|
315 |
|
|
// along with this program; if not, write to the
|
316 |
|
|
// Free Software Foundation, Inc., 51 Franklin Street,
|
317 |
|
|
// Fifth Floor, Boston, MA 02110-1301, USA.
|
318 |
|
|
// -------------------------------------------
|
319 |
|
|
// ####GPLCOPYRIGHTEND####
|
320 |
|
|
//===========================================================================
|