Mercurial > flash_v2
annotate packages/io/flash/current/cdl/io_flash.cdl @ 1745:49e24a462730
Clean up flash configury
| author | bartv |
|---|---|
| date | Sun, 21 Nov 2004 17:33:48 +0000 |
| parents | a668b95e5f2e |
| children | a221170fac3d |
| 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. |
| 1745 | 11 ## Copyright (C) 2004 eCosCentric Ltd |
| 12 ## Copyright (C) 2004 Andrew Lunn | |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
13 ## Copyright (C) 2003 Gary Thomas |
| 1745 | 14 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
|
210
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
15 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
16 ## 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
|
17 ## 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
|
18 ## 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
|
19 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
20 ## 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
|
21 ## 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
|
22 ## 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
|
23 ## for more details. |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
24 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
25 ## 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
|
26 ## 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
|
27 ## 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
|
28 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
29 ## 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
|
30 ## 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
|
31 ## 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
|
32 ## 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
|
33 ## 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
|
34 ## 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
|
35 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
36 ## 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
|
37 ## 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
|
38 ## |
|
d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
jlarmour
parents:
208
diff
changeset
|
39 ## 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
|
40 ## 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
|
41 ## ------------------------------------------- |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
42 #####ECOSGPLCOPYRIGHTEND#### |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
43 # ==================================================================== |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
44 ######DESCRIPTIONBEGIN#### |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
45 # |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
46 # Author(s): gthomas |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
47 # Original data: gthomas |
| 1745 | 48 # Contributors: woehler, bartv |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
49 # Date: 2000-07-06 |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
50 # |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
51 #####DESCRIPTIONEND#### |
|
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 |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
55 cdl_package CYGPKG_IO_FLASH { |
| 1745 | 56 display "FLASH device drivers" |
| 57 include_dir cyg/io | |
| 58 doc ref/flash.html | |
| 59 description " | |
| 60 This package provides support for the flash devices on the | |
| 61 current platform." | |
| 62 requires CYGPKG_ISOINFRA | |
| 63 requires CYGINT_ISO_STRING_STRFUNCS | |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
64 |
| 1745 | 65 compile flash.c |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
66 |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
diff
changeset
|
67 cdl_interface CYGHWR_IO_FLASH_DEVICE { |
| 1745 | 68 display "Hardware FLASH device drivers" |
| 69 description " | |
| 70 This calculated option gives the number of flash devices | |
| 71 on the current platform." | |
|
154
e2d866e32dac
Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents:
119
diff
changeset
|
72 } |
|
e2d866e32dac
Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents:
119
diff
changeset
|
73 |
|
119
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
74 cdl_interface CYGHWR_IO_FLASH_BLOCK_LOCKING { |
| 1745 | 75 display "Hardware can support block locking" |
| 76 flavor booldata | |
| 77 description " | |
|
119
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
78 This option will be enabled by devices which can support |
| 1745 | 79 locking (write-protection) of individual flash blocks. If |
| 80 none of the devices support locking then the relevant code | |
| 81 in the generic flash package can be eliminated." | |
|
119
77cec8369160
Merge from eCos master repository on 2000-09-01-07:47:03-BST
jlarmour
parents:
115
diff
changeset
|
82 } |
|
172
cd45958b28ff
Merge from eCos master repository on 2001-07-20-10:24:43-BST
jlarmour
parents:
160
diff
changeset
|
83 |
|
1742
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
84 cdl_interface CYGHWR_IO_FLASH_INDIRECT_READS { |
| 1745 | 85 display "Hardware requires indirect reads" |
| 86 flavor booldata | |
|
1742
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
87 description " |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
88 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
|
89 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
|
90 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
|
91 target hardware use indirect reads then the extra code |
| 1745 | 92 can be eliminated." |
|
1742
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
93 } |
|
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
94 |
| 1706 | 95 cdl_interface CYGHWR_IO_FLASH_DEVICE_LEGACY { |
| 1745 | 96 display "Hardware driver uses the legacy interface" |
| 97 flavor booldata | |
| 98 compile -library=libextras.a legacy_dev.c | |
| 99 description " | |
| 100 The generic flash code can work with either a legacy device | |
| 101 driver or with V2 drivers. If a legacy driver is used on the | |
| 102 current platform then this option will be implemented." | |
| 103 requires { CYGHWR_IO_FLASH_DEVICE_LEGACY <= 1 } | |
| 1706 | 104 } |
| 105 | |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
106 cdl_option CYGSEM_IO_FLASH_READ_INDIRECT { |
| 1745 | 107 display "Legacy device driver uses indirect reads." |
| 108 active_if CYGHWR_IO_FLASH_DEVICE_LEGACY | |
| 109 flavor bool | |
| 110 default_value 0 | |
| 111 requires { !CYGSEM_IO_FLASH_VERIFY_PROGRAM } | |
| 112 description " | |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
113 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
|
114 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
|
115 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
|
116 hardware access function." |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
117 } |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
118 |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
119 cdl_option CYGSEM_IO_FLASH_CHATTER { |
| 1745 | 120 display "Display status messages during flash operations" |
| 121 flavor bool | |
| 122 default_value 1 | |
| 123 description " | |
| 124 Selecting this option will cause the flash code to print status | |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
125 messages as various flash operations are undertaken." |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
126 } |
|
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
127 |
|
157
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
128 cdl_option CYGSEM_IO_FLASH_VERIFY_PROGRAM { |
| 1745 | 129 display "Verify data programmed to flash" |
| 130 flavor bool | |
| 131 default_value 1 | |
| 132 active_if { CYGHWR_IO_FLASH_INDIRECT_READS < CYGHWR_IO_FLASH_DEVICE } | |
| 133 description " | |
|
157
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
134 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
|
135 programmed to flash." |
|
b65ec671dd4c
Merge from eCos master repository on 2001-04-06-18:28:36-BST
jlarmour
parents:
154
diff
changeset
|
136 } |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
137 |
|
174
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
138 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
|
139 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
|
140 flavor bool |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
141 default_value 0 |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
142 description " |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
143 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
|
144 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
|
145 write-protected or not." |
|
38892b97b685
Merge from eCos master repository on 2001-07-28-00:17:32-BST
jlarmour
parents:
172
diff
changeset
|
146 } |
|
1223
dbcfe4e0dbd2
New platform - TAMS MOAB - and generic changes to support it
gthomas
parents:
791
diff
changeset
|
147 |
| 1706 | 148 cdl_option CYGSEM_IO_FLASH_LEGACY_API { |
| 149 display "Provide the legacy user API" | |
| 150 flavor bool | |
| 151 default_value 1 | |
| 152 compile legacy_api.c | |
| 153 description " | |
| 154 Provide an implementation of the lagacy user API. This is mapped | |
| 155 onto the new API via a small layer of code" | |
| 156 } | |
| 157 | |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
158 cdl_component CYGPKG_IO_FLASH_BLOCK_DEVICE { |
| 1745 | 159 display "Provide /dev block devices" |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
160 flavor bool |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
161 active_if CYGPKG_IO |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
162 default_value 0 |
|
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
163 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
|
164 description " |
| 1745 | 165 Provide one or more block devices below /dev which can be |
| 166 accessed using standard I/O functions such as eCos cyg_io_read() | |
| 167 and POSIX open()." | |
| 168 | |
| 169 for { set ::dev 1 } { $::dev <= 2 } { incr ::dev } { | |
| 170 | |
| 171 cdl_component CYGPKG_IO_FLASH_BLOCK_DEVICE_$::dev { | |
| 172 display "Provide block device $::dev" | |
| 173 if { 1 == $::dev } { | |
| 174 default_value 1 | |
| 175 } else { | |
| 176 default_value 0 | |
| 177 } | |
| 178 description "Provide block device $::dev for use with standard I/O" | |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
191
diff
changeset
|
179 |
| 1745 | 180 cdl_option CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_$::dev { |
| 181 display "Name of flash block device $::dev" | |
| 182 flavor data | |
| 183 default_value "\"\\\"/dev/flash$::dev\\\"\"" | |
| 184 description " | |
| 185 This option determines the name by which the block | |
| 186 device can be accessed." | |
| 187 } | |
| 188 | |
| 189 cdl_interface CYGINT_IO_FLASH_BLOCK_CFG_$::dev { | |
| 190 requires 1 == CYGINT_IO_FLASH_BLOCK_CFG_$::dev | |
| 191 no_define | |
| 192 } | |
| 1706 | 193 |
| 1745 | 194 cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_$::dev { |
| 195 display "Static configuration via offset" | |
| 196 default_value 1 | |
| 197 implements CYGINT_IO_FLASH_BLOCK_CFG_$::dev | |
| 198 description " | |
| 199 This configures the flash block device $::dev | |
| 1706 | 200 with static offset from the base of the first |
| 201 flash device and length" | |
| 1745 | 202 |
| 203 cdl_option CYGNUM_IO_FLASH_BLOCK_OFFSET_$::dev { | |
| 204 display "Start offset from flash base" | |
| 205 flavor data | |
| 206 default_value 0xFFFFFFFF | |
| 207 requires 0xFFFFFFFF != CYGNUM_IO_FLASH_BLOCK_OFFSET_$::dev | |
| 208 description " | |
| 1706 | 209 This gives the offset from the base of flash |
| 210 of the first flash device which this block device | |
| 211 corresponds to." | |
| 1745 | 212 } |
| 213 cdl_option CYGNUM_IO_FLASH_BLOCK_LENGTH_$::dev { | |
| 214 display "Length" | |
| 215 flavor data | |
| 216 default_value 0 | |
| 217 requires 0 != CYGNUM_IO_FLASH_BLOCK_OFFSET_$::dev | |
| 218 description " | |
| 219 This gives the length of the region of flash given over | |
| 220 to this block device." | |
| 221 } | |
| 222 } | |
| 223 | |
| 224 cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_ABSOLUTE_$::dev { | |
| 225 display "Static configuration via absolute address" | |
| 226 default_value 0 | |
| 227 implements CYGINT_IO_FLASH_BLOCK_CFG_$::dev | |
| 228 description " | |
| 229 This configures the flash block device $::dev | |
| 230 with absolute base address and a length" | |
| 231 | |
| 232 cdl_option CYGNUM_IO_FLASH_BLOCK_ABSOLUTE_START_$::dev { | |
| 233 display "Start offset from flash base" | |
| 234 flavor data | |
| 235 default_value 0xFFFFFFFF | |
| 236 requires 0xFFFFFFFF != CYGNUM_IO_FLASH_BLOCK_ABSOLUTE_START_$::dev | |
| 237 description " | |
| 238 This gives the absolute address in flash which this | |
| 239 block device corresponds to." | |
| 240 } | |
| 241 cdl_option CYGNUM_IO_FLASH_BLOCK_ABSOLUTE_LENGTH_$::dev { | |
| 242 display "Length" | |
| 243 flavor data | |
| 244 default_value 0 | |
| 245 requires 0 != CYGNUM_IO_FLASH_BLOCK_ABSOLUTE_LENGTH_$::dev | |
| 246 description " | |
| 1706 | 247 This gives the length of the region of flash given over |
| 248 to this block device." | |
| 1745 | 249 } |
| 250 } | |
| 251 | |
| 252 cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_FIS_$::dev { | |
| 253 display "Configuration from FIS" | |
| 254 default_value 0 | |
| 255 implements CYGINT_IO_FLASH_BLOCK_CFG_$::dev | |
| 256 description " | |
| 257 This configures the flash block device $::dev | |
| 258 from Redboot FIS" | |
| 259 | |
| 260 cdl_component CYGDAT_IO_FLASH_BLOCK_FIS_NAME_$::dev { | |
| 261 display "Name of FIS entry" | |
| 262 flavor data | |
| 263 requires "\"\"" != CYGDAT_IO_FLASH_BLOCK_FIS_NAME_$::dev | |
| 264 if { 1 == $::dev } { | |
| 265 default_value { "\"jffs2\"" } | |
| 266 } elseif { 2 == $::dev } { | |
| 267 default_value { "\"jffs2-2\"" } | |
| 268 } else { | |
| 269 default_value { "\"\"" } | |
| 270 } | |
| 271 } | |
| 272 } | |
| 1706 | 273 } |
| 1745 | 274 } |
| 275 } | |
| 1706 | 276 |
| 1745 | 277 # FIXME: remove in next release |
| 278 cdl_interface CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM { | |
| 279 display "Hardware FLASH device drivers are not in RAM" | |
| 280 flavor booldata | |
| 281 description " | |
| 282 Use of this interface is deprecated. | |
| 283 Drivers should make sure that the functions are | |
| 284 linked to RAM by putting them in .2ram sections." | |
| 285 requires !CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM | |
| 286 } | |
|
1742
a668b95e5f2e
Only include the support for indirect flash reads if there are devices
bartv
parents:
1706
diff
changeset
|
287 } |
