annotate packages/devs/flash/intel/stratav2/current/ChangeLog @ 1761:af5ce7899d45

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