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