annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2626
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
1 2008-08-29 Nick Garnett <nickg@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
2
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
3 * src/flashiodev.c (flashiodev_init): Assign
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
4 CYG_DEVTAB_STATUS_BLOCK to status field of device table
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
5 entries. This causes devfs to call the right read/write
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
6 operations.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
7
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
8 2008-06-10 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
9
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
10 * tests/flashdev.c (FLASH_TEST_LENGTH): Reduce to a
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
11 multiple of 0x20000 as some flash parts (especially if
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
12 they are in fact multiple chips in parallel) have that
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
13 block size.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
14 Try opening jffs2test FIS partition if flashtest doesn't exist.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
15
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
16 2007-05-14 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
17
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
18 * src/flashiodev.c (flashiodev_get_config): Support new
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
19 CYG_IO_GET_CONFIG_FLASH_DEVADDR key to get flash device
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
20 base address.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
21 * include/flash.h: Associated structure for key.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
22 * doc/flash.sgml: Document CYG_IO_GET_CONFIG_FLASH_DEVADDR.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
23
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
24 2006-12-18 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
25
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
26 * tests/flash1.c: Replace FLASH_ERR_OK with CYG_FLASH_ERR_OK.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
27 * tests/flashdev.c: Ditto. Also flash_errmsg ->
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
28 cyg_flash_errmsg. And some warning cleanups.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
29
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
30 * src/flashiodev.c (flashiodev_lookup): Correct misplaced else
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
31 with respect to #ifdefs. Fix for bug 1000355.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
32
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
33 2006-12-18 Nick Garnett <nickg@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
34
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
35 * src/flash_legacy.h (FLASH_Enable, FLASH_Disable): Add casts to
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
36 these macros since the calls in the source don't present the right
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
37 types. This is mainly an exercise in suppressing compiler
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
38 warnings.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
39
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
40 2006-12-07 Nick Garnett <nickg@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
41
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
42 * tests/flashdev.c (cyg_start): Fix bug, b.offset should be
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
43 initialized to 0. Until now it was some random value on the stack,
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
44 why this has never bitten us before is a mystery.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
45
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
46 2006-10-31 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
47
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
48 * src/legacy_dev.c (legacy_flash_program): Define block_size.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
49
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
50 2006-10-03 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
51
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
52 * doc/flash.sgml: Bring into line with actual implementation.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
53 Also some trivial typos.
2142
a7557f72de47 * src/flash.c (flash_init): Allow repeat calls change the function
asl
parents: 2055
diff changeset
54
2626
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
55 2006-08-01 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
56
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
57 * src/flash.c (cyg_flash_devfn_lock_nop): Don't return error
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
58 if this is used with one of multiple flash devices in a
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
59 system where a different one does support locking.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
60 (cyg_flash_devfn_unlock_nop): Ditto.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
61
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
62 2006-06-06 John Dallaway <jld@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
63
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
64 * cdl/io_flash.cdl: Fix reference to package documentation.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
65
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
66 2006-05-23 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
67
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
68 * src/flash.c (cyg_flash_erase): Report errors and error
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
69 addresses correctly.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
70 (cyg_flash_program): Ditto.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
71
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
72 2005-12-21 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
73
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
74 * doc/flash.sgml: Document flash block device lock/unlock config keys.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
75
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
76 2005-10-26 Nick Garnett <nickg@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
77
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
78 * include/flash.h (cyg_io_flash_getconfig_lock_t)
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
79 (cyg_io_flash_getconfig_unlock_t): Added these aliases for
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
80 cyg_io_flash_getconfig_erase_t.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
81
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
82 * cdl/io_flash.cdl: Added configury to control compilation of
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
83 flash1 test. Added flashdev test.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
84
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
85 * src/legacy_api.c (flash_lock, flash_unlock): Added these functions.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
86
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
87 * src/flashiodev.c (flashiodev_get_config): Added support for lock
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
88 and unlock operations.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
89
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
90 * tests/flashdev.c: Added this test to exercise flash /dev/flash
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
91 device. Functionally it is similar to the flash1 test.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
92
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
93 * tests/flash1.c : Changed test for legacy API.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
94 (cyg_start): Added tests for lock and unlock functions.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
95
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
96 2005-09-28 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
97
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
98 * src/flash.c (flash_sort_and_check): Allow for Flash
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
99 device initialisation to fail, and thus not put this device
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
100 on the Flash device list.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
101
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
102 2005-09-26 Bart Veer <bartv@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
103
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
104 * src/flash.c: put init flag into .bss rather than .data, avoids
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
105 some problems when performing soft resets.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
106
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
107 2005-08-16 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
108
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
109 * src/flash.c (cyg_flash_read): Comment out chatter. It's not
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
110 very useful for this function.
2142
a7557f72de47 * src/flash.c (flash_init): Allow repeat calls change the function
asl
parents: 2055
diff changeset
111
2055
fc88957d075c * tests/flash1.c (cyg_start): Compiler warning fixes.
asl
parents: 1928
diff changeset
112 2005-08-02 Andrew Lunn <andrew.lunn@ascom.ch>
fc88957d075c * tests/flash1.c (cyg_start): Compiler warning fixes.
asl
parents: 1928
diff changeset
113
fc88957d075c * tests/flash1.c (cyg_start): Compiler warning fixes.
asl
parents: 1928
diff changeset
114 * tests/flash1.c (cyg_start): Compiler warning fixes.
fc88957d075c * tests/flash1.c (cyg_start): Compiler warning fixes.
asl
parents: 1928
diff changeset
115
2626
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
116 2005-05-27 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
117
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
118 * tests/flash1.c (cyg_start): Call CYG_TEST_INIT().
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
119
1928
5445c3413b0f * tests/flash1.c: Fixed compiler warning with diag_printf.
asl
parents: 1745
diff changeset
120 2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch>
5445c3413b0f * tests/flash1.c: Fixed compiler warning with diag_printf.
asl
parents: 1745
diff changeset
121
5445c3413b0f * tests/flash1.c: Fixed compiler warning with diag_printf.
asl
parents: 1745
diff changeset
122 * tests/flash1.c: Fixed compiler warning with diag_printf.
5445c3413b0f * tests/flash1.c: Fixed compiler warning with diag_printf.
asl
parents: 1745
diff changeset
123
2626
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
124 2005-02-28 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
125
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
126 * include/flash.h: Getconfig/setconfig definitions are relevant for
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
127 both new and legacy block device support.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
128
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
129 2005-01-28 Nick Garnett <nickg@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
130
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
131 * src/legacy_dev.c (legacy_flash_init): Assign flash_info.pf from
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
132 flash device field. Otherwise drivers try to call an invalid
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
133 address.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
134 (legacy_flash_program): The last argument to flash_program_buf()
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
135 is not the block size but the programming buffer size.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
136
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
137 2005-01-21 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
138
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
139 * doc/flash.sgml: Document Flash block devices.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
140
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
141 2005-01-19 Jonathan Larmour <jifl@eCosCentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
142
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
143 * src/flashiodev.c: Redesign to use more flexible flash names.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
144 * src/flashiodevlegacy.c: Previous version of flashiodev.c renamed
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
145 to this.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
146 * cdl/io_flash.cdl: Support new flashiodev design.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
147 * include/flash.h: don't double indirect err_address address
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
148 pointer in cyg_io_flash_getconfig_erase_t.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
149 * src/flash_legacy.h: Undef HAL_FLASH_CACHES_* macros if the HAL
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
150 supplied them and they're not needed.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
151
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
152 * src/legacy_api.c (flash_errmsg): Was missing. Add.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
153
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
154 * tests/flash1.c (cyg_start): Silence warning.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
155
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
156 2004-12-02 Bart Veer <bartv@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
157
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
158 * include/flash_dev.h: now provides everything needed by flash
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
159 device drivers.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
160
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
161 * include/flash_priv.h: removed, subsumed by flash_dev.h
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
162
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
163 * include/flash.h, src/flash.c, src/flashiodev.c,
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
164 src/legacy_api.c, src/legacy_dev.c:
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
165 Replace implicit #include's of <cyg/io/flash_priv.h> with explicit
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
166 #include's of <cyg/io/flash_dev.h>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
167
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
168 2004-11-29 Bart Veer <bartv@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
169
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
170 * include/flash_priv.h, src/flash.c, src/legacy_dev.c: remove
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
171 hwr_map_error() from V2 drivers
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
172
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
173 * include/flash_priv.h, src/flash.c, src/legacy_dev.c: provide
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
174 dummy init/query/lock/unlock functions for use by device drivers
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
175 which do not support/need this functionality. Export the
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
176 anonymizer function.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
177
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
178 2004-11-28 John Dallaway <jld@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
179
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
180 * doc/flash.sgml: Fix minor SGML tag problems.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
181
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
182 2004-11-28 Bart Veer <bartv@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
183
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
184 * src/flash.c (flash_sort_and_check): previous patch would have
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
185 resulted in init failure if only one device initialized.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
186 (cyg_flash_get_info): handle per-device init flag
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
187
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
188 2004-11-25 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
189
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
190 * src/flash.c (flash_sort_and_check): Don't add devices which
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
191 failed to initialise onto the list. Don't bother sorting the
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
192 list if its empty or only has one entry.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
193 * src/flash.c (find_dev): All devices on the list are initialised so
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
194 don't both checking the init flag.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
195
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
196 2004-11-24 Bart Veer <bartv@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
197
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
198 * cdl/io_flash.cdl, src/flash.c, src/flash_legacy.h,
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
199 src/legacy_dev.c: add support for V2 drivers which can take care
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
200 of the cache and interrupts themselves.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
201
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
202 * tests/flash1.c (cyg_start): mark N/A for now if a V2 driver is
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
203 being used.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
204 * Merge from flash V2 branch
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
205
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
206 2004-11-22 Bart Veer <bartv@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
207
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
208 * src/legacy_dev.c: remove .2ram attributes. These functions do
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
209 not manipulate the hardware, there is no need for them to live in
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
210 ram rather than flash
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
211 * include/flash_priv.h, src/legacy_dev.c: clean up the interface
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
212 between the generic flash code and the device drivers
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
213 * include/flash_priv, src/flash_legacy.h, src/flash.c,
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
214 src/legacy_dev.c: move cache stuff andother legacy macros
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
215 to an internal header.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
216 * include/flash.h, include/flash_priv.h, doc/flash.sgml,
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
217 src/flash.c, src/legacy_dev.c: put const in the right places,
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
218 and rename cyg_block_info to cyg_flash_block_info
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
219
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
220 2004-11-21 Bart Veer <bartv@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
221
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
222 * src/flash.c, include/flash_priv.h, cdl/io_flash.h: optimize
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
223 for the case of a single flash device.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
224 * include/flash.h, src/flash.c, doc/flash.sgml: remove
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
225 cyg_flash_code_overlaps()
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
226 * include/flash_priv.h, include/flash.h:
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
227 CYGSEM_IO_FLASH_LEGACY_DEVICE_API has been removed, test
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
228 CYGHWR_IO_FLASH_DEVICE_LEGACY instead
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
229 * cdl/io_flash.cdl: lots of clean-ups
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
230 * src/legacy_dev.c (legacy_flash_read): only needed if the
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
231 underlying legacy driver required indirect reads.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
232 * src/flash.c: encapsulate various optional bits of code in
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
233 macros, to cut down on the #ifdef's in the main code
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
234
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
235 2004-11-20 Bart Veer <bartv@ecoscentric.com>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
236
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
237 * cdl/io_flash.cdl, src/flash.c(cyg_flash_read): add an interface
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
238 for hardware which requires indirect reads, and suppress
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
239 unnecessary code if direct reads are always available.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
240 * src/flash.c: rearrange loops to avoid address comparisons, which
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
241 tend to go wrong if the flash is at the end of the address space
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
242
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
243 2004-10-06 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
244
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
245 * src/legacy_dev.c (legacy_flash_init): The end is the size plus
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
246 the start.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
247
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
248 2004-09-30 Savin Zlobec <savin@elatec.si>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
249
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
250 * src/flash.c: Offset into the block is not calculated correctly
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
251 when the flash start is not aligned on a flash block.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
252 * src/legacy_dev.c (legacy_flash_read): Fixed typo.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
253
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
254 2004-09-14 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
255
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
256 * src/flash.c (cyg_flash_init): Add assert checking that the
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
257 end address matches the block information.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
258 * src/legacy_dev.c (legacy_flash_init): Ensure that the end
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
259 address is the last valid address, not the first invalid address.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
260
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
261 2004-09-09 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
262
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
263 * src/flash.c: Support flash blocks of arbitary size. The
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
264 DataFlash devices for example have block of 528 bytes.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
265
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
266 2004-08-21 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
267
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
268 * removed the functions cyg_flash_get_limits and
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
269 cyg_flash_get_block_info. Reimplemented the legacy functions
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
270 that depended on them and flashiodev.c
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
271
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
272 2004-08-19 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
273
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
274 * src/flashiodev.c Ordering problem again. If an invalid name is
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
275 configured the lookup would fail and it then was impossible to do
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
276 a cyg_io_config_set. Lookup cannot fail because the name does not
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
277 exist in FIS.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
278
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
279 2004-08-13 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
280
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
281 * src/flash.c: Make the flock lock/unlock code compile without
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
282 warnings.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
283 * src/flashiodev.c (flashiodev_lookup): Only initialize the device
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
284 if we have not already been initialized via cyg_set_config().
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
285 This stopped redboots mount -f working.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
286
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
287 2004-08-09 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
288
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
289 * src/flashiodev.c (flashiodev_lookup): Moved most of the
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
290 flashiodev_init into this new function. This fixed the ordering
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
291 issue with redboot startup. When doing a FIS name lookup in
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
292 flashiodev_init, redboot was not yet nitialised so lookup
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
293 failed. Moving this into flashiodev_lookup solves this problem.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
294 Its now possible for redboot to mount the jffs2 filesystem with
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
295 -d /dev/flash1.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
296
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
297 2004-08-06 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
298
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
299 * src/flashiodev.c: Fix typo in macro and configuration options
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
300
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
301 2004-08-05 Andrew Lunn <andrew.lunn@ascom.ch>
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
302
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
303 * src/flash.c: Major rewrite to implement a new API
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
304 * src/legacy_api.c: Support the legacy API
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
305 * src/legacy_drv.c: Support the legacy driver API
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
306 * src/flashiodev.c: Support the new API and multiple devices
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
307 * include/flash_priv.h: Interface devices should use
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
308 * cdl/io_flash.cdl: Updates for new interface and multiple devices.
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
309
1745
a9728471a0b5 doco fix
msalter
parents: 1732
diff changeset
310 2004-09-05 Mark Salter <msalter@redhat.com>
a9728471a0b5 doco fix
msalter
parents: 1732
diff changeset
311
a9728471a0b5 doco fix
msalter
parents: 1732
diff changeset
312 * doc/flash.sgml: Fix unbalanced <PARA>s.
a9728471a0b5 doco fix
msalter
parents: 1732
diff changeset
313
1732
171cd3a5df5d Add simple test case
gthomas
parents: 1675
diff changeset
314 2004-08-24 Gary Thomas <gary@mlbassoc.com>
171cd3a5df5d Add simple test case
gthomas
parents: 1675
diff changeset
315
171cd3a5df5d Add simple test case
gthomas
parents: 1675
diff changeset
316 * cdl/io_flash.cdl:
171cd3a5df5d Add simple test case
gthomas
parents: 1675
diff changeset
317 * tests/flash1.c: Add simple test of FLASH driver.
171cd3a5df5d Add simple test case
gthomas
parents: 1675
diff changeset
318
1674
2a83c3d9c985 Added documentation of the FLASH API.
asl
parents: 1615
diff changeset
319 2004-06-20 Andrew Lunn <andrew.lunn@ascom.ch>
2a83c3d9c985 Added documentation of the FLASH API.
asl
parents: 1615
diff changeset
320
1675
e1d094896914 Don't check if the flash is write protected before performing a read.
asl
parents: 1674
diff changeset
321 * src/flash.c (flash_read): Don't check if the flash is write
e1d094896914 Don't check if the flash is write protected before performing a read.
asl
parents: 1674
diff changeset
322 protected before performing a read.
1674
2a83c3d9c985 Added documentation of the FLASH API.
asl
parents: 1615
diff changeset
323 * doc/flash.sgml
2a83c3d9c985 Added documentation of the FLASH API.
asl
parents: 1615
diff changeset
324 * cdl/io_flash.cdl: Added documentation of the FLASH API
2a83c3d9c985 Added documentation of the FLASH API.
asl
parents: 1615
diff changeset
325
1615
5118f42e7e62 * src/flashiodev.c: When checking flash upper bound, allow for end
jlarmour
parents: 1411
diff changeset
326 2004-04-29 Sebastien Couret <sebastien.couret@elios-informatique.com>
5118f42e7e62 * src/flashiodev.c: When checking flash upper bound, allow for end
jlarmour
parents: 1411
diff changeset
327 2004-04-29 Jonathan Larmour <jifl@eCosCentric.com>
5118f42e7e62 * src/flashiodev.c: When checking flash upper bound, allow for end
jlarmour
parents: 1411
diff changeset
328
5118f42e7e62 * src/flashiodev.c: When checking flash upper bound, allow for end
jlarmour
parents: 1411
diff changeset
329 * src/flashiodev.c: When checking flash upper bound, allow for end
5118f42e7e62 * src/flashiodev.c: When checking flash upper bound, allow for end
jlarmour
parents: 1411
diff changeset
330 of flash at 0xffffffff.
5118f42e7e62 * src/flashiodev.c: When checking flash upper bound, allow for end
jlarmour
parents: 1411
diff changeset
331
1411
5e52f3febc7d Specify flash block device names at runtime - from David Woodhouse
gthomas
parents: 1400
diff changeset
332 2003-11-27 David Woodhouse <dwmw2@infradead.org>
5e52f3febc7d Specify flash block device names at runtime - from David Woodhouse
gthomas
parents: 1400
diff changeset
333
5e52f3febc7d Specify flash block device names at runtime - from David Woodhouse
gthomas
parents: 1400
diff changeset
334 * src/flashiodev.c: Enable set_config() and implement
5e52f3febc7d Specify flash block device names at runtime - from David Woodhouse
gthomas
parents: 1400
diff changeset
335 CYG_IO_SET_CONFIG_FLASH_FIS_NAME.
5e52f3febc7d Specify flash block device names at runtime - from David Woodhouse
gthomas
parents: 1400
diff changeset
336
1400
707a873489c8 * src/flash.c: gcc 3.x vs gcc 2.x problems.
asl
parents: 1394
diff changeset
337 2003-11-25 Andrew Lunn <andrew.lunn@ascom.ch>
707a873489c8 * src/flash.c: gcc 3.x vs gcc 2.x problems.
asl
parents: 1394
diff changeset
338
707a873489c8 * src/flash.c: gcc 3.x vs gcc 2.x problems.
asl
parents: 1394
diff changeset
339 * src/flash.c: gcc 3.x vs gcc 2.x problems.
707a873489c8 * src/flash.c: gcc 3.x vs gcc 2.x problems.
asl
parents: 1394
diff changeset
340
1394
86d40b65e079 * cdl/io_flash.cdl:
asl
parents: 1391
diff changeset
341 2003-11-24 Jani Monoses <jani@iv.ro>
86d40b65e079 * cdl/io_flash.cdl:
asl
parents: 1391
diff changeset
342
86d40b65e079 * cdl/io_flash.cdl:
asl
parents: 1391
diff changeset
343 * cdl/io_flash.cdl:
86d40b65e079 * cdl/io_flash.cdl:
asl
parents: 1391
diff changeset
344 * include/flash.h: Remove CYGNUM_FLASH_WORKSPACE_SIZE cdl option.
86d40b65e079 * cdl/io_flash.cdl:
asl
parents: 1391
diff changeset
345
2626
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
346 2003-11-24 Roland Caßebohm <roland.cassebohm@visionsystems.de>
1391
c1f61c891552 * src/flashiodev.c (flashiodev_bwrite): Use flash_read rather than
asl
parents: 1389
diff changeset
347
c1f61c891552 * src/flashiodev.c (flashiodev_bwrite): Use flash_read rather than
asl
parents: 1389
diff changeset
348 * src/flashiodev.c (flashiodev_bwrite): Use flash_read rather than
c1f61c891552 * src/flashiodev.c (flashiodev_bwrite): Use flash_read rather than
asl
parents: 1389
diff changeset
349 directly doing a memcpy.
c1f61c891552 * src/flashiodev.c (flashiodev_bwrite): Use flash_read rather than
asl
parents: 1389
diff changeset
350
1389
587b0b1c6927 * src/flash.c:
asl
parents: 1371
diff changeset
351 2003-11-20 Jani Monoses <jani@iv.ro>
587b0b1c6927 * src/flash.c:
asl
parents: 1371
diff changeset
352
587b0b1c6927 * src/flash.c:
asl
parents: 1371
diff changeset
353 * src/flash.c:
587b0b1c6927 * src/flash.c:
asl
parents: 1371
diff changeset
354 * src/flashiodev.c:
587b0b1c6927 * src/flash.c:
asl
parents: 1371
diff changeset
355 * include/flash.h: Remove references to work_space and work_space_size
587b0b1c6927 * src/flash.c:
asl
parents: 1371
diff changeset
356 since they are no longer used.
587b0b1c6927 * src/flash.c:
asl
parents: 1371
diff changeset
357
1371
e4d78a7a628d Remove support for non-RAM drivers (depricated)
gthomas
parents: 1290
diff changeset
358 2003-11-20 Jani Monoses <jani@iv.ro>
e4d78a7a628d Remove support for non-RAM drivers (depricated)
gthomas
parents: 1290
diff changeset
359
e4d78a7a628d Remove support for non-RAM drivers (depricated)
gthomas
parents: 1290
diff changeset
360 * cdl/io_flash.cdl:
e4d78a7a628d Remove support for non-RAM drivers (depricated)
gthomas
parents: 1290
diff changeset
361 * src/flash.c: Remove handling of CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM
e4d78a7a628d Remove support for non-RAM drivers (depricated)
gthomas
parents: 1290
diff changeset
362 now that all flash drivers use ELF sections to specify which parts
e4d78a7a628d Remove support for non-RAM drivers (depricated)
gthomas
parents: 1290
diff changeset
363 go in RAM.
e4d78a7a628d Remove support for non-RAM drivers (depricated)
gthomas
parents: 1290
diff changeset
364
1290
7fb73b26ec8a Fix compile error
gthomas
parents: 1223
diff changeset
365 2003-10-08 Roland Cassebohm <roland.cassebohm@visionsystems.de>
7fb73b26ec8a Fix compile error
gthomas
parents: 1223
diff changeset
366
7fb73b26ec8a Fix compile error
gthomas
parents: 1223
diff changeset
367 * src/flash.c: Fix parse error if CYGSEM_IO_FLASH_READ_INDIRECT
7fb73b26ec8a Fix compile error
gthomas
parents: 1223
diff changeset
368 is not defined.
7fb73b26ec8a Fix compile error
gthomas
parents: 1223
diff changeset
369
1223
dbcfe4e0dbd2 New platform - TAMS MOAB - and generic changes to support it
gthomas
parents: 944
diff changeset
370 2003-09-19 Gary Thomas <gary@mlbassoc.com>
dbcfe4e0dbd2 New platform - TAMS MOAB - and generic changes to support it
gthomas
parents: 944
diff changeset
371
dbcfe4e0dbd2 New platform - TAMS MOAB - and generic changes to support it
gthomas
parents: 944
diff changeset
372 * src/flash.c:
dbcfe4e0dbd2 New platform - TAMS MOAB - and generic changes to support it
gthomas
parents: 944
diff changeset
373 * include/flash.h:
dbcfe4e0dbd2 New platform - TAMS MOAB - and generic changes to support it
gthomas
parents: 944
diff changeset
374 * cdl/io_flash.cdl: Add support for NAND (indirectly accessed)
dbcfe4e0dbd2 New platform - TAMS MOAB - and generic changes to support it
gthomas
parents: 944
diff changeset
375 devices. This includes a generic "flash_read_buf()" function.
dbcfe4e0dbd2 New platform - TAMS MOAB - and generic changes to support it
gthomas
parents: 944
diff changeset
376
944
f493618bc252 * include/flash_dev.h: Include <cyg/infra/cyg_type.h>
jlarmour
parents: 842
diff changeset
377 2003-04-14 Jani Monoses <jani@iv.ro>
f493618bc252 * include/flash_dev.h: Include <cyg/infra/cyg_type.h>
jlarmour
parents: 842
diff changeset
378
f493618bc252 * include/flash_dev.h: Include <cyg/infra/cyg_type.h>
jlarmour
parents: 842
diff changeset
379 * include/flash_dev.h: Include <cyg/infra/cyg_type.h>
f493618bc252 * include/flash_dev.h: Include <cyg/infra/cyg_type.h>
jlarmour
parents: 842
diff changeset
380
842
3c5c8c8ffa30 Fix compile/syntax error - from Thomas Koeller
gthomas
parents: 791
diff changeset
381 2003-03-19 Thomas Koeller <thomas.koeller@baslerweb.com>
3c5c8c8ffa30 Fix compile/syntax error - from Thomas Koeller
gthomas
parents: 791
diff changeset
382
3c5c8c8ffa30 Fix compile/syntax error - from Thomas Koeller
gthomas
parents: 791
diff changeset
383 * src/flashiodev.c: Fixed trivial error.
3c5c8c8ffa30 Fix compile/syntax error - from Thomas Koeller
gthomas
parents: 791
diff changeset
384
791
a2dfa8bf3c57 Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents: 713
diff changeset
385 2003-03-03 Knud Woehler <knud.woehler@microplex.de>
a2dfa8bf3c57 Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents: 713
diff changeset
386
a2dfa8bf3c57 Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents: 713
diff changeset
387 * src/flashiodev.c:
a2dfa8bf3c57 Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents: 713
diff changeset
388 * cdl/io_flash.cdl: Add CYGNUM_IO_FLASH_BLOCK_CFG_FIS_1 /
a2dfa8bf3c57 Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents: 713
diff changeset
389 CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_1. Initialize the block device
a2dfa8bf3c57 Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents: 713
diff changeset
390 from the FIS table.
a2dfa8bf3c57 Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents: 713
diff changeset
391
713
769b19e0b086 * cdl/io_flash.cdl: Remove irrelevant doc link - default to top
jlarmour
parents: 210
diff changeset
392 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
769b19e0b086 * cdl/io_flash.cdl: Remove irrelevant doc link - default to top
jlarmour
parents: 210
diff changeset
393
769b19e0b086 * cdl/io_flash.cdl: Remove irrelevant doc link - default to top
jlarmour
parents: 210
diff changeset
394 * cdl/io_flash.cdl: Remove irrelevant doc link - default to top
769b19e0b086 * cdl/io_flash.cdl: Remove irrelevant doc link - default to top
jlarmour
parents: 210
diff changeset
395 level.
769b19e0b086 * cdl/io_flash.cdl: Remove irrelevant doc link - default to top
jlarmour
parents: 210
diff changeset
396
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
397 2002-01-31 Jonathan Larmour <jlarmour@redhat.com>
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
398
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
399 * src/flashiodev.c: Fix bounds checking and offsetting.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
400
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
401 * cdl/io_flash.cdl (CYGNUM_IO_FLASH_BLOCK_LENGTH_1): Default to
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
402 0x100000 for convenience.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
403
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
404 2002-01-30 Jonathan Larmour <jlarmour@redhat.com>
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
405
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
406 * cdl/io_flash.cdl: Allow specification of an offset and length
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
407 of the region of flash.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
408 * src/flashiodev.c: Use it.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
409
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
410 2002-01-24 Jesper Skov <jskov@redhat.com>
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
411
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
412 * include/flash.h: Add a comment about the obvious: the flash
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
413 caching macros should be called with interrupts disabled.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
414
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
415 2002-01-23 Jonathan Larmour <jlarmour@redhat.com>
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
416
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
417 * cdl/io_flash.cdl: Add CYGPKG_IO_FLASH_BLOCK_DEVICE and
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
418 CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1 to allow exporting flash
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
419 as block devices accessible from file systems.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
420 * src/fileiodev.c: New file implementing this.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
421 * include/flash.h: Add typedefs for the various structures used
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
422 to configure the block devices.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
423
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
424 2002-01-18 Paul Fine <pfine@delcomsys.com>
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
425
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
426 * src/flash.c : Modified flash_verify_addr, flash_erase,
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
427 flash_lock and flash_unlock to to work properly when the location
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
428 of the flash in the memory map is at the very top of the address
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
429 space. We check and handle values that may overflow.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
430
195
67850532eebb Merge from eCos master repository on 2001-11-02-06:43:03-GMT
jlarmour
parents: 194
diff changeset
431 2001-10-28 Gary Thomas <gthomas@redhat.com>
67850532eebb Merge from eCos master repository on 2001-11-02-06:43:03-GMT
jlarmour
parents: 194
diff changeset
432
67850532eebb Merge from eCos master repository on 2001-11-02-06:43:03-GMT
jlarmour
parents: 194
diff changeset
433 * src/flash.c (flash_erase): Don't call hardware layer if block
67850532eebb Merge from eCos master repository on 2001-11-02-06:43:03-GMT
jlarmour
parents: 194
diff changeset
434 appears to be already erased [faster and less wear & tear].
67850532eebb Merge from eCos master repository on 2001-11-02-06:43:03-GMT
jlarmour
parents: 194
diff changeset
435
194
feb0fcf83327 Merge from eCos master repository on 2001-10-26-06:43:03-BST
jlarmour
parents: 191
diff changeset
436 2001-10-25 Jonathan Larmour <jlarmour@redhat.com>
feb0fcf83327 Merge from eCos master repository on 2001-10-26-06:43:03-BST
jlarmour
parents: 191
diff changeset
437
feb0fcf83327 Merge from eCos master repository on 2001-10-26-06:43:03-BST
jlarmour
parents: 191
diff changeset
438 * include/flash_dev.h: Fix test of 4x16-bit flash parts.
feb0fcf83327 Merge from eCos master repository on 2001-10-26-06:43:03-BST
jlarmour
parents: 191
diff changeset
439 Spotted by Jose Pascual <josepascual@almudi.com>
feb0fcf83327 Merge from eCos master repository on 2001-10-26-06:43:03-BST
jlarmour
parents: 191
diff changeset
440
191
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
441 2001-10-16 Jesper Skov <jskov@redhat.com>
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
442
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
443 * src/flash.c: Include string.h
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
444
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
445 * cdl/io_flash.cdl: Package requires ISOINFRA and string
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
446 functions.
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
447
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
448 2001-10-15 David Howells <dhowells@redhat.com>
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
449
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
450 * src/flash.c: Include string.h to get mem*() functions.
678094f34118 Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents: 184
diff changeset
451
184
022f1e506033 Merge from eCos master repository on 2001-10-02-17:59:22-BST
jlarmour
parents: 177
diff changeset
452 2001-09-25 Gary Thomas <gthomas@redhat.com>
022f1e506033 Merge from eCos master repository on 2001-10-02-17:59:22-BST
jlarmour
parents: 177
diff changeset
453
022f1e506033 Merge from eCos master repository on 2001-10-02-17:59:22-BST
jlarmour
parents: 177
diff changeset
454 * include/flash.h: Remove warning on printf() prototype.
022f1e506033 Merge from eCos master repository on 2001-10-02-17:59:22-BST
jlarmour
parents: 177
diff changeset
455
177
4c750ce71ae3 Merge from eCos master repository on 2001-08-10-19:22:57-BST
jlarmour
parents: 174
diff changeset
456 2001-08-10 Jesper Skov <jskov@redhat.com>
4c750ce71ae3 Merge from eCos master repository on 2001-08-10-19:22:57-BST
jlarmour
parents: 174
diff changeset
457
4c750ce71ae3 Merge from eCos master repository on 2001-08-10-19:22:57-BST
jlarmour
parents: 174
diff changeset
458 * cdl/io_flash.cdl: Changed flavor of
4c750ce71ae3 Merge from eCos master repository on 2001-08-10-19:22:57-BST
jlarmour
parents: 174
diff changeset
459 CYGHWR_IO_FLASH_BLOCK_LOCKING to booldata.
4c750ce71ae3 Merge from eCos master repository on 2001-08-10-19:22:57-BST
jlarmour
parents: 174
diff changeset
460 * include/flash.h: Matching changes.
4c750ce71ae3 Merge from eCos master repository on 2001-08-10-19:22:57-BST
jlarmour
parents: 174
diff changeset
461 * src/flash.c: Matching changes.
4c750ce71ae3 Merge from eCos master repository on 2001-08-10-19:22:57-BST
jlarmour
parents: 174
diff changeset
462
174
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
463 2001-07-23 David Howells <dhowells@redhat.com>
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
464
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
465 * cdl/io_flash.cdl: Added software write protect option.
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
466 * include/flash.h: Ditto.
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
467 * src/flash.c: Added software write protect option and bank
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
468 support, and prevented low-level writes from being handed
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
469 cross-block data chunks.
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
470
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
471 2001-07-20 Gary Thomas <gthomas@redhat.com>
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
472
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
473 * include/flash.h:
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
474 * cdl/io_flash.cdl: Name convention: CYGINT_FLASH_WORKSPACE_SIZE
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
475 renamed to be CYGNUM_FLASH_WORKSPACE_SIZE.
38892b97b685 Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents: 172
diff changeset
476
172
cd45958b28ff Merge from eCos master repository on 2001-07-20-10:24:43-BST
jlarmour
parents: 163
diff changeset
477 2001-07-19 Gary Thomas <gthomas@redhat.com>
cd45958b28ff Merge from eCos master repository on 2001-07-20-10:24:43-BST
jlarmour
parents: 163
diff changeset
478
cd45958b28ff Merge from eCos master repository on 2001-07-20-10:24:43-BST
jlarmour
parents: 163
diff changeset
479 * include/flash.h:
cd45958b28ff Merge from eCos master repository on 2001-07-20-10:24:43-BST
jlarmour
parents: 163
diff changeset
480 * cdl/io_flash.cdl: New option CYGINT_FLASH_WORKSPACE_SIZE used
cd45958b28ff Merge from eCos master repository on 2001-07-20-10:24:43-BST
jlarmour
parents: 163
diff changeset
481 to control how much memory is reserved for use by FLASH drivers.
cd45958b28ff Merge from eCos master repository on 2001-07-20-10:24:43-BST
jlarmour
parents: 163
diff changeset
482
163
0d2b193a635f Merge from eCos master repository on 2001-06-22-17:38:39-BST
jlarmour
parents: 162
diff changeset
483 2001-06-19 Hugo Tyson <hmt@redhat.com>
0d2b193a635f Merge from eCos master repository on 2001-06-22-17:38:39-BST
jlarmour
parents: 162
diff changeset
484
0d2b193a635f Merge from eCos master repository on 2001-06-22-17:38:39-BST
jlarmour
parents: 162
diff changeset
485 * src/flash.c (flash_program): Only verify program with memcmp if
0d2b193a635f Merge from eCos master repository on 2001-06-22-17:38:39-BST
jlarmour
parents: 162
diff changeset
486 the status code suggests the programming went OK so far.
0d2b193a635f Merge from eCos master repository on 2001-06-22-17:38:39-BST
jlarmour
parents: 162
diff changeset
487 Otherwise all errors become verify errors.
0d2b193a635f Merge from eCos master repository on 2001-06-22-17:38:39-BST
jlarmour
parents: 162
diff changeset
488
0d2b193a635f Merge from eCos master repository on 2001-06-22-17:38:39-BST
jlarmour
parents: 162
diff changeset
489 (flash_init): Fix bug in removal of dependency of printf(). The
0d2b193a635f Merge from eCos master repository on 2001-06-22-17:38:39-BST
jlarmour
parents: 162
diff changeset
490 pointer was not initialized until after the call into the driver.
0d2b193a635f Merge from eCos master repository on 2001-06-22-17:38:39-BST
jlarmour
parents: 162
diff changeset
491
162
2395031e7a66 Merge from eCos master repository on 2001-06-15-06:43:03-BST
jlarmour
parents: 160
diff changeset
492 2001-06-11 Gary Thomas <gthomas@redhat.com>
2395031e7a66 Merge from eCos master repository on 2001-06-15-06:43:03-BST
jlarmour
parents: 160
diff changeset
493
2395031e7a66 Merge from eCos master repository on 2001-06-15-06:43:03-BST
jlarmour
parents: 160
diff changeset
494 * src/flash.c:
2395031e7a66 Merge from eCos master repository on 2001-06-15-06:43:03-BST
jlarmour
parents: 160
diff changeset
495 * include/flash.h: Remove dependency on printf() via user functions.
2395031e7a66 Merge from eCos master repository on 2001-06-15-06:43:03-BST
jlarmour
parents: 160
diff changeset
496
160
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
497 2001-05-23 Jesper Skov <jskov@redhat.com>
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
498
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
499 * include/flash_dev.h (FLASH_P2V): Use CYG_ADDRWORD instead of int.
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
500
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
501 * src/flash.c: Copy functions to RAM iff
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
502 CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM defined.
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
503
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
504 * cdl/io_flash.cdl: Changed CYGHWR_IO_FLASH_DEVICE_IN_RAM to
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
505 CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM.
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
506
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
507 2001-05-21 Jonathan Larmour <jlarmour@redhat.com>
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
508
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
509 * include/flash_dev.h: Fix cyg_uin16 typo.
0d0f03f76f6a Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents: 157
diff changeset
510
157
b65ec671dd4c Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents: 156
diff changeset
511 2001-03-29 Mark Salter <msalter@redhat.com>
b65ec671dd4c Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents: 156
diff changeset
512
b65ec671dd4c Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents: 156
diff changeset
513 * cdl/io_flash.cdl (CYGSEM_IO_FLASH_VERIFY_PROGRAM): New option
b65ec671dd4c Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents: 156
diff changeset
514 to control whether or not to perform extra verification of flash
b65ec671dd4c Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents: 156
diff changeset
515 programming.
b65ec671dd4c Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents: 156
diff changeset
516 * src/flash.c (flash_program): No verification unless
b65ec671dd4c Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents: 156
diff changeset
517 CYGSEM_IO_FLASH_VERIFY_PROGRAM defined.
b65ec671dd4c Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents: 156
diff changeset
518
156
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
519 2001-03-21 Gary Thomas <gthomas@redhat.com>
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
520
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
521 * src/flash.c (flash_program): Verify data after programming.
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
522
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
523 2001-03-21 Jesper Skov <jskov@redhat.com>
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
524
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
525 * include/flash.h: Added low voltage error message.
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
526 * src/flash.c: And its error message.
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
527
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
528 2001-03-17 Gary Thomas <gthomas@redhat.com>
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
529
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
530 * src/flash.c (flash_program):
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
531 * include/flash.h: Add support for [StrataFLASH] buffered writes.
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
532 This requires knowledge of the device write buffer size [saved].
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
533
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
534 2001-03-01 Gary Thomas <gthomas@redhat.com>
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
535
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
536 * src/flash.c:
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
537 * include/flash.h: Allow platform to define pre/post routines
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
538 to enable/disable device access. These may be required, e.g.
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
539 to turn on some voltage, etc.
b939e9cada46 Merge from eCos master repository on 2001-03-29-21:44:39-BST
jlarmour
parents: 154
diff changeset
540
154
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
541 2001-02-23 Jesper Skov <jskov@redhat.com>
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
542
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
543 * include/flash.h: HAL_FLASH_CACHES_WANT_OPTIMAL replaced with
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
544 (opposite sense) HAL_FLASH_CACHES_OLD_MACROS.
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
545
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
546 * src/flash.c (__anonymizer): Use to force the compiler to use
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
547 jumps instead of branches.
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
548
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
549 2001-02-22 Jesper Skov <jskov@redhat.com>
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
550
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
551 * include/flash_dev.h: Added. Contains macros and definitions
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
552 common to all (new style) flash device drivers.
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
553
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
554 * include/flash.h: Added two new error codes.
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
555 * cdl/io_flash.cdl: Added CYGHWR_IO_FLASH_DEVICE_IN_RAM.
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
556 * src/flash.c: Made functions respect
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
557 CYGHWR_IO_FLASH_DEVICE_IN_RAM and jump directly to the code
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
558 instead of copying it around.
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
559 (__arm_broken): Work around problem with ARM tools.
e2d866e32dac Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents: 151
diff changeset
560
151
25e238959bae Merge from eCos master repository on 2001-02-12-23:44:24-GMT
jlarmour
parents: 143
diff changeset
561 2001-02-06 Hugo Tyson <hmt@redhat.com>
25e238959bae Merge from eCos master repository on 2001-02-12-23:44:24-GMT
jlarmour
parents: 143
diff changeset
562
25e238959bae Merge from eCos master repository on 2001-02-12-23:44:24-GMT
jlarmour
parents: 143
diff changeset
563 * src/flash.c (flash_erase): Add an additional argument to the
25e238959bae Merge from eCos master repository on 2001-02-12-23:44:24-GMT
jlarmour
parents: 143
diff changeset
564 call into the driver, being the blocksize (as discovered). This
25e238959bae Merge from eCos master repository on 2001-02-12-23:44:24-GMT
jlarmour
parents: 143
diff changeset
565 allows a gross check for actual erase in some drivers. Those that
25e238959bae Merge from eCos master repository on 2001-02-12-23:44:24-GMT
jlarmour
parents: 143
diff changeset
566 don't use it, it's harmless - after all, this is an API by trust.
25e238959bae Merge from eCos master repository on 2001-02-12-23:44:24-GMT
jlarmour
parents: 143
diff changeset
567
143
6b5f480c6929 Merge from eCos master repository on 2000-12-08-02:09:36-GMT
jlarmour
parents: 141
diff changeset
568 2000-12-06 Jesper Skov <jskov@redhat.com>
6b5f480c6929 Merge from eCos master repository on 2000-12-08-02:09:36-GMT
jlarmour
parents: 141
diff changeset
569
6b5f480c6929 Merge from eCos master repository on 2000-12-08-02:09:36-GMT
jlarmour
parents: 141
diff changeset
570 * src/flash.c (flash_dev_query): Added. Allows reloc/cache magic
6b5f480c6929 Merge from eCos master repository on 2000-12-08-02:09:36-GMT
jlarmour
parents: 141
diff changeset
571 to be removed from device drivers (eventually). Also fixed some
6b5f480c6929 Merge from eCos master repository on 2000-12-08-02:09:36-GMT
jlarmour
parents: 141
diff changeset
572 warnings, and made function references use char[] instead of just
6b5f480c6929 Merge from eCos master repository on 2000-12-08-02:09:36-GMT
jlarmour
parents: 141
diff changeset
573 char to prevent MIPS compiler from messing up.
6b5f480c6929 Merge from eCos master repository on 2000-12-08-02:09:36-GMT
jlarmour
parents: 141
diff changeset
574
6b5f480c6929 Merge from eCos master repository on 2000-12-08-02:09:36-GMT
jlarmour
parents: 141
diff changeset
575 * include/flash.h: Added FLASH_ERR_DRV_VERIFY and flash_dev_query.
6b5f480c6929 Merge from eCos master repository on 2000-12-08-02:09:36-GMT
jlarmour
parents: 141
diff changeset
576
141
450e4e1f1e80 Merge from eCos master repository on 2000-11-27-23:09:27-GMT
jlarmour
parents: 136
diff changeset
577 2000-11-27 Jesper Skov <jskov@redhat.com>
450e4e1f1e80 Merge from eCos master repository on 2000-11-27-23:09:27-GMT
jlarmour
parents: 136
diff changeset
578
450e4e1f1e80 Merge from eCos master repository on 2000-11-27-23:09:27-GMT
jlarmour
parents: 136
diff changeset
579 * src/flash.c: Do all flash access inside properly
450e4e1f1e80 Merge from eCos master repository on 2000-11-27-23:09:27-GMT
jlarmour
parents: 136
diff changeset
580 cache-controlled region.
450e4e1f1e80 Merge from eCos master repository on 2000-11-27-23:09:27-GMT
jlarmour
parents: 136
diff changeset
581 * include/flash.h: Cache definitions.
450e4e1f1e80 Merge from eCos master repository on 2000-11-27-23:09:27-GMT
jlarmour
parents: 136
diff changeset
582
136
a9ac27ec7abc Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents: 121
diff changeset
583 2000-11-17 Jesper Skov <jskov@redhat.com>
a9ac27ec7abc Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents: 121
diff changeset
584
a9ac27ec7abc Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents: 121
diff changeset
585 * src/flash.c: Added debug mode, allowing device driver to use printf.
a9ac27ec7abc Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents: 121
diff changeset
586
a9ac27ec7abc Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents: 121
diff changeset
587 2000-11-16 Jesper Skov <jskov@redhat.com>
a9ac27ec7abc Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents: 121
diff changeset
588
a9ac27ec7abc Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents: 121
diff changeset
589 * src/flash.c: Added suspend error messages.
a9ac27ec7abc Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents: 121
diff changeset
590 * include/flash.h: Same.
a9ac27ec7abc Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents: 121
diff changeset
591
121
6bd9d475ed4b Merge from eCos master repository on 2000-09-04-20:50:20-BST
jlarmour
parents: 119
diff changeset
592 2000-09-01 Hugo Tyson <hmt@cygnus.co.uk>
6bd9d475ed4b Merge from eCos master repository on 2000-09-04-20:50:20-BST
jlarmour
parents: 119
diff changeset
593
6bd9d475ed4b Merge from eCos master repository on 2000-09-04-20:50:20-BST
jlarmour
parents: 119
diff changeset
594 * include/flash.h:
6bd9d475ed4b Merge from eCos master repository on 2000-09-04-20:50:20-BST
jlarmour
parents: 119
diff changeset
595 * src/flash.c: CYGHWR_IO_FLASH_BLOCK_LOCKING is an interface, so
6bd9d475ed4b Merge from eCos master repository on 2000-09-04-20:50:20-BST
jlarmour
parents: 119
diff changeset
596 it's always defined; look for > 0 instead.
6bd9d475ed4b Merge from eCos master repository on 2000-09-04-20:50:20-BST
jlarmour
parents: 119
diff changeset
597
119
77cec8369160 Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents: 117
diff changeset
598 2000-08-28 Gary Thomas <gthomas@redhat.com>
77cec8369160 Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents: 117
diff changeset
599
77cec8369160 Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents: 117
diff changeset
600 * src/flash.c:
77cec8369160 Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents: 117
diff changeset
601 * include/flash.h:
77cec8369160 Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents: 117
diff changeset
602 * cdl/io_flash.cdl: Support block locking (optional by hardware).
77cec8369160 Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents: 117
diff changeset
603
117
bd1a71e3e476 Merge from eCos master repository on 2000-08-25-19:22:58-BST
jlarmour
parents: 115
diff changeset
604 2000-08-22 Hugo Tyson <hmt@cygnus.co.uk>
bd1a71e3e476 Merge from eCos master repository on 2000-08-25-19:22:58-BST
jlarmour
parents: 115
diff changeset
605
bd1a71e3e476 Merge from eCos master repository on 2000-08-25-19:22:58-BST
jlarmour
parents: 115
diff changeset
606 * src/flash.c (flash_program): Add HAL_ICACHE_DISABLE/ENABLE pairs
bd1a71e3e476 Merge from eCos master repository on 2000-08-25-19:22:58-BST
jlarmour
parents: 115
diff changeset
607 around calls to RAM copy of programming/erasing function - this is
bd1a71e3e476 Merge from eCos master repository on 2000-08-25-19:22:58-BST
jlarmour
parents: 115
diff changeset
608 necessary to get reliable operation on EBSA285 and similar.
bd1a71e3e476 Merge from eCos master repository on 2000-08-25-19:22:58-BST
jlarmour
parents: 115
diff changeset
609 Otherwise, what is in the instruction cache might be run instead.
bd1a71e3e476 Merge from eCos master repository on 2000-08-25-19:22:58-BST
jlarmour
parents: 115
diff changeset
610
115
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
611 2000-08-14 Gary Thomas <gthomas@redhat.com>
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
612
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
613 * include/flash.h: Add block size mask for finding block boundaries.
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
614
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
615 * src/flash.c: Use block size properly.
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
616
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
617 2000-07-29 Gary Thomas <gthomas@redhat.com>
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
618
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
619 * include/flash.h:
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
620 * src/flash.c (flash_get_block_info): New function.
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
621 (flash_program): Program in block_size chunks as much as possible.
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
622
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
623 //===========================================================================
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
624 //####ECOSGPLCOPYRIGHTBEGIN####
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
625 // -------------------------------------------
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
626 // This file is part of eCos, the Embedded Configurable Operating System.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
627 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
2626
a2f5434df2cb Merge flashv2 branch to trunk, with eCosCentric additions
jlarmour
parents: 2142
diff changeset
628 // Copyright (C) 2005, 2006, 2008 eCosCentric Limited
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
629 //
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
630 // eCos is free software; you can redistribute it and/or modify it under
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
631 // the terms of the GNU General Public License as published by the Free
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
632 // Software Foundation; either version 2 or (at your option) any later version.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
633 //
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
634 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
635 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
636 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
637 // for more details.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
638 //
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
639 // You should have received a copy of the GNU General Public License along
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
640 // with eCos; if not, write to the Free Software Foundation, Inc.,
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
641 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
642 //
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
643 // As a special exception, if other files instantiate templates or use macros
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
644 // or inline functions from this file, or you compile this file and link it
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
645 // with other works to produce a work based on this file, this file does not
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
646 // by itself cause the resulting work to be covered by the GNU General Public
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
647 // License. However the source code for this file must still be made available
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
648 // in accordance with section (3) of the GNU General Public License.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
649 //
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
650 // This exception does not invalidate any other reasons why a work based on
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
651 // this file might be covered by the GNU General Public License.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
652 // -------------------------------------------
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents: 195
diff changeset
653 //####ECOSGPLCOPYRIGHTEND####
115
6ed91473a1cd Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff changeset
654 //===========================================================================