1 # ====================================================================
3 # phycore229x_eth_drivers.cdl
5 # Ethernet drivers - platform support for phyCORE-LPC229x
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
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.
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
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.
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.
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####
41 # Author(s): Uwe Kindler
45 #####DESCRIPTIONEND####
47 # ====================================================================
49 cdl_package CYGPKG_DEVS_ETH_ARM_PHYCORE229X {
50 display "LAN ethernet driver for phyCORE-LPC229x"
52 parent CYGPKG_IO_ETH_DRIVERS
53 active_if CYGPKG_IO_ETH_DRIVERS
54 active_if CYGPKG_HAL_ARM_LPC2XXX_PHYCORE229X
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
63 requires CYGPKG_DEVS_ETH_SMSC_LAN91CXX
64 requires CYGNUM_DEVS_ETH_SMSC_LAN91CXX_INT_PRIO == CYGHWR_HAL_ARM_PHYCORE229X_ETH_INT_PRIO
66 description "This option includes the ethernet device driver for the
67 phyCORE-LPC229x board."
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 *****/"
76 # Arguably this should do in the generic package
77 # but then there is a logic loop so you can never enable it.
79 cdl_interface CYGINT_DEVS_ETH_SMSC_LAN91CXX_REQUIRED {
80 display "SMSC LAN91CXX driver required"
83 cdl_option CYGDAT_DEVS_ETH_ARM_PHYCORE229X_NAME {
84 display "Device name for the ETH0 ethernet driver"
86 default_value {"\"eth0\""}
88 This option sets the name of the ethernet device."
91 cdl_component CYGSEM_DEVS_ETH_ARM_PHYCORE229X_SET_ESA {
92 display "Set the ethernet station address"
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
105 cdl_option CYGDAT_DEVS_ETH_ARM_PHYCORE229X_ESA {
106 display "The ethernet station address (MAC)"
108 default_value {"{0x12, 0x13, 0x14, 0x15, 0x16, 0x17}"}
110 A static ethernet station address. Caution: Booting two systems
111 with the same MAC on the same network, will cause severe conflicts."
116 # EOF phycore229x_eth_drivers.cdl