]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/devs/eth/arm/phycore229x/v2_0/cdl/phycore229x_eth_drivers.cdl
Initial revision
[karo-tx-redboot.git] / packages / devs / eth / arm / phycore229x / v2_0 / cdl / phycore229x_eth_drivers.cdl
1 # ====================================================================
2 #
3 #      phycore229x_eth_drivers.cdl
4 #
5 #      Ethernet drivers - platform support for phyCORE-LPC229x
6 #
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 ## This file is part of eCos, the Embedded Configurable Operating System.
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12 ## Copyright (C) 2008 eCosCentric Limited 
13 ##
14 ## eCos is free software; you can redistribute it and/or modify it under
15 ## the terms of the GNU General Public License as published by the Free
16 ## Software Foundation; either version 2 or (at your option) any later version.
17 ##
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 ## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21 ## for more details.
22 ##
23 ## You should have received a copy of the GNU General Public License along
24 ## with eCos; if not, write to the Free Software Foundation, Inc.,
25 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26 ##
27 ## As a special exception, if other files instantiate templates or use macros
28 ## or inline functions from this file, or you compile this file and link it
29 ## with other works to produce a work based on this file, this file does not
30 ## by itself cause the resulting work to be covered by the GNU General Public
31 ## License. However the source code for this file must still be made available
32 ## in accordance with section (3) of the GNU General Public License.
33 ##
34 ## This exception does not invalidate any other reasons why a work based on
35 ## this file might be covered by the GNU General Public License.
36 ## -------------------------------------------
37 #####ECOSGPLCOPYRIGHTEND####
38 # ====================================================================
39 ######DESCRIPTIONBEGIN####
40 #
41 # Author(s):      Uwe Kindler
42 # Contributors:
43 # Date:           2007-11-24
44 #
45 #####DESCRIPTIONEND####
46 #
47 # ====================================================================
48
49 cdl_package CYGPKG_DEVS_ETH_ARM_PHYCORE229X {
50     display       "LAN ethernet driver for phyCORE-LPC229x"
51
52     parent        CYGPKG_IO_ETH_DRIVERS
53     active_if     CYGPKG_IO_ETH_DRIVERS
54     active_if     CYGPKG_HAL_ARM_LPC2XXX_PHYCORE229X
55
56     include_dir   cyg/io
57                 
58     # 32-bit mode, with EEPROM
59     implements    CYGHWR_NET_DRIVERS
60     implements    CYGHWR_NET_DRIVER_ETH0
61     implements    CYGINT_DEVS_ETH_SMSC_LAN91CXX_REQUIRED
62     
63     requires      CYGPKG_DEVS_ETH_SMSC_LAN91CXX
64     requires      CYGNUM_DEVS_ETH_SMSC_LAN91CXX_INT_PRIO == CYGHWR_HAL_ARM_PHYCORE229X_ETH_INT_PRIO
65     
66     description   "This option includes the ethernet device driver for the
67                    phyCORE-LPC229x board."
68         
69     define_proc {
70         puts $::cdl_system_header "/***** ethernet driver proc output start *****/"
71         puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_SMSC_LAN91CXX_INL <cyg/io/devs_eth_phycore229x.inl>"
72         puts $::cdl_system_header "#define CYGDAT_DEVS_ETH_SMSC_LAN91CXX_CFG <pkgconf/devs_eth_arm_phycore229x.h>"
73         puts $::cdl_system_header "/*****  ethernet driver proc output end  *****/"
74     }
75     
76     # Arguably this should do in the generic package
77     # but then there is a logic loop so you can never enable it.
78
79     cdl_interface CYGINT_DEVS_ETH_SMSC_LAN91CXX_REQUIRED {
80         display   "SMSC LAN91CXX driver required"
81     }
82
83     cdl_option CYGDAT_DEVS_ETH_ARM_PHYCORE229X_NAME {
84         display       "Device name for the ETH0 ethernet driver"
85         flavor        data
86         default_value {"\"eth0\""}
87         description   "
88             This option sets the name of the ethernet device."
89     }
90     
91     cdl_component CYGSEM_DEVS_ETH_ARM_PHYCORE229X_SET_ESA {
92             display       "Set the ethernet station address"
93             flavor        bool
94             default_value 0
95             description   "
96                 Enabling this option will allow the ethernet
97                 station address to be forced to the value set by the
98                 configuration.  This may be required if the hardware does
99                 not include a serial EEPROM for the ESA. The phyCORE
100                 board contains an EEPROM so setting the ESA here is not
101                 required. If RedBoot supports FLASH configuration then
102                 the MAC address is configurable and a static MAC address
103                 is not required."
104
105             cdl_option CYGDAT_DEVS_ETH_ARM_PHYCORE229X_ESA {
106                 display       "The ethernet station address (MAC)"
107                 flavor        data
108                 default_value {"{0x12, 0x13, 0x14, 0x15, 0x16, 0x17}"}
109                 description   "
110                     A static ethernet station address. Caution: Booting two systems 
111                     with the same MAC on the same network, will cause severe conflicts."     
112             }
113     }
114 }
115
116 # EOF phycore229x_eth_drivers.cdl