1 |
27 |
unneback |
2003-02-24 Jonathan Larmour
|
2 |
|
|
|
3 |
|
|
* cdl/io_flash.cdl: Remove irrelevant doc link - default to top
|
4 |
|
|
level.
|
5 |
|
|
|
6 |
|
|
2002-01-31 Jonathan Larmour
|
7 |
|
|
|
8 |
|
|
* src/flashiodev.c: Fix bounds checking and offsetting.
|
9 |
|
|
|
10 |
|
|
* cdl/io_flash.cdl (CYGNUM_IO_FLASH_BLOCK_LENGTH_1): Default to
|
11 |
|
|
0x100000 for convenience.
|
12 |
|
|
|
13 |
|
|
2002-01-30 Jonathan Larmour
|
14 |
|
|
|
15 |
|
|
* cdl/io_flash.cdl: Allow specification of an offset and length
|
16 |
|
|
of the region of flash.
|
17 |
|
|
* src/flashiodev.c: Use it.
|
18 |
|
|
|
19 |
|
|
2002-01-24 Jesper Skov
|
20 |
|
|
|
21 |
|
|
* include/flash.h: Add a comment about the obvious: the flash
|
22 |
|
|
caching macros should be called with interrupts disabled.
|
23 |
|
|
|
24 |
|
|
2002-01-23 Jonathan Larmour
|
25 |
|
|
|
26 |
|
|
* cdl/io_flash.cdl: Add CYGPKG_IO_FLASH_BLOCK_DEVICE and
|
27 |
|
|
CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1 to allow exporting flash
|
28 |
|
|
as block devices accessible from file systems.
|
29 |
|
|
* src/fileiodev.c: New file implementing this.
|
30 |
|
|
* include/flash.h: Add typedefs for the various structures used
|
31 |
|
|
to configure the block devices.
|
32 |
|
|
|
33 |
|
|
2002-01-18 Paul Fine
|
34 |
|
|
|
35 |
|
|
* src/flash.c : Modified flash_verify_addr, flash_erase,
|
36 |
|
|
flash_lock and flash_unlock to to work properly when the location
|
37 |
|
|
of the flash in the memory map is at the very top of the address
|
38 |
|
|
space. We check and handle values that may overflow.
|
39 |
|
|
|
40 |
|
|
2001-10-28 Gary Thomas
|
41 |
|
|
|
42 |
|
|
* src/flash.c (flash_erase): Don't call hardware layer if block
|
43 |
|
|
appears to be already erased [faster and less wear & tear].
|
44 |
|
|
|
45 |
|
|
2001-10-25 Jonathan Larmour
|
46 |
|
|
|
47 |
|
|
* include/flash_dev.h: Fix test of 4x16-bit flash parts.
|
48 |
|
|
Spotted by Jose Pascual
|
49 |
|
|
|
50 |
|
|
2001-10-16 Jesper Skov
|
51 |
|
|
|
52 |
|
|
* src/flash.c: Include string.h
|
53 |
|
|
|
54 |
|
|
* cdl/io_flash.cdl: Package requires ISOINFRA and string
|
55 |
|
|
functions.
|
56 |
|
|
|
57 |
|
|
2001-10-15 David Howells
|
58 |
|
|
|
59 |
|
|
* src/flash.c: Include string.h to get mem*() functions.
|
60 |
|
|
|
61 |
|
|
2001-09-25 Gary Thomas
|
62 |
|
|
|
63 |
|
|
* include/flash.h: Remove warning on printf() prototype.
|
64 |
|
|
|
65 |
|
|
2001-08-10 Jesper Skov
|
66 |
|
|
|
67 |
|
|
* cdl/io_flash.cdl: Changed flavor of
|
68 |
|
|
CYGHWR_IO_FLASH_BLOCK_LOCKING to booldata.
|
69 |
|
|
* include/flash.h: Matching changes.
|
70 |
|
|
* src/flash.c: Matching changes.
|
71 |
|
|
|
72 |
|
|
2001-07-23 David Howells
|
73 |
|
|
|
74 |
|
|
* cdl/io_flash.cdl: Added software write protect option.
|
75 |
|
|
* include/flash.h: Ditto.
|
76 |
|
|
* src/flash.c: Added software write protect option and bank
|
77 |
|
|
support, and prevented low-level writes from being handed
|
78 |
|
|
cross-block data chunks.
|
79 |
|
|
|
80 |
|
|
2001-07-20 Gary Thomas
|
81 |
|
|
|
82 |
|
|
* include/flash.h:
|
83 |
|
|
* cdl/io_flash.cdl: Name convention: CYGINT_FLASH_WORKSPACE_SIZE
|
84 |
|
|
renamed to be CYGNUM_FLASH_WORKSPACE_SIZE.
|
85 |
|
|
|
86 |
|
|
2001-07-19 Gary Thomas
|
87 |
|
|
|
88 |
|
|
* include/flash.h:
|
89 |
|
|
* cdl/io_flash.cdl: New option CYGINT_FLASH_WORKSPACE_SIZE used
|
90 |
|
|
to control how much memory is reserved for use by FLASH drivers.
|
91 |
|
|
|
92 |
|
|
2001-06-19 Hugo Tyson
|
93 |
|
|
|
94 |
|
|
* src/flash.c (flash_program): Only verify program with memcmp if
|
95 |
|
|
the status code suggests the programming went OK so far.
|
96 |
|
|
Otherwise all errors become verify errors.
|
97 |
|
|
|
98 |
|
|
(flash_init): Fix bug in removal of dependency of printf(). The
|
99 |
|
|
pointer was not initialized until after the call into the driver.
|
100 |
|
|
|
101 |
|
|
2001-06-11 Gary Thomas
|
102 |
|
|
|
103 |
|
|
* src/flash.c:
|
104 |
|
|
* include/flash.h: Remove dependency on printf() via user functions.
|
105 |
|
|
|
106 |
|
|
2001-05-23 Jesper Skov
|
107 |
|
|
|
108 |
|
|
* include/flash_dev.h (FLASH_P2V): Use CYG_ADDRWORD instead of int.
|
109 |
|
|
|
110 |
|
|
* src/flash.c: Copy functions to RAM iff
|
111 |
|
|
CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM defined.
|
112 |
|
|
|
113 |
|
|
* cdl/io_flash.cdl: Changed CYGHWR_IO_FLASH_DEVICE_IN_RAM to
|
114 |
|
|
CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM.
|
115 |
|
|
|
116 |
|
|
2001-05-21 Jonathan Larmour
|
117 |
|
|
|
118 |
|
|
* include/flash_dev.h: Fix cyg_uin16 typo.
|
119 |
|
|
|
120 |
|
|
2001-03-29 Mark Salter
|
121 |
|
|
|
122 |
|
|
* cdl/io_flash.cdl (CYGSEM_IO_FLASH_VERIFY_PROGRAM): New option
|
123 |
|
|
to control whether or not to perform extra verification of flash
|
124 |
|
|
programming.
|
125 |
|
|
* src/flash.c (flash_program): No verification unless
|
126 |
|
|
CYGSEM_IO_FLASH_VERIFY_PROGRAM defined.
|
127 |
|
|
|
128 |
|
|
2001-03-21 Gary Thomas
|
129 |
|
|
|
130 |
|
|
* src/flash.c (flash_program): Verify data after programming.
|
131 |
|
|
|
132 |
|
|
2001-03-21 Jesper Skov
|
133 |
|
|
|
134 |
|
|
* include/flash.h: Added low voltage error message.
|
135 |
|
|
* src/flash.c: And its error message.
|
136 |
|
|
|
137 |
|
|
2001-03-17 Gary Thomas
|
138 |
|
|
|
139 |
|
|
* src/flash.c (flash_program):
|
140 |
|
|
* include/flash.h: Add support for [StrataFLASH] buffered writes.
|
141 |
|
|
This requires knowledge of the device write buffer size [saved].
|
142 |
|
|
|
143 |
|
|
2001-03-01 Gary Thomas
|
144 |
|
|
|
145 |
|
|
* src/flash.c:
|
146 |
|
|
* include/flash.h: Allow platform to define pre/post routines
|
147 |
|
|
to enable/disable device access. These may be required, e.g.
|
148 |
|
|
to turn on some voltage, etc.
|
149 |
|
|
|
150 |
|
|
2001-02-23 Jesper Skov
|
151 |
|
|
|
152 |
|
|
* include/flash.h: HAL_FLASH_CACHES_WANT_OPTIMAL replaced with
|
153 |
|
|
(opposite sense) HAL_FLASH_CACHES_OLD_MACROS.
|
154 |
|
|
|
155 |
|
|
* src/flash.c (__anonymizer): Use to force the compiler to use
|
156 |
|
|
jumps instead of branches.
|
157 |
|
|
|
158 |
|
|
2001-02-22 Jesper Skov
|
159 |
|
|
|
160 |
|
|
* include/flash_dev.h: Added. Contains macros and definitions
|
161 |
|
|
common to all (new style) flash device drivers.
|
162 |
|
|
|
163 |
|
|
* include/flash.h: Added two new error codes.
|
164 |
|
|
* cdl/io_flash.cdl: Added CYGHWR_IO_FLASH_DEVICE_IN_RAM.
|
165 |
|
|
* src/flash.c: Made functions respect
|
166 |
|
|
CYGHWR_IO_FLASH_DEVICE_IN_RAM and jump directly to the code
|
167 |
|
|
instead of copying it around.
|
168 |
|
|
(__arm_broken): Work around problem with ARM tools.
|
169 |
|
|
|
170 |
|
|
2001-02-06 Hugo Tyson
|
171 |
|
|
|
172 |
|
|
* src/flash.c (flash_erase): Add an additional argument to the
|
173 |
|
|
call into the driver, being the blocksize (as discovered). This
|
174 |
|
|
allows a gross check for actual erase in some drivers. Those that
|
175 |
|
|
don't use it, it's harmless - after all, this is an API by trust.
|
176 |
|
|
|
177 |
|
|
2000-12-06 Jesper Skov
|
178 |
|
|
|
179 |
|
|
* src/flash.c (flash_dev_query): Added. Allows reloc/cache magic
|
180 |
|
|
to be removed from device drivers (eventually). Also fixed some
|
181 |
|
|
warnings, and made function references use char[] instead of just
|
182 |
|
|
char to prevent MIPS compiler from messing up.
|
183 |
|
|
|
184 |
|
|
* include/flash.h: Added FLASH_ERR_DRV_VERIFY and flash_dev_query.
|
185 |
|
|
|
186 |
|
|
2000-11-27 Jesper Skov
|
187 |
|
|
|
188 |
|
|
* src/flash.c: Do all flash access inside properly
|
189 |
|
|
cache-controlled region.
|
190 |
|
|
* include/flash.h: Cache definitions.
|
191 |
|
|
|
192 |
|
|
2000-11-17 Jesper Skov
|
193 |
|
|
|
194 |
|
|
* src/flash.c: Added debug mode, allowing device driver to use printf.
|
195 |
|
|
|
196 |
|
|
2000-11-16 Jesper Skov
|
197 |
|
|
|
198 |
|
|
* src/flash.c: Added suspend error messages.
|
199 |
|
|
* include/flash.h: Same.
|
200 |
|
|
|
201 |
|
|
2000-09-01 Hugo Tyson
|
202 |
|
|
|
203 |
|
|
* include/flash.h:
|
204 |
|
|
* src/flash.c: CYGHWR_IO_FLASH_BLOCK_LOCKING is an interface, so
|
205 |
|
|
it's always defined; look for > 0 instead.
|
206 |
|
|
|
207 |
|
|
2000-08-28 Gary Thomas
|
208 |
|
|
|
209 |
|
|
* src/flash.c:
|
210 |
|
|
* include/flash.h:
|
211 |
|
|
* cdl/io_flash.cdl: Support block locking (optional by hardware).
|
212 |
|
|
|
213 |
|
|
2000-08-22 Hugo Tyson
|
214 |
|
|
|
215 |
|
|
* src/flash.c (flash_program): Add HAL_ICACHE_DISABLE/ENABLE pairs
|
216 |
|
|
around calls to RAM copy of programming/erasing function - this is
|
217 |
|
|
necessary to get reliable operation on EBSA285 and similar.
|
218 |
|
|
Otherwise, what is in the instruction cache might be run instead.
|
219 |
|
|
|
220 |
|
|
2000-08-14 Gary Thomas
|
221 |
|
|
|
222 |
|
|
* include/flash.h: Add block size mask for finding block boundaries.
|
223 |
|
|
|
224 |
|
|
* src/flash.c: Use block size properly.
|
225 |
|
|
|
226 |
|
|
2000-07-29 Gary Thomas
|
227 |
|
|
|
228 |
|
|
* include/flash.h:
|
229 |
|
|
* src/flash.c (flash_get_block_info): New function.
|
230 |
|
|
(flash_program): Program in block_size chunks as much as possible.
|
231 |
|
|
|
232 |
|
|
//===========================================================================
|
233 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
234 |
|
|
// -------------------------------------------
|
235 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
236 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
237 |
|
|
//
|
238 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
239 |
|
|
// the terms of the GNU General Public License as published by the Free
|
240 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
241 |
|
|
//
|
242 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
243 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
244 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
245 |
|
|
// for more details.
|
246 |
|
|
//
|
247 |
|
|
// You should have received a copy of the GNU General Public License along
|
248 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
249 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
250 |
|
|
//
|
251 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
252 |
|
|
// or inline functions from this file, or you compile this file and link it
|
253 |
|
|
// with other works to produce a work based on this file, this file does not
|
254 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
255 |
|
|
// License. However the source code for this file must still be made available
|
256 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
257 |
|
|
//
|
258 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
259 |
|
|
// this file might be covered by the GNU General Public License.
|
260 |
|
|
//
|
261 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
262 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
263 |
|
|
// -------------------------------------------
|
264 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
265 |
|
|
//===========================================================================
|