Mercurial > flash_v2
annotate packages/devs/flash/intel/stratav2/current/ChangeLog @ 1718:c8515e560548
2004-08-21 Andrew Lunn <andrew.lunn@ascom.ch>
* include/flash_strata_v2.inl (flash_unlock_block):
* cdl/flash_strata_v2.cdl: CDL to control the maximum number of
blocks the driver supports. Some of the newer strata device has more
than the default maximum of 128. Problem pointed out by Kevin Zhang.
| author | asl |
|---|---|
| date | Sat, 21 Aug 2004 08:48:17 +0000 |
| parents | e4f7f465ee77 |
| children | d2486ee206e4 |
| rev | line source |
|---|---|
| 1718 | 1 2004-08-21 Andrew Lunn <andrew.lunn@ascom.ch> |
| 2 | |
| 3 * include/flash_strata_v2.inl (flash_unlock_block): | |
| 4 * cdl/flash_strata_v2.cdl: CDL to control the maximum number of | |
| 5 blocks the driver supports. Some of the newer strata device has more | |
| 6 than the default maximum of 128. Problem pointed out by Kevin Zhang. | |
| 7 | |
| 1716 | 8 2004-08-13 Andrew Lunn <andrew.lunn@ascom.ch> |
| 9 | |
| 10 * cdl/flash_strata_v2.cdl: Indicate we implement | |
| 11 CYGHWR_IO_FLASH_BLOCK_LOCKING when | |
| 12 CYGOPT_DEVS_FLASH_STRATA_V2_LOCKING is enabled. | |
| 13 * include/flash_strata_v2.inl: Make block unlock and | |
| 14 lock compile. | |
| 15 | |
|
1709
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
16 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
|
17 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
18 * 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
|
19 version uses the new flash device API. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
20 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
21 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
|
22 * src/strata.h: |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
23 * src/strata.c: |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
24 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
|
25 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
|
26 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
27 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
|
28 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
29 * 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
|
30 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
|
31 returned data. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
32 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
33 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
|
34 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
35 * 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
|
36 * 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
|
37 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
|
38 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
|
39 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
|
40 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
41 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
|
42 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
43 * cdl/flash_strata.cdl: |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
44 * 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
|
45 * 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
|
46 * 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
|
47 * src/flash_query.c (flash_query): |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
48 * 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
|
49 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
|
50 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
51 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
|
52 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
53 * 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
|
54 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
|
55 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
|
56 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
|
57 nevertheless. |
|
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 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
|
60 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
61 * src/strata.h: |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
62 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
|
63 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
|
64 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
|
65 and CYGNUM_FLASH_DEVICES is 4. |
|
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 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
|
68 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
69 * 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
|
70 * 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
|
71 * 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
|
72 * src/flash_query.c (flash_query): |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
73 * 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
|
74 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
|
75 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
76 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
|
77 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
78 * 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
|
79 * 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
|
80 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
81 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
|
82 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
83 * 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
|
84 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
|
85 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
86 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
|
87 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
88 * 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
|
89 correct flags are passed. |
|
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 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
|
92 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
93 * src/strata.c: Clean up warnings. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
94 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
95 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
|
96 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
97 * 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
|
98 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
99 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
|
100 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
101 * 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
|
102 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
|
103 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
|
104 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
|
105 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
106 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
|
107 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
108 * 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
|
109 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
|
110 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
|
111 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
|
112 strange/obscure fashion. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
113 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
114 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
|
115 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
116 * 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
|
117 addresses for byte-enabled strata flash |
|
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 * 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
|
120 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
|
121 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
122 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
|
123 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
124 * 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
|
125 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
|
126 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
|
127 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
|
128 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
129 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
|
130 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
131 * 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
|
132 on void *. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
133 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
134 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
|
135 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
136 * 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
|
137 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
|
138 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
|
139 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
|
140 a bizarre error code. Both issues fixed. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
141 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
142 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
|
143 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
144 * 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
|
145 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
|
146 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
|
147 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
148 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
|
149 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
150 * 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
|
151 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
152 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
|
153 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
154 * 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
|
155 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
|
156 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
|
157 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
|
158 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
159 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
|
160 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
|
161 as A22 is grounded. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
162 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
163 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
|
164 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
165 * 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
|
166 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
167 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
|
168 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
169 * 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
|
170 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
171 * 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
|
172 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
|
173 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
174 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
|
175 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
176 * 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
|
177 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
|
178 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
|
179 can be used to control this module. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
180 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
181 * 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
|
182 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
|
183 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
184 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
|
185 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
186 * 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
|
187 fixups, only on platforms with it defined. |
|
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 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
|
190 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
191 * src/strata.h: |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
192 * src/strata.c: Support buffered writes. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
193 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
194 * 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
|
195 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
|
196 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
|
197 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
198 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
|
199 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
200 * 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
|
201 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
|
202 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
|
203 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
|
204 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
205 * 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
|
206 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
|
207 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
|
208 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
209 * 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
|
210 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
|
211 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
|
212 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
|
213 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
214 * 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
|
215 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
|
216 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
|
217 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
|
218 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
|
219 implemented somewhere. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
220 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
221 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
|
222 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
223 * 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
|
224 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
|
225 follows... |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
226 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
227 flash.h -> strata.h |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
228 flash<platform>.c -> strata.c |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
229 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
230 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
|
231 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
232 * 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
|
233 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
|
234 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
|
235 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
|
236 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
|
237 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
|
238 status macros modified to accommodate these options. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
239 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
240 * 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
|
241 * 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
|
242 * src/flash_query.c (flash_query): |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
243 * 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
|
244 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
|
245 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
|
246 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
247 * 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
|
248 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
|
249 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
|
250 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
|
251 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
252 * 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
|
253 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
|
254 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
|
255 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
256 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
|
257 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
258 * all: copied from the assabet flash driver. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
259 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
260 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
|
261 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
262 * 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
|
263 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
|
264 location. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
265 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
266 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
|
267 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
268 * 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
|
269 * 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
|
270 * 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
|
271 * 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
|
272 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
273 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
|
274 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
275 * src/flash_unlock_block.c: |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
276 * 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
|
277 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
278 * src/flash.h: |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
279 * 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
|
280 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
281 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
|
282 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
283 * src/assabet_flash.c: Improve error decoding. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
284 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
285 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
|
286 |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
287 * src/flash_query.c: |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
288 * src/flash_erase_block.c: |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
289 * 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
|
290 |
|
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 //####ECOSGPLCOPYRIGHTBEGIN#### |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
293 // ------------------------------------------- |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
294 // 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
|
295 // 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
|
296 // |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
297 // 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
|
298 // 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
|
299 // 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
|
300 // |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
301 // 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
|
302 // 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
|
303 // 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
|
304 // for more details. |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
305 // |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
306 // 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
|
307 // 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
|
308 // 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
|
309 // |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
310 // 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
|
311 // 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
|
312 // 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
|
313 // 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
|
314 // 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
|
315 // 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
|
316 // |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
317 // 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
|
318 // 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
|
319 // |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
320 // 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
|
321 // 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
|
322 // ------------------------------------------- |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
323 //####ECOSGPLCOPYRIGHTEND#### |
|
57655b789e8a
* New version of the strata driver based on the old version. This
asl
parents:
diff
changeset
|
324 //=========================================================================== |
