Mercurial > ecos
comparison packages/io/flash/current/ChangeLog @ 2626:a2f5434df2cb
Merge flashv2 branch to trunk, with eCosCentric additions
| author | jlarmour |
|---|---|
| date | Tue, 18 Nov 2008 00:56:04 +0000 |
| parents | a7557f72de47 |
| children | 592d727733df |
comparison
equal
deleted
inserted
replaced
| 2625:e38c98808295 | 2626:a2f5434df2cb |
|---|---|
| 1 2006-02-21 Oliver Munz <munz@speag.ch> | 1 2008-08-29 Nick Garnett <nickg@ecoscentric.com> |
| 2 Andrew Lunn <andrew.lunn@ascom.ch> | 2 |
| 3 | 3 * src/flashiodev.c (flashiodev_init): Assign |
| 4 * src/flash.c (flash_init): Allow repeat calls change the function | 4 CYG_DEVTAB_STATUS_BLOCK to status field of device table |
| 5 used for printing. There are times you don't any output, eg you | 5 entries. This causes devfs to call the right read/write |
| 6 are downloading am image over the serial port. | 6 operations. |
| 7 | |
| 8 2008-06-10 Jonathan Larmour <jifl@eCosCentric.com> | |
| 9 | |
| 10 * tests/flashdev.c (FLASH_TEST_LENGTH): Reduce to a | |
| 11 multiple of 0x20000 as some flash parts (especially if | |
| 12 they are in fact multiple chips in parallel) have that | |
| 13 block size. | |
| 14 Try opening jffs2test FIS partition if flashtest doesn't exist. | |
| 15 | |
| 16 2007-05-14 Jonathan Larmour <jifl@eCosCentric.com> | |
| 17 | |
| 18 * src/flashiodev.c (flashiodev_get_config): Support new | |
| 19 CYG_IO_GET_CONFIG_FLASH_DEVADDR key to get flash device | |
| 20 base address. | |
| 21 * include/flash.h: Associated structure for key. | |
| 22 * doc/flash.sgml: Document CYG_IO_GET_CONFIG_FLASH_DEVADDR. | |
| 23 | |
| 24 2006-12-18 Jonathan Larmour <jifl@eCosCentric.com> | |
| 25 | |
| 26 * tests/flash1.c: Replace FLASH_ERR_OK with CYG_FLASH_ERR_OK. | |
| 27 * tests/flashdev.c: Ditto. Also flash_errmsg -> | |
| 28 cyg_flash_errmsg. And some warning cleanups. | |
| 29 | |
| 30 * src/flashiodev.c (flashiodev_lookup): Correct misplaced else | |
| 31 with respect to #ifdefs. Fix for bug 1000355. | |
| 32 | |
| 33 2006-12-18 Nick Garnett <nickg@ecoscentric.com> | |
| 34 | |
| 35 * src/flash_legacy.h (FLASH_Enable, FLASH_Disable): Add casts to | |
| 36 these macros since the calls in the source don't present the right | |
| 37 types. This is mainly an exercise in suppressing compiler | |
| 38 warnings. | |
| 39 | |
| 40 2006-12-07 Nick Garnett <nickg@ecoscentric.com> | |
| 41 | |
| 42 * tests/flashdev.c (cyg_start): Fix bug, b.offset should be | |
| 43 initialized to 0. Until now it was some random value on the stack, | |
| 44 why this has never bitten us before is a mystery. | |
| 45 | |
| 46 2006-10-31 Jonathan Larmour <jifl@eCosCentric.com> | |
| 47 | |
| 48 * src/legacy_dev.c (legacy_flash_program): Define block_size. | |
| 49 | |
| 50 2006-10-03 Jonathan Larmour <jifl@eCosCentric.com> | |
| 51 | |
| 52 * doc/flash.sgml: Bring into line with actual implementation. | |
| 53 Also some trivial typos. | |
| 54 | |
| 55 2006-08-01 Jonathan Larmour <jifl@eCosCentric.com> | |
| 56 | |
| 57 * src/flash.c (cyg_flash_devfn_lock_nop): Don't return error | |
| 58 if this is used with one of multiple flash devices in a | |
| 59 system where a different one does support locking. | |
| 60 (cyg_flash_devfn_unlock_nop): Ditto. | |
| 61 | |
| 62 2006-06-06 John Dallaway <jld@ecoscentric.com> | |
| 63 | |
| 64 * cdl/io_flash.cdl: Fix reference to package documentation. | |
| 65 | |
| 66 2006-05-23 Jonathan Larmour <jifl@eCosCentric.com> | |
| 67 | |
| 68 * src/flash.c (cyg_flash_erase): Report errors and error | |
| 69 addresses correctly. | |
| 70 (cyg_flash_program): Ditto. | |
| 71 | |
| 72 2005-12-21 Jonathan Larmour <jifl@eCosCentric.com> | |
| 73 | |
| 74 * doc/flash.sgml: Document flash block device lock/unlock config keys. | |
| 75 | |
| 76 2005-10-26 Nick Garnett <nickg@ecoscentric.com> | |
| 77 | |
| 78 * include/flash.h (cyg_io_flash_getconfig_lock_t) | |
| 79 (cyg_io_flash_getconfig_unlock_t): Added these aliases for | |
| 80 cyg_io_flash_getconfig_erase_t. | |
| 81 | |
| 82 * cdl/io_flash.cdl: Added configury to control compilation of | |
| 83 flash1 test. Added flashdev test. | |
| 84 | |
| 85 * src/legacy_api.c (flash_lock, flash_unlock): Added these functions. | |
| 86 | |
| 87 * src/flashiodev.c (flashiodev_get_config): Added support for lock | |
| 88 and unlock operations. | |
| 89 | |
| 90 * tests/flashdev.c: Added this test to exercise flash /dev/flash | |
| 91 device. Functionally it is similar to the flash1 test. | |
| 92 | |
| 93 * tests/flash1.c : Changed test for legacy API. | |
| 94 (cyg_start): Added tests for lock and unlock functions. | |
| 95 | |
| 96 2005-09-28 Jonathan Larmour <jifl@eCosCentric.com> | |
| 97 | |
| 98 * src/flash.c (flash_sort_and_check): Allow for Flash | |
| 99 device initialisation to fail, and thus not put this device | |
| 100 on the Flash device list. | |
| 101 | |
| 102 2005-09-26 Bart Veer <bartv@ecoscentric.com> | |
| 103 | |
| 104 * src/flash.c: put init flag into .bss rather than .data, avoids | |
| 105 some problems when performing soft resets. | |
| 106 | |
| 107 2005-08-16 Jonathan Larmour <jifl@eCosCentric.com> | |
| 108 | |
| 109 * src/flash.c (cyg_flash_read): Comment out chatter. It's not | |
| 110 very useful for this function. | |
| 7 | 111 |
| 8 2005-08-02 Andrew Lunn <andrew.lunn@ascom.ch> | 112 2005-08-02 Andrew Lunn <andrew.lunn@ascom.ch> |
| 9 | 113 |
| 10 * tests/flash1.c (cyg_start): Compiler warning fixes. | 114 * tests/flash1.c (cyg_start): Compiler warning fixes. |
| 11 | 115 |
| 116 2005-05-27 Jonathan Larmour <jifl@eCosCentric.com> | |
| 117 | |
| 118 * tests/flash1.c (cyg_start): Call CYG_TEST_INIT(). | |
| 119 | |
| 12 2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch> | 120 2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch> |
| 13 | 121 |
| 14 * tests/flash1.c: Fixed compiler warning with diag_printf. | 122 * tests/flash1.c: Fixed compiler warning with diag_printf. |
| 15 | 123 |
| 124 2005-02-28 Jonathan Larmour <jifl@eCosCentric.com> | |
| 125 | |
| 126 * include/flash.h: Getconfig/setconfig definitions are relevant for | |
| 127 both new and legacy block device support. | |
| 128 | |
| 129 2005-01-28 Nick Garnett <nickg@ecoscentric.com> | |
| 130 | |
| 131 * src/legacy_dev.c (legacy_flash_init): Assign flash_info.pf from | |
| 132 flash device field. Otherwise drivers try to call an invalid | |
| 133 address. | |
| 134 (legacy_flash_program): The last argument to flash_program_buf() | |
| 135 is not the block size but the programming buffer size. | |
| 136 | |
| 137 2005-01-21 Jonathan Larmour <jifl@eCosCentric.com> | |
| 138 | |
| 139 * doc/flash.sgml: Document Flash block devices. | |
| 140 | |
| 141 2005-01-19 Jonathan Larmour <jifl@eCosCentric.com> | |
| 142 | |
| 143 * src/flashiodev.c: Redesign to use more flexible flash names. | |
| 144 * src/flashiodevlegacy.c: Previous version of flashiodev.c renamed | |
| 145 to this. | |
| 146 * cdl/io_flash.cdl: Support new flashiodev design. | |
| 147 * include/flash.h: don't double indirect err_address address | |
| 148 pointer in cyg_io_flash_getconfig_erase_t. | |
| 149 * src/flash_legacy.h: Undef HAL_FLASH_CACHES_* macros if the HAL | |
| 150 supplied them and they're not needed. | |
| 151 | |
| 152 * src/legacy_api.c (flash_errmsg): Was missing. Add. | |
| 153 | |
| 154 * tests/flash1.c (cyg_start): Silence warning. | |
| 155 | |
| 156 2004-12-02 Bart Veer <bartv@ecoscentric.com> | |
| 157 | |
| 158 * include/flash_dev.h: now provides everything needed by flash | |
| 159 device drivers. | |
| 160 | |
| 161 * include/flash_priv.h: removed, subsumed by flash_dev.h | |
| 162 | |
| 163 * include/flash.h, src/flash.c, src/flashiodev.c, | |
| 164 src/legacy_api.c, src/legacy_dev.c: | |
| 165 Replace implicit #include's of <cyg/io/flash_priv.h> with explicit | |
| 166 #include's of <cyg/io/flash_dev.h> | |
| 167 | |
| 168 2004-11-29 Bart Veer <bartv@ecoscentric.com> | |
| 169 | |
| 170 * include/flash_priv.h, src/flash.c, src/legacy_dev.c: remove | |
| 171 hwr_map_error() from V2 drivers | |
| 172 | |
| 173 * include/flash_priv.h, src/flash.c, src/legacy_dev.c: provide | |
| 174 dummy init/query/lock/unlock functions for use by device drivers | |
| 175 which do not support/need this functionality. Export the | |
| 176 anonymizer function. | |
| 177 | |
| 178 2004-11-28 John Dallaway <jld@ecoscentric.com> | |
| 179 | |
| 180 * doc/flash.sgml: Fix minor SGML tag problems. | |
| 181 | |
| 182 2004-11-28 Bart Veer <bartv@ecoscentric.com> | |
| 183 | |
| 184 * src/flash.c (flash_sort_and_check): previous patch would have | |
| 185 resulted in init failure if only one device initialized. | |
| 186 (cyg_flash_get_info): handle per-device init flag | |
| 187 | |
| 188 2004-11-25 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 189 | |
| 190 * src/flash.c (flash_sort_and_check): Don't add devices which | |
| 191 failed to initialise onto the list. Don't bother sorting the | |
| 192 list if its empty or only has one entry. | |
| 193 * src/flash.c (find_dev): All devices on the list are initialised so | |
| 194 don't both checking the init flag. | |
| 195 | |
| 196 2004-11-24 Bart Veer <bartv@ecoscentric.com> | |
| 197 | |
| 198 * cdl/io_flash.cdl, src/flash.c, src/flash_legacy.h, | |
| 199 src/legacy_dev.c: add support for V2 drivers which can take care | |
| 200 of the cache and interrupts themselves. | |
| 201 | |
| 202 * tests/flash1.c (cyg_start): mark N/A for now if a V2 driver is | |
| 203 being used. | |
| 204 * Merge from flash V2 branch | |
| 205 | |
| 206 2004-11-22 Bart Veer <bartv@ecoscentric.com> | |
| 207 | |
| 208 * src/legacy_dev.c: remove .2ram attributes. These functions do | |
| 209 not manipulate the hardware, there is no need for them to live in | |
| 210 ram rather than flash | |
| 211 * include/flash_priv.h, src/legacy_dev.c: clean up the interface | |
| 212 between the generic flash code and the device drivers | |
| 213 * include/flash_priv, src/flash_legacy.h, src/flash.c, | |
| 214 src/legacy_dev.c: move cache stuff andother legacy macros | |
| 215 to an internal header. | |
| 216 * include/flash.h, include/flash_priv.h, doc/flash.sgml, | |
| 217 src/flash.c, src/legacy_dev.c: put const in the right places, | |
| 218 and rename cyg_block_info to cyg_flash_block_info | |
| 219 | |
| 220 2004-11-21 Bart Veer <bartv@ecoscentric.com> | |
| 221 | |
| 222 * src/flash.c, include/flash_priv.h, cdl/io_flash.h: optimize | |
| 223 for the case of a single flash device. | |
| 224 * include/flash.h, src/flash.c, doc/flash.sgml: remove | |
| 225 cyg_flash_code_overlaps() | |
| 226 * include/flash_priv.h, include/flash.h: | |
| 227 CYGSEM_IO_FLASH_LEGACY_DEVICE_API has been removed, test | |
| 228 CYGHWR_IO_FLASH_DEVICE_LEGACY instead | |
| 229 * cdl/io_flash.cdl: lots of clean-ups | |
| 230 * src/legacy_dev.c (legacy_flash_read): only needed if the | |
| 231 underlying legacy driver required indirect reads. | |
| 232 * src/flash.c: encapsulate various optional bits of code in | |
| 233 macros, to cut down on the #ifdef's in the main code | |
| 234 | |
| 235 2004-11-20 Bart Veer <bartv@ecoscentric.com> | |
| 236 | |
| 237 * cdl/io_flash.cdl, src/flash.c(cyg_flash_read): add an interface | |
| 238 for hardware which requires indirect reads, and suppress | |
| 239 unnecessary code if direct reads are always available. | |
| 240 * src/flash.c: rearrange loops to avoid address comparisons, which | |
| 241 tend to go wrong if the flash is at the end of the address space | |
| 242 | |
| 243 2004-10-06 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 244 | |
| 245 * src/legacy_dev.c (legacy_flash_init): The end is the size plus | |
| 246 the start. | |
| 247 | |
| 248 2004-09-30 Savin Zlobec <savin@elatec.si> | |
| 249 | |
| 250 * src/flash.c: Offset into the block is not calculated correctly | |
| 251 when the flash start is not aligned on a flash block. | |
| 252 * src/legacy_dev.c (legacy_flash_read): Fixed typo. | |
| 253 | |
| 254 2004-09-14 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 255 | |
| 256 * src/flash.c (cyg_flash_init): Add assert checking that the | |
| 257 end address matches the block information. | |
| 258 * src/legacy_dev.c (legacy_flash_init): Ensure that the end | |
| 259 address is the last valid address, not the first invalid address. | |
| 260 | |
| 261 2004-09-09 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 262 | |
| 263 * src/flash.c: Support flash blocks of arbitary size. The | |
| 264 DataFlash devices for example have block of 528 bytes. | |
| 265 | |
| 266 2004-08-21 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 267 | |
| 268 * removed the functions cyg_flash_get_limits and | |
| 269 cyg_flash_get_block_info. Reimplemented the legacy functions | |
| 270 that depended on them and flashiodev.c | |
| 271 | |
| 272 2004-08-19 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 273 | |
| 274 * src/flashiodev.c Ordering problem again. If an invalid name is | |
| 275 configured the lookup would fail and it then was impossible to do | |
| 276 a cyg_io_config_set. Lookup cannot fail because the name does not | |
| 277 exist in FIS. | |
| 278 | |
| 279 2004-08-13 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 280 | |
| 281 * src/flash.c: Make the flock lock/unlock code compile without | |
| 282 warnings. | |
| 283 * src/flashiodev.c (flashiodev_lookup): Only initialize the device | |
| 284 if we have not already been initialized via cyg_set_config(). | |
| 285 This stopped redboots mount -f working. | |
| 286 | |
| 287 2004-08-09 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 288 | |
| 289 * src/flashiodev.c (flashiodev_lookup): Moved most of the | |
| 290 flashiodev_init into this new function. This fixed the ordering | |
| 291 issue with redboot startup. When doing a FIS name lookup in | |
| 292 flashiodev_init, redboot was not yet nitialised so lookup | |
| 293 failed. Moving this into flashiodev_lookup solves this problem. | |
| 294 Its now possible for redboot to mount the jffs2 filesystem with | |
| 295 -d /dev/flash1. | |
| 296 | |
| 297 2004-08-06 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 298 | |
| 299 * src/flashiodev.c: Fix typo in macro and configuration options | |
| 300 | |
| 301 2004-08-05 Andrew Lunn <andrew.lunn@ascom.ch> | |
| 302 | |
| 303 * src/flash.c: Major rewrite to implement a new API | |
| 304 * src/legacy_api.c: Support the legacy API | |
| 305 * src/legacy_drv.c: Support the legacy driver API | |
| 306 * src/flashiodev.c: Support the new API and multiple devices | |
| 307 * include/flash_priv.h: Interface devices should use | |
| 308 * cdl/io_flash.cdl: Updates for new interface and multiple devices. | |
| 309 | |
| 16 2004-09-05 Mark Salter <msalter@redhat.com> | 310 2004-09-05 Mark Salter <msalter@redhat.com> |
| 17 | 311 |
| 18 * doc/flash.sgml: Fix unbalanced <PARA>s. | 312 * doc/flash.sgml: Fix unbalanced <PARA>s. |
| 19 | 313 |
| 20 2004-08-24 Gary Thomas <gary@mlbassoc.com> | 314 2004-08-24 Gary Thomas <gary@mlbassoc.com> |
| 47 2003-11-24 Jani Monoses <jani@iv.ro> | 341 2003-11-24 Jani Monoses <jani@iv.ro> |
| 48 | 342 |
| 49 * cdl/io_flash.cdl: | 343 * cdl/io_flash.cdl: |
| 50 * include/flash.h: Remove CYGNUM_FLASH_WORKSPACE_SIZE cdl option. | 344 * include/flash.h: Remove CYGNUM_FLASH_WORKSPACE_SIZE cdl option. |
| 51 | 345 |
| 52 2003-11-24 Roland Caßebohm <roland.cassebohm@visionsystems.de> | 346 2003-11-24 Roland Caßebohm <roland.cassebohm@visionsystems.de> |
| 53 | 347 |
| 54 * src/flashiodev.c (flashiodev_bwrite): Use flash_read rather than | 348 * src/flashiodev.c (flashiodev_bwrite): Use flash_read rather than |
| 55 directly doing a memcpy. | 349 directly doing a memcpy. |
| 56 | 350 |
| 57 2003-11-20 Jani Monoses <jani@iv.ro> | 351 2003-11-20 Jani Monoses <jani@iv.ro> |
| 329 //=========================================================================== | 623 //=========================================================================== |
| 330 //####ECOSGPLCOPYRIGHTBEGIN#### | 624 //####ECOSGPLCOPYRIGHTBEGIN#### |
| 331 // ------------------------------------------- | 625 // ------------------------------------------- |
| 332 // This file is part of eCos, the Embedded Configurable Operating System. | 626 // This file is part of eCos, the Embedded Configurable Operating System. |
| 333 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. | 627 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
| 628 // Copyright (C) 2005, 2006, 2008 eCosCentric Limited | |
| 334 // | 629 // |
| 335 // eCos is free software; you can redistribute it and/or modify it under | 630 // eCos is free software; you can redistribute it and/or modify it under |
| 336 // the terms of the GNU General Public License as published by the Free | 631 // the terms of the GNU General Public License as published by the Free |
| 337 // Software Foundation; either version 2 or (at your option) any later version. | 632 // Software Foundation; either version 2 or (at your option) any later version. |
| 338 // | 633 // |
| 352 // License. However the source code for this file must still be made available | 647 // License. However the source code for this file must still be made available |
| 353 // in accordance with section (3) of the GNU General Public License. | 648 // in accordance with section (3) of the GNU General Public License. |
| 354 // | 649 // |
| 355 // This exception does not invalidate any other reasons why a work based on | 650 // This exception does not invalidate any other reasons why a work based on |
| 356 // this file might be covered by the GNU General Public License. | 651 // this file might be covered by the GNU General Public License. |
| 357 // | |
| 358 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. | |
| 359 // at http://sources.redhat.com/ecos/ecos-license/ | |
| 360 // ------------------------------------------- | 652 // ------------------------------------------- |
| 361 //####ECOSGPLCOPYRIGHTEND#### | 653 //####ECOSGPLCOPYRIGHTEND#### |
| 362 //=========================================================================== | 654 //=========================================================================== |
