]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/eth/arm/mx31ads/v2_0/cdl/board_eth_drivers.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / eth / arm / mx31ads / v2_0 / cdl / board_eth_drivers.cdl
1 # ====================================================================
2 #
3 #      board_eth_drivers.cdl
4 #
5 # ====================================================================
6 #####ECOSGPLCOPYRIGHTBEGIN####
7 ## -------------------------------------------
8 ## This file is part of eCos, the Embedded Configurable Operating System.
9 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
10 ##
11 ## eCos is free software; you can redistribute it and/or modify it under
12 ## the terms of the GNU General Public License as published by the Free
13 ## Software Foundation; either version 2 or (at your option) any later version.
14 ##
15 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
16 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 ## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
18 ## for more details.
19 ##
20 ## You should have received a copy of the GNU General Public License along
21 ## with eCos; if not, write to the Free Software Foundation, Inc.,
22 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 ##
24 ## As a special exception, if other files instantiate templates or use macros
25 ## or inline functions from this file, or you compile this file and link it
26 ## with other works to produce a work based on this file, this file does not
27 ## by itself cause the resulting work to be covered by the GNU General Public
28 ## License. However the source code for this file must still be made available
29 ## in accordance with section (3) of the GNU General Public License.
30 ##
31 ## This exception does not invalidate any other reasons why a work based on
32 ## this file might be covered by the GNU General Public License.
33 ##
34 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
35 ## at http://sources.redhat.com/ecos/ecos-license/
36 ## -------------------------------------------
37 #####ECOSGPLCOPYRIGHTEND####
38
39 cdl_package CYGPKG_DEVS_ETH_ARM_MX31ADS {
40     display       "Ethernet driver for Freescale MXC Board development board"
41
42     parent        CYGPKG_IO_ETH_DRIVERS
43     active_if     CYGPKG_IO_ETH_DRIVERS
44
45     include_dir   cyg/io
46
47     # FIXME: This really belongs in the CL CS8900A package
48     cdl_interface CYGINT_DEVS_ETH_CL_CS8900A_REQUIRED {
49         display   "Cirrus Logic CS8900A ethernet driver required"
50     }
51
52     define_proc {
53         puts $::cdl_system_header "/***** ethernet driver proc output start *****/"
54         puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_CL_CS8900A_INL <cyg/io/devs_eth_arm_board.inl>"
55         puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_CL_CS8900A_CFG <pkgconf/devs_eth_arm_mx31ads.h>"
56         puts $::cdl_system_header "/*****  ethernet driver proc output end  *****/"
57     }
58
59     cdl_component CYGPKG_DEVS_ETH_ARM_MXCBOARD_ETH0 {
60         display       "MXC Board ethernet port driver"
61         flavor        bool
62         default_value 1
63         description   "
64             This option includes the ethernet device driver for the
65             MXC Board port."
66
67         implements CYGHWR_NET_DRIVER_ETH0
68         implements CYGINT_DEVS_ETH_CL_CS8900A_REQUIRED
69
70         cdl_option CYGDAT_DEVS_ETH_ARM_MXCBOARD_ETH0_NAME {
71             display       "Device name for the ETH0 ethernet driver"
72             flavor        data
73             default_value {"\"eth0\""}
74             description   "
75                 This option sets the name of the ethernet device."
76         }
77
78         cdl_component CYGSEM_DEVS_ETH_ARM_MXCBOARD_ETH0_SET_ESA {
79             display       "Set the ethernet station address"
80             flavor        bool
81             default_value 0
82             description   "Enabling this option will allow the ethernet
83             station address to be forced to the value set by the
84             configuration.  This may be required if the hardware does
85             not include a serial EEPROM for the ESA."
86             
87             cdl_option CYGDAT_DEVS_ETH_ARM_MXCBOARD_ETH0_ESA {
88                 display       "The ethernet station address"
89                 flavor        data
90                 default_value {"{0x08, 0x88, 0x12, 0x34, 0x56, 0x78}"}
91                 description   "The ethernet station address"
92             }
93         }
94     }
95 }