1 |
27 |
unneback |
2002-08-12 Mark Salter
|
2 |
|
|
|
3 |
|
|
* src/flash_unlock_block.c: Add synchronous strataflash support.
|
4 |
|
|
* src/strata.h: Add comments regarding synchronous strataflash.
|
5 |
|
|
|
6 |
|
|
2002-04-30 Christoph Csebits
|
7 |
|
|
|
8 |
|
|
* src/flash_unlock_block.c: Getting the current block lock
|
9 |
|
|
state for flashes in 8-Bit mode is now working correctly.
|
10 |
|
|
|
11 |
|
|
2002-04-16 Jonathan Larmour
|
12 |
|
|
|
13 |
|
|
* cdl/flash_strata.cdl: Invoke $(CC) with $(CFLAGS) to ensure the
|
14 |
|
|
correct flags are passed.
|
15 |
|
|
|
16 |
|
|
2002-04-12 Gary Thomas
|
17 |
|
|
|
18 |
|
|
* src/strata.c: Clean up warnings.
|
19 |
|
|
|
20 |
|
|
2002-01-22 Mark Salter
|
21 |
|
|
|
22 |
|
|
* cdl/flash_strata.cdl: Add ".text" before "_end" markers in .s files.
|
23 |
|
|
|
24 |
|
|
2001-10-23 Hugo Tyson
|
25 |
|
|
|
26 |
|
|
* cdl/flash_strata.cdl: Provide an option so that RedBoot .ecm
|
27 |
|
|
files can turn off the functionality of copying flash driver code
|
28 |
|
|
to separate RAM for execution; it's not needed for RAM and ROMRAM
|
29 |
|
|
startup, and for some platforms it is required to *not* copy thus.
|
30 |
|
|
|
31 |
|
|
2001-08-25 Gary Thomas
|
32 |
|
|
|
33 |
|
|
* src/flash_program_buf.c (flash_program_buf): Allow configuration
|
34 |
|
|
specific code sequence for actual writing of data. Define by the
|
35 |
|
|
macro CYGHWR_FLASH_WRITE_ELEM. Note: this is required on some
|
36 |
|
|
hardware, like the Intel SA185, which handles flash writes in
|
37 |
|
|
strange/obscure fashion.
|
38 |
|
|
|
39 |
|
|
2001-07-17 Jeroen Dobbelaere
|
40 |
|
|
|
41 |
|
|
* src/flash_query.c (flash_query): Query needs to be done on even
|
42 |
|
|
addresses for byte-enabled strata flash
|
43 |
|
|
|
44 |
|
|
* src/flash_program_buf.c (flash_program_buf): Fix of conversion of
|
45 |
|
|
write buffer length (in bytes) to the length in 'flash_t' words.
|
46 |
|
|
|
47 |
|
|
2001-06-22 Hugo Tyson
|
48 |
|
|
|
49 |
|
|
* src/strata.c (flash_hwr_init): Need to refer to the query code
|
50 |
|
|
as extern char flash_query[], flash_query_end[]; (with the []) or
|
51 |
|
|
MIPS code gen assumes these are short offsets and linking fails.
|
52 |
|
|
The generic flash code in io/flash already uses this idiom.
|
53 |
|
|
|
54 |
|
|
2001-06-22 Hugo Tyson
|
55 |
|
|
|
56 |
|
|
* src/strata.c (flash_hwr_init): Warnings reduced. No arithmetic
|
57 |
|
|
on void *.
|
58 |
|
|
|
59 |
|
|
2001-06-21 Hugo Tyson
|
60 |
|
|
|
61 |
|
|
* src/flash_program_buf.c (flash_program_buf): The buffered write
|
62 |
|
|
code didn't jump out if there was a write error, nor verify the
|
63 |
|
|
data by reading back. This isn't consistent with the slow case,
|
64 |
|
|
and made it take an age if the device is unhappy, and then report
|
65 |
|
|
a bizarre error code. Both issues fixed.
|
66 |
|
|
|
67 |
|
|
2001-06-21 Hugo Tyson
|
68 |
|
|
|
69 |
|
|
* src/strata.c (flash_hwr_init): If shrinking to fit, must also
|
70 |
|
|
adjust the flash_info.blocks field, else unlock crashes trying to
|
71 |
|
|
get status of all those extra blocks that we cannot actually see.
|
72 |
|
|
|
73 |
|
|
2001-06-11 Gary Thomas
|
74 |
|
|
|
75 |
|
|
* src/strata.c: Remove dependency on printf() via user functions.
|
76 |
|
|
|
77 |
|
|
2001-06-07 Hugo Tyson
|
78 |
|
|
|
79 |
|
|
* src/strata.c (flash_hwr_init): If we find a flash device that is
|
80 |
|
|
larger than is possible given the memory map, shrink to fit.
|
81 |
|
|
We know about the memory map from CYGNUM_FLASH_BASE_MASK (if
|
82 |
|
|
defined); it tells us the stride from one device to another.
|
83 |
|
|
|
84 |
|
|
This is to cope with installing, say, a 28F640 in a slot designed
|
85 |
|
|
for a 28F320 because of supply issues - it all works fine so long
|
86 |
|
|
as A22 is grounded.
|
87 |
|
|
|
88 |
|
|
2001-05-23 Jesper Skov
|
89 |
|
|
|
90 |
|
|
* cdl/flash_strata.cdl: Needs IO driver to copy functions to RAM.
|
91 |
|
|
|
92 |
|
|
2001-04-26 Gary Thomas
|
93 |
|
|
|
94 |
|
|
* src/strata.c: Be more careful when enable/flush/disable caches.
|
95 |
|
|
|
96 |
|
|
* src/flash_erase_block.c (flash_erase_block): Boot block devices
|
97 |
|
|
may require additional erase commands to erase entire 'block'.
|
98 |
|
|
|
99 |
|
|
2001-03-21 Hugo Tyson
|
100 |
|
|
|
101 |
|
|
* src/strata.h (FLASH_Write_Buffer): Do not define this if
|
102 |
|
|
CYGOPT_FLASH_IS_NOT_ADVANCED is defined; Advanced (xxxJ3) flash is
|
103 |
|
|
usual these days. Also added documentation of the options that
|
104 |
|
|
can be used to control this module.
|
105 |
|
|
|
106 |
|
|
* src/flash_program_buf.c (flash_program_buf): Reduce warnings
|
107 |
|
|
about unused variables if no FLASH_Write_Buffer command available.
|
108 |
|
|
|
109 |
|
|
2001-03-21 Gary Thomas
|
110 |
|
|
|
111 |
|
|
* src/flash_program_buf.c (flash_program_buf): Buffered write code
|
112 |
|
|
fixups, only on platforms with it defined.
|
113 |
|
|
|
114 |
|
|
2001-03-17 Gary Thomas
|
115 |
|
|
|
116 |
|
|
* src/strata.h:
|
117 |
|
|
* src/strata.c: Support buffered writes.
|
118 |
|
|
|
119 |
|
|
* src/flash_program_buf.c: Use buffered writes if possible. This
|
120 |
|
|
mode allows the chip to do parallelized writes which is much faster.
|
121 |
|
|
It does require additional information, now provided by upper layer.
|
122 |
|
|
|
123 |
|
|
2001-02-15 Hugo Tyson
|
124 |
|
|
|
125 |
|
|
* src/flash_query.c (flash_query): Depending on whether
|
126 |
|
|
CYGOPT_FLASH_IS_BOOTBLOCK (just a #define from the instantiator,
|
127 |
|
|
not really a cdl_option) is set, do the full Read_Query or just
|
128 |
|
|
acquire two codes for manufacturer and device type using Read_ID.
|
129 |
|
|
|
130 |
|
|
* src/strata.c (flash_hwr_init): Again depending on whether
|
131 |
|
|
CYGOPT_FLASH_IS_BOOTBLOCK, decode the device type into a size and
|
132 |
|
|
so on, or use the full Read_Query data as before.
|
133 |
|
|
|
134 |
|
|
* src/strata.h (FLASH_Read_ID): Undefine those commands which we
|
135 |
|
|
do not use. Conditionally define those that we use depending on
|
136 |
|
|
CYGOPT_FLASH_IS_BOOTBLOCK. Thus we should be able to deal with
|
137 |
|
|
StrataFlash and BootBlock flash with the same code.
|
138 |
|
|
|
139 |
|
|
* cdl/flash_strata.cdl: Do not implement (in the CDL sense)
|
140 |
|
|
CYGHWR_IO_FLASH_BLOCK_LOCKING leave it up to the instantiating
|
141 |
|
|
package instead. Also move the build of the two objects that do
|
142 |
|
|
locking and unlocking into a compenent which is only active if
|
143 |
|
|
CYGHWR_IO_FLASH_BLOCK_LOCKING is indeed (requested to be)
|
144 |
|
|
implemented somewhere.
|
145 |
|
|
|
146 |
|
|
2001-02-14 Hugo Tyson
|
147 |
|
|
|
148 |
|
|
* devs/flash/intel/strata/...: New package, generic strataFlash
|
149 |
|
|
driver based on several others; a portion of its history
|
150 |
|
|
follows...
|
151 |
|
|
|
152 |
|
|
flash.h -> strata.h
|
153 |
|
|
flash.c -> strata.c
|
154 |
|
|
|
155 |
|
|
2001-02-06 Hugo Tyson
|
156 |
|
|
|
157 |
|
|
* src/flash.h: Much more generic again. Not yet separated into
|
158 |
|
|
generic component and invocation header, but the structure is
|
159 |
|
|
there. Also included support for a mapping from the physical
|
160 |
|
|
flash address we're thinking of to the virtual address we use to
|
161 |
|
|
access it. More documentation. Generalization to 8,16,32 and
|
162 |
|
|
64-bit access, made up from 8,16 or 32-bit devices. Command and
|
163 |
|
|
status macros modified to accommodate these options.
|
164 |
|
|
|
165 |
|
|
* src/flash_lock_block.c (flash_lock_block):
|
166 |
|
|
* src/flash_erase_block.c (flash_erase_block):
|
167 |
|
|
* src/flash_query.c (flash_query):
|
168 |
|
|
* src/flash_program_buf.c (flash_program_buf):
|
169 |
|
|
All now acquire when possible the ROM address from the block
|
170 |
|
|
address, and use the physical to virtual macro as needed.
|
171 |
|
|
|
172 |
|
|
* src/flash_unlock_block.c (flash_unlock_block):
|
173 |
|
|
The same changes, but a little more complex because of the need to
|
174 |
|
|
clear-all then re-lock some semantics. Shadow pointer to virtual
|
175 |
|
|
address is used each time round the loop.
|
176 |
|
|
|
177 |
|
|
* cdl/flash_strata.cdl: Add explicit dependencies on flash.h, for
|
178 |
|
|
there were none - or they were ignored - for the specially built
|
179 |
|
|
compilation units that get copied to RAM for execution.
|
180 |
|
|
|
181 |
|
|
2001-02-01 Hugo Tyson
|
182 |
|
|
|
183 |
|
|
* all: copied from the assabet flash driver.
|
184 |
|
|
|
185 |
|
|
2000-12-05 Jonathan Larmour
|
186 |
|
|
|
187 |
|
|
* src/assabet_flash.c (flash_code_overlaps): Define stext/etext
|
188 |
|
|
as array types so no assumptions can be made by the compiler about
|
189 |
|
|
location.
|
190 |
|
|
|
191 |
|
|
2000-10-24 Gary Thomas
|
192 |
|
|
|
193 |
|
|
* src/flash_unlock_block.c (flash_unlock_block):
|
194 |
|
|
* src/flash_lock_block.c (flash_lock_block):
|
195 |
|
|
* src/flash_program_buf.c (flash_program_buf):
|
196 |
|
|
* src/flash_erase_block.c (flash_erase_block): Support up to 32M FLASH.
|
197 |
|
|
|
198 |
|
|
2000-09-10 Gary Thomas
|
199 |
|
|
|
200 |
|
|
* src/flash_unlock_block.c:
|
201 |
|
|
* src/flash_lock_block.c: New file(s).
|
202 |
|
|
|
203 |
|
|
* src/flash.h:
|
204 |
|
|
* cdl/flash_assabet.cdl: Add region locking functions.
|
205 |
|
|
|
206 |
|
|
2000-08-29 Gary Thomas
|
207 |
|
|
|
208 |
|
|
* src/assabet_flash.c: Improve error decoding.
|
209 |
|
|
|
210 |
|
|
2000-08-24 Gary Thomas
|
211 |
|
|
|
212 |
|
|
* src/flash_query.c:
|
213 |
|
|
* src/flash_erase_block.c:
|
214 |
|
|
* src/flash.h: FLASH support for Intel SA1110 Assabet.
|
215 |
|
|
|
216 |
|
|
//===========================================================================
|
217 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
218 |
|
|
// -------------------------------------------
|
219 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
220 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
221 |
|
|
//
|
222 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
223 |
|
|
// the terms of the GNU General Public License as published by the Free
|
224 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
225 |
|
|
//
|
226 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
227 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
228 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
229 |
|
|
// for more details.
|
230 |
|
|
//
|
231 |
|
|
// You should have received a copy of the GNU General Public License along
|
232 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
233 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
234 |
|
|
//
|
235 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
236 |
|
|
// or inline functions from this file, or you compile this file and link it
|
237 |
|
|
// with other works to produce a work based on this file, this file does not
|
238 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
239 |
|
|
// License. However the source code for this file must still be made available
|
240 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
241 |
|
|
//
|
242 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
243 |
|
|
// this file might be covered by the GNU General Public License.
|
244 |
|
|
//
|
245 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
246 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
247 |
|
|
// -------------------------------------------
|
248 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
249 |
|
|
//===========================================================================
|