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.
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.
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
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.
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.
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.
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####
38 # Original data: gthomas
42 #####DESCRIPTIONEND####
44 # ====================================================================
46 cdl_package CYGPKG_DEVS_FLASH_ONMXC {
47 display "Support FLASH memory on Freescale MXC platforms"
49 implements CYGHWR_IO_FLASH_DEVICE
50 parent CYGPKG_IO_FLASH
51 active_if CYGPKG_IO_FLASH
55 cdl_option CYGHWR_DEVS_FLASH_MXC_NOR {
56 display "MXC platform NOR flash memory support"
59 When this option is enabled, it indicates NOR flash is
60 supported on the MXC platforms"
62 puts $::cdl_system_header "#define MXCFLASH_SELECT_NOR"
65 cdl_option CYGHWR_DEVS_FLASH_MXC_NAND {
66 display "MXC platform NAND flash memory support"
68 requires { CYGSEM_IO_FLASH_READ_INDIRECT == 1 }
70 When this option is enabled, it indicates NAND flash is
71 supported on the MXC platforms"
73 puts $::cdl_system_header "#define MXCFLASH_SELECT_NAND"
77 cdl_component CYGPKG_DEVS_FLASH_NAND_BBT_IN_FLASH {
78 display "Use a flash based Bad Block Table"
81 cdl_option CYGHWR_DEVS_FLASH_MXC_BBT_IN_FLASH {
82 requires { CYGHWR_DEVS_FLASH_MXC_NAND == 1 }
84 When this option is enabled, the driver will search for a flash
85 based bad block table"
87 puts $::cdl_system_header "#define MXCFLASH_FLASH_BASED_BBT"
90 cdl_component CYGHWR_FLASH_NAND_BBT_HEADER {
91 display "header file defining the NAND BBT descriptor"
94 requires { CYGHWR_DEVS_FLASH_MXC_NAND == 1 }
96 defines the name of the header file that describes the BBT layout"
99 cdl_option CYGHWR_DEVS_FLASH_MXC_MULTI {
100 display "MXC platform multi flash memory support"
102 active_if {CYGHWR_DEVS_FLASH_MXC_NAND && CYGHWR_DEVS_FLASH_MXC_NOR}
104 When this option is enabled, it indicates multi flashes are
105 supported on the MXC platforms (like NAND and NOR)"
107 puts $::cdl_system_header "#define MXCFLASH_SELECT_MULTI"
109 compile mxcflash_wrapper.c
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}
115 When this option is enabled, it indicates 0xFFFF is used for
116 the NAND reset command instead of 0xFF."