1 # ====================================================================
5 # eCos MCF52xx I2C configuration data
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 2005, 2006 eCosCentric Limited
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.
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
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.
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####
37 # Author(s): Uwe Kindler
38 # Contributors: Bart Veer
41 #####DESCRIPTIONEND####
42 # ====================================================================
45 cdl_package CYGPKG_DEVS_I2C_MCF52xx {
46 display "I2C driver for coldfire MCF52xx family"
49 active_if CYGPKG_IO_I2C
50 active_if CYGPKG_HAL_M68K_MCF52xx
53 This package provides a generic I2C device driver for the on-chip
54 I2C modules in MCF52xx ColdFire processors."
59 cdl_option CYGHWR_DEVS_I2C_MCF52xx_MULTIPLE_BUSES {
60 display "Target hardware may have multiple MCF52xx I2C buses"
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."
74 cdl_component CYGPKG_DEVS_I2C_MCF52xx_OPTIONS {
75 display "I2C driver build options"
77 active_if { CYGINT_DEVS_I2C_MCF52xx_BUS_DEVICES > 0 }
79 Package specific build options including control over
80 compiler flags used only in building the MCF52xx I2C
83 cdl_option CYGPKG_DEVS_I2C_MCF52xx_CFLAGS_ADD {
84 display "Additional compiler flags"
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."
94 cdl_option CYGPKG_DEVS_I2C_MCF52xx_CFLAGS_REMOVE {
95 display "Suppressed compiler flags"
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."