Mercurial > flash_v2
annotate packages/io/flash/current/cdl/io_flash.cdl @ 1742:a668b95e5f2e
Only include the support for indirect flash reads if there are devices
which need it.
| author | bartv |
|---|---|
| date | Sat, 20 Nov 2004 23:31:59 +0000 |
| parents | 3845779eca10 |
| children | 49e24a462730 |
| rev | line source |
|---|---|
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
1 # ==================================================================== |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
2 # |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
3 # io_flash.cdl |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
4 # |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
5 # eCos IO configuration data |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
6 # |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
7 # ==================================================================== |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
8 #####ECOSGPLCOPYRIGHTBEGIN#### |
|
210
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
9 ## ------------------------------------------- |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
10 ## This file is part of eCos, the Embedded Configurable Operating System. |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
12 ## Copyright (C) 2003 Gary Thomas |
| 1706 | 13 ## Copyright (C) 2004 Andrew Lunn |
|
210
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
14 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
15 ## eCos is free software; you can redistribute it and/or modify it under |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
16 ## the terms of the GNU General Public License as published by the Free |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
17 ## Software Foundation; either version 2 or (at your option) any later version. |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
18 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
19 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
20 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
21 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
22 ## for more details. |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
23 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
24 ## You should have received a copy of the GNU General Public License along |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
25 ## with eCos; if not, write to the Free Software Foundation, Inc., |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
26 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
27 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
28 ## As a special exception, if other files instantiate templates or use macros |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
29 ## or inline functions from this file, or you compile this file and link it |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
30 ## with other works to produce a work based on this file, this file does not |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
31 ## by itself cause the resulting work to be covered by the GNU General Public |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
32 ## License. However the source code for this file must still be made available |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
33 ## in accordance with section (3) of the GNU General Public License. |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
34 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
35 ## This exception does not invalidate any other reasons why a work based on |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
36 ## this file might be covered by the GNU General Public License. |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
37 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
38 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
39 ## at http://sources.redhat.com/ecos/ecos-license/ |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
40 ## ------------------------------------------- |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
41 #####ECOSGPLCOPYRIGHTEND#### |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
42 # ==================================================================== |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
43 ######DESCRIPTIONBEGIN#### |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
44 # |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
45 # Author(s): gthomas |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
46 # Original data: gthomas |
|
791
a2dfa8bf3c57
Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents:
713
diff
changeset
|
47 # Contributors: woehler |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
48 # Date: 2000-07-06 |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
49 # |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
50 #####DESCRIPTIONEND#### |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
51 # |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
52 # ==================================================================== |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
53 |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
54 cdl_package CYGPKG_IO_FLASH { |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
55 display "FLASH device drivers" |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
56 include_dir cyg/io |
| 1674 | 57 doc ref/flash.html |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
58 description " |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
59 This option enables drivers for basic I/O services on |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
60 flash devices." |
|
191
678094f34118
Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents:
177
diff
changeset
|
61 requires CYGPKG_ISOINFRA |
|
678094f34118
Merge from eCos master repository on 2001-10-19-06:43:02-BST
jlarmour
parents:
177
diff
changeset
|
62 requires CYGINT_ISO_STRING_STRFUNCS |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
63 |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
64 compile flash.c |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
65 |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
66 define_proc { |
|
174
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
67 puts $::cdl_header "#include <pkgconf/system.h>" |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
68 puts $::cdl_header "#ifdef CYGDAT_IO_FLASH_DEVICE_HEADER" |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
69 puts $::cdl_header "# include CYGDAT_IO_FLASH_DEVICE_HEADER" |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
70 puts $::cdl_header "#endif " |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
71 } |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
72 |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
73 cdl_interface CYGHWR_IO_FLASH_DEVICE { |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
74 display "Hardware FLASH device drivers" |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
75 description " |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
76 This option enables the hardware device drivers |
|
174
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
77 for the current platform." |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
78 } |
|
119
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
79 |
|
160
0d0f03f76f6a
Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents:
157
diff
changeset
|
80 cdl_interface 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
|
81 display "Hardware FLASH device drivers are not in RAM" |
|
154
e2d866e32dac
Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents:
119
diff
changeset
|
82 flavor booldata |
|
e2d866e32dac
Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents:
119
diff
changeset
|
83 description " |
| 1371 | 84 Use of this interface is deprecated. |
| 85 Drivers should make sure that the functions are | |
|
160
0d0f03f76f6a
Merge from eCos master repository on 2001-06-01-18:52:13-BST
jlarmour
parents:
157
diff
changeset
|
86 linked to RAM by putting them in .2ram sections." |
| 1706 | 87 requires !CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM |
|
154
e2d866e32dac
Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents:
119
diff
changeset
|
88 } |
|
e2d866e32dac
Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents:
119
diff
changeset
|
89 |
|
119
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
90 cdl_interface CYGHWR_IO_FLASH_BLOCK_LOCKING { |
|
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
91 display "Hardware can support block locking" |
|
177
4c750ce71ae3
Merge from eCos master repository on 2001-08-10-19:22:57-BST
jlarmour
parents:
174
diff
changeset
|
92 flavor booldata |
|
119
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
93 description " |
|
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
94 This option will be enabled by devices which can support |
|
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
95 locking (write-protection) of individual blocks." |
|
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
96 } |
|
172
cd45958b28ff
Merge from eCos master repository on 2001-07-20-10:24:43-BST
jlarmour
parents:
160
diff
changeset
|
97 |
|
1742
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
98 cdl_interface CYGHWR_IO_FLASH_INDIRECT_READS { |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
99 display "Hardware requires indirect reads" |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
100 flavor booldata |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
101 description " |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
102 Some flash devices can be read directly like any other |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
103 memory. Others can only be accessed indirectly, which |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
104 involves extra code. If none of the flash devices on the |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
105 target hardware use indirect reads then the extra code |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
106 can be eliminated." |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
107 } |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
108 |
| 1706 | 109 cdl_interface CYGHWR_IO_FLASH_DEVICE_LEGACY { |
| 110 display "Hardware driver uses the legacy interface" | |
| 111 flavor booldata | |
| 112 description " | |
| 113 The flash device driver implements the legacy interface to the | |
| 114 flash library" | |
| 115 } | |
| 116 | |
| 117 cdl_interface CYGHWR_IO_FLASH_DEVICE_V2 { | |
| 118 display "Hardware driver uses the V2 interface" | |
| 119 flavor booldata | |
| 120 description " | |
| 121 The flash device driver implements the V2 interface to the | |
| 122 flash library" | |
| 123 } | |
| 124 | |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
125 cdl_option CYGSEM_IO_FLASH_READ_INDIRECT { |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
126 display "Hardware cannot support direct access to FLASH memory" |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
127 flavor bool |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
128 default_value 0 |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
129 requires { !CYGSEM_IO_FLASH_VERIFY_PROGRAM } |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
130 description " |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
131 This option will be asserted by devices which cannot support |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
132 direct access to the FLASH memory contents (e.g. EEPROM or NAND |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
133 devices). In these cases, the driver must provide an appropriate |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
134 hardware access function." |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
135 } |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
136 |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
137 cdl_option CYGSEM_IO_FLASH_CHATTER { |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
138 display "Display status messages during flash operations" |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
139 flavor bool |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
140 default_value 1 |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
141 description " |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
142 Selecting this option will cause the drivers to print status |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
143 messages as various flash operations are undertaken." |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
144 } |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
145 |
|
157
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
146 cdl_option CYGSEM_IO_FLASH_VERIFY_PROGRAM { |
|
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
147 display "Verify data programmed to flash" |
|
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
148 flavor bool |
|
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
149 default_value 1 |
|
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
150 description " |
|
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
151 Selecting this option will cause verification of data |
|
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
152 programmed to flash." |
|
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
153 } |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
154 |
|
174
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
155 cdl_option CYGSEM_IO_FLASH_SOFT_WRITE_PROTECT { |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
156 display "Platform has flash soft DIP switch write-protect" |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
157 flavor bool |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
158 default_value 0 |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
159 description " |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
160 Selecting this option will cause the state of a hardware jumper or |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
161 dipswitch to be read by software to determine whether the flash is |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
162 write-protected or not." |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
163 } |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
164 |
| 1706 | 165 |
| 166 cdl_option CYGSEM_IO_FLASH_LEGACY_API { | |
| 167 display "Provide the legacy user API" | |
| 168 flavor bool | |
| 169 default_value 1 | |
| 170 compile legacy_api.c | |
| 171 description " | |
| 172 Provide an implementation of the lagacy user API. This is mapped | |
| 173 onto the new API via a small layer of code" | |
| 174 } | |
| 175 | |
| 176 cdl_option CYGSEM_IO_FLASH_LEGACY_DEVICE_API { | |
| 177 display "Provide the legacy device API" | |
| 178 flavor bool | |
| 179 default_value CYGHWR_IO_FLASH_DEVICE_LEGACY | |
| 180 compile -library=libextras.a legacy_dev.c | |
| 181 description " | |
| 182 Provide an implementation of the legacy device API. This can be | |
| 183 used to interface to one legacy device." | |
| 184 } | |
| 185 | |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
186 cdl_component CYGPKG_IO_FLASH_BLOCK_DEVICE { |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
187 display "Instantiate in I/O block device API" |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
188 flavor bool |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
189 active_if CYGPKG_IO |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
190 default_value 0 |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
191 compile -library=libextras.a flashiodev.c |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
192 description " |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
193 Provides a block device accessible using the standard I/O |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
194 API ( cyg_io_read() etc. )" |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
195 |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
196 cdl_component CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1 { |
| 1706 | 197 display "Name of flash device 1 block device" |
|
791
a2dfa8bf3c57
Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents:
713
diff
changeset
|
198 flavor data |
|
a2dfa8bf3c57
Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents:
713
diff
changeset
|
199 default_value { "\"/dev/flash1\"" } |
|
a2dfa8bf3c57
Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
gthomas
parents:
713
diff
changeset
|
200 |
| 1706 | 201 cdl_interface CYGINT_IO_FLASH_BLOCK_CFG_1 { |
| 202 requires 1 == CYGINT_IO_FLASH_BLOCK_CFG_1 | |
| 203 no_define | |
| 204 } | |
| 205 | |
| 206 cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_1 { | |
| 207 display "Static configuration via offset" | |
| 208 default_value 1 | |
| 209 implements CYGINT_IO_FLASH_BLOCK_CFG_1 | |
| 210 description " | |
| 211 This configures the flash device 1 block device | |
| 212 with static offset from the base of the first | |
| 213 flash device and length" | |
| 214 | |
| 215 cdl_option CYGNUM_IO_FLASH_BLOCK_OFFSET_1 { | |
| 216 display "Start offset from flash base" | |
| 217 flavor data | |
| 218 default_value 0x100000 | |
| 219 description " | |
| 220 This gives the offset from the base of flash | |
| 221 of the first flash device which this block device | |
| 222 corresponds to." | |
| 223 } | |
| 224 cdl_option CYGNUM_IO_FLASH_BLOCK_LENGTH_1 { | |
| 225 display "Length" | |
| 226 flavor data | |
| 227 default_value 0x100000 | |
| 228 description " | |
| 229 This gives the length of the region of flash given over | |
| 230 to this block device." | |
| 231 } | |
| 232 } | |
| 233 cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_ABSOLUTE_1 { | |
| 234 display "Absolute static configuration" | |
| 235 default_value 0 | |
| 236 implements CYGINT_IO_FLASH_BLOCK_CFG_1 | |
| 237 description " | |
| 238 This configures the flash device 1 block device | |
| 239 with absolute base address and a length" | |
| 240 | |
| 241 cdl_option CYGNUM_IO_FLASH_BLOCK_ABSOLUTE_START_1 { | |
| 242 display "Start offset from flash base" | |
| 243 flavor data | |
| 244 default_value 0x4000000 | |
| 245 description " | |
| 246 This gives the absolute address in flash which this | |
| 247 block device corresponds to." | |
| 248 } | |
| 249 cdl_option CYGNUM_IO_FLASH_BLOCK_ABSOLUTE_LENGTH_1 { | |
| 250 display "Length" | |
| 251 flavor data | |
| 252 default_value 0x100000 | |
| 253 description " | |
| 254 This gives the length of the region of flash given over | |
| 255 to this block device." | |
| 256 } | |
| 257 } | |
| 258 cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_FIS_1 { | |
| 259 display "Configuration from FIS" | |
| 260 default_value 0 | |
| 261 implements CYGINT_IO_FLASH_BLOCK_CFG_1 | |
| 262 description " | |
| 263 This configures the flash device 1 block device | |
| 264 from Redboot FIS" | |
| 265 | |
| 266 cdl_component CYGDAT_IO_FLASH_BLOCK_FIS_NAME_1 { | |
| 267 display "Name of FIS entry" | |
| 268 flavor data | |
| 269 default_value { "\"jffs2\"" } | |
| 270 } | |
| 271 } | |
| 272 } | |
| 273 cdl_component CYGSEM_IO_FLASH_BLOCK_DEVICE_2 { | |
| 274 display "Implements a second block device" | |
| 275 default_value 0 | |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
276 |
| 1706 | 277 cdl_component CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_2 { |
| 278 display "Name of flash device 2 block device" | |
| 279 flavor data | |
| 280 default_value { "\"/dev/flash2\"" } | |
| 281 | |
| 282 cdl_interface CYGINT_IO_FLASH_BLOCK_CFG_2 { | |
| 283 requires 1 == CYGINT_IO_FLASH_BLOCK_CFG_2 | |
| 284 no_define | |
| 285 } | |
| 286 | |
| 287 cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_2 { | |
| 288 display "Static configuration via offset" | |
| 289 default_value 1 | |
| 290 implements CYGINT_IO_FLASH_BLOCK_CFG_2 | |
| 291 description " | |
| 292 This configures the flash device 2 block device | |
| 293 with static offset from the base of the first | |
| 294 flash device and length" | |
| 295 | |
| 296 cdl_option CYGNUM_IO_FLASH_BLOCK_OFFSET_2 { | |
| 297 display "Start offset from flash base" | |
| 298 flavor data | |
| 299 default_value 0x100000 | |
| 300 description " | |
| 301 This gives the offset from the base of flash | |
| 302 of the first flash device which this block device | |
| 303 corresponds to." | |
| 304 } | |
| 305 cdl_option CYGNUM_IO_FLASH_BLOCK_LENGTH_2 { | |
| 306 display "Length" | |
| 307 flavor data | |
| 308 default_value 0x100000 | |
| 309 description " | |
| 310 This gives the length of the region of flash | |
| 311 given over to this block device." | |
| 312 } | |
| 313 } | |
| 314 cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_ABSOLUTE_2 { | |
| 315 display "Absolute static configuration" | |
| 316 default_value 0 | |
| 317 implements CYGINT_IO_FLASH_BLOCK_CFG_2 | |
| 318 description " | |
| 319 This configures the flash device 2 block device | |
| 320 with absolute base address and a length" | |
| 321 | |
| 322 cdl_option CYGNUM_IO_FLASH_BLOCK_ABSOLUTE_START_2 { | |
| 323 display "Start offset from flash base" | |
| 324 flavor data | |
| 325 default_value 0x4000000 | |
| 326 description " | |
| 327 This gives the absolute address in flash which this | |
| 328 block device corresponds to." | |
| 329 } | |
| 330 cdl_option CYGNUM_IO_FLASH_BLOCK_ABSOLUTE_LENGTH_2 { | |
| 331 display "Length" | |
| 332 flavor data | |
| 333 default_value 0x100000 | |
| 334 description " | |
| 335 This gives the length of the region of flash | |
| 336 given over to this block device." | |
| 337 } | |
| 338 } | |
| 339 | |
| 340 cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_FIS_2 { | |
| 341 display "Configuration from FIS" | |
| 342 default_value 0 | |
| 343 implements CYGINT_IO_FLASH_BLOCK_CFG_2 | |
| 344 description " | |
| 345 This configures the flash device 2 block device | |
| 346 from Redboot FIS" | |
| 347 | |
| 348 cdl_component CYGDAT_IO_FLASH_BLOCK_FIS_NAME_2 { | |
| 349 display "Name of FIS entry" | |
| 350 flavor data | |
| 351 default_value { "\"jffs2-2\"" } | |
| 352 } | |
| 353 } | |
| 354 } | |
| 355 } | |
| 356 } | |
|
1742
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
357 } |
