]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/devs/flash/arm/mxc/v2_0/cdl/mxc_flash_select.cdl
93666e43055200c7868d4f26d23e0a16a4b9a3e7
[karo-tx-redboot.git] / packages / devs / flash / arm / mxc / v2_0 / cdl / mxc_flash_select.cdl
1 # ====================================================================
2 #####ECOSGPLCOPYRIGHTBEGIN####
3 ## -------------------------------------------
4 ## This file is part of eCos, the Embedded Configurable Operating System.
5 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
6 ##
7 ## eCos is free software; you can redistribute it and/or modify it under
8 ## the terms of the GNU General Public License as published by the Free
9 ## Software Foundation; either version 2 or (at your option) any later version.
10 ##
11 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
12 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 ## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 ## for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License along
17 ## with eCos; if not, write to the Free Software Foundation, Inc.,
18 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19 ##
20 ## As a special exception, if other files instantiate templates or use macros
21 ## or inline functions from this file, or you compile this file and link it
22 ## with other works to produce a work based on this file, this file does not
23 ## by itself cause the resulting work to be covered by the GNU General Public
24 ## License. However the source code for this file must still be made available
25 ## in accordance with section (3) of the GNU General Public License.
26 ##
27 ## This exception does not invalidate any other reasons why a work based on
28 ## this file might be covered by the GNU General Public License.
29 ##
30 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
31 ## at http://sources.redhat.com/ecos/ecos-license/
32 ## -------------------------------------------
33 #####ECOSGPLCOPYRIGHTEND####
34 # ====================================================================
35 ######DESCRIPTIONBEGIN####
36 #
37 # Author(s):      gthomas
38 # Original data:  gthomas
39 # Contributors:
40 # Date:           2000-07-26
41 #
42 #####DESCRIPTIONEND####
43 #
44 # ====================================================================
45
46 cdl_package CYGPKG_DEVS_FLASH_ONMXC {
47     display       "Support FLASH memory on Freescale MXC platforms"
48
49     implements    CYGHWR_IO_FLASH_DEVICE
50     parent        CYGPKG_IO_FLASH
51     active_if     CYGPKG_IO_FLASH
52
53     include_dir   cyg/io
54
55     cdl_option CYGHWR_DEVS_FLASH_MXC_NOR {
56         display       "MXC platform NOR flash memory support"
57         default_value 0
58         description   "
59             When this option is enabled, it indicates NOR flash is 
60             supported on the MXC platforms"
61         define_proc {
62             puts $::cdl_system_header "#define MXCFLASH_SELECT_NOR"
63         }
64     }
65     cdl_option CYGHWR_DEVS_FLASH_MXC_NAND {
66         display       "MXC platform NAND flash memory support"
67         default_value 0
68         requires      { CYGSEM_IO_FLASH_READ_INDIRECT == 1 }
69         description   "
70             When this option is enabled, it indicates NAND flash is 
71             supported on the MXC platforms"
72         define_proc {
73             puts $::cdl_system_header "#define MXCFLASH_SELECT_NAND"
74         }
75         compile       mxc_nfc.c
76     }
77     cdl_component CYGPKG_DEVS_FLASH_NAND_BBT_IN_FLASH {
78         display       "Use a flash based Bad Block Table"
79         flavor        none
80         no_define
81         cdl_option CYGHWR_DEVS_FLASH_MXC_BBT_IN_FLASH {
82             requires      { CYGHWR_DEVS_FLASH_MXC_NAND == 1 }
83             description   "
84                 When this option is enabled, the driver will search for a flash
85                 based bad block table"
86             define_proc {
87                 puts $::cdl_system_header "#define MXCFLASH_FLASH_BASED_BBT"
88             }
89         }
90         cdl_component CYGHWR_FLASH_NAND_BBT_HEADER {
91             display       "header file defining the NAND BBT descriptor"
92             flavor        booldata
93             default_value 0
94             requires      { CYGHWR_DEVS_FLASH_MXC_NAND == 1 }
95             description   "
96                 defines the name of the header file that describes the BBT layout"
97         }
98     }
99     cdl_option CYGHWR_DEVS_FLASH_MXC_MULTI {
100         display       "MXC platform multi flash memory support"
101         default_value 1
102         active_if     {CYGHWR_DEVS_FLASH_MXC_NAND && CYGHWR_DEVS_FLASH_MXC_NOR}
103         description   "
104             When this option is enabled, it indicates multi flashes are 
105             supported on the MXC platforms (like NAND and NOR)"
106         define_proc {
107             puts $::cdl_system_header "#define MXCFLASH_SELECT_MULTI"
108         }
109         compile       mxcflash_wrapper.c
110     }
111     cdl_interface CYGHWR_DEVS_FLASH_MXC_NAND_RESET_WORKAROUND {
112         display       "MXC platform NAND flash reset workaround support"
113         active_if     {CYGHWR_DEVS_FLASH_MXC_NAND}
114         description   "
115             When this option is enabled, it indicates 0xFFFF is used for
116             the NAND reset command instead of 0xFF."
117     }
118 }