]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/i2c/m68k/mcf52xx/v2_0/cdl/i2c_mcf52xx.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / i2c / m68k / mcf52xx / v2_0 / cdl / i2c_mcf52xx.cdl
1 # ====================================================================
2 #
3 #      i2c_mcf52xx.cdl
4 #
5 #      eCos MCF52xx I2C configuration data
6 #
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 2005, 2006 eCosCentric Limited
12 ##
13 ## eCos is free software; you can redistribute it and/or modify it under
14 ## the terms of the GNU General Public License as published by the Free
15 ## Software Foundation; either version 2 or (at your option) any later version.
16 ##
17 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 ## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20 ## for more details.
21 ##
22 ## You should have received a copy of the GNU General Public License along
23 ## with eCos; if not, write to the Free Software Foundation, Inc.,
24 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25 ##
26 ## As a special exception, if other files instantiate templates or use macros
27 ## or inline functions from this file, or you compile this file and link it
28 ## with other works to produce a work based on this file, this file does not
29 ## by itself cause the resulting work to be covered by the GNU General Public
30 ## License. However the source code for this file must still be made available
31 ## in accordance with section (3) of the GNU General Public License.
32 ## -------------------------------------------
33 #####ECOSGPLCOPYRIGHTEND####
34 # ====================================================================
35 ######DESCRIPTIONBEGIN####
36 #
37 # Author(s):      Uwe Kindler
38 # Contributors:   Bart Veer
39 # Date:           2005-10-23
40 #
41 #####DESCRIPTIONEND####
42 # ====================================================================
43
44
45 cdl_package CYGPKG_DEVS_I2C_MCF52xx {
46     display         "I2C driver for coldfire MCF52xx family"
47
48     parent          CYGPKG_IO_I2C
49     active_if       CYGPKG_IO_I2C
50     active_if       CYGPKG_HAL_M68K_MCF52xx
51
52     description   "
53            This package provides a generic I2C device driver for the on-chip
54            I2C modules in MCF52xx ColdFire processors."
55
56     include_dir     cyg/io
57     compile         i2c_mcf52xx.c
58
59     cdl_option CYGHWR_DEVS_I2C_MCF52xx_MULTIPLE_BUSES {
60         display         "Target hardware may have multiple MCF52xx I2C buses"
61         flavor          bool
62         default_value   0
63         description "
64             The MCF52xx I2C driver can support multiple I2C bus devices, but
65           typically the coldfire processor only provides a single device. By
66           default the driver assumes only a single device is present and will
67           optimize for that case, using constant definitions provided by the
68           platform HAL rather than per-device structure fields. If the hardware
69           has multiple I2C bus devices, or if a singleton bus is instantiated
70           by some other package and hence the platform HAL cannot provide the
71           necessary definitions, then this option should be enabled."
72     }
73     
74     cdl_component CYGPKG_DEVS_I2C_MCF52xx_OPTIONS {
75         display         "I2C driver build options"
76         flavor          none
77         active_if       { CYGINT_DEVS_I2C_MCF52xx_BUS_DEVICES > 0 }
78         description   "
79             Package specific build options including control over
80             compiler flags used only in building the MCF52xx I2C
81             bus driver."
82
83         cdl_option CYGPKG_DEVS_I2C_MCF52xx_CFLAGS_ADD {
84             display "Additional compiler flags"
85             flavor  data
86             no_define
87             default_value { "" }
88             description   "
89                 This option modifies the set of compiler flags for
90                 building the MCF52xx I2C bus driver. These flags are
91                 used in addition to the set of global flags."
92         }
93
94         cdl_option CYGPKG_DEVS_I2C_MCF52xx_CFLAGS_REMOVE {
95             display "Suppressed compiler flags"
96             flavor  data
97             no_define
98             default_value { "" }
99             description   "
100                 This option modifies the set of compiler flags for
101                 building the MCF52xx I2C bus driver. These flags are
102                 removed from the set of global flags if present."
103         }
104     }
105 }