1 #==========================================================================
5 # Ethernet drivers for Samsung KS32C5000/S3C4510
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) 2002 Jonathan Larmour
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.
37 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
38 ## at http://sources.redhat.com/ecos/ecos-license/
39 ## -------------------------------------------
40 #####ECOSGPLCOPYRIGHTEND####
41 #==========================================================================
42 ######DESCRIPTIONBEGIN####
45 # Contributors: gthomas, jskov
46 # Grant Edwards <grante@visi.com>
51 #####DESCRIPTIONEND####
53 #========================================================================*/
56 cdl_package CYGPKG_DEVS_ETH_ARM_KS32C5000 {
57 display "Samsung KS32C5000/S3C4510 ethernet driver"
58 parent CYGPKG_IO_ETH_DRIVERS
59 active_if CYGPKG_IO_ETH_DRIVERS
60 implements CYGHWR_NET_DRIVERS
61 implements CYGHWR_NET_DRIVER_ETH0
62 requires (CYGPKG_CRC || (!(CYG_HAL_CPUTYPE == \"KS32C5000A\" )))
63 requires (CYGINT_DEVS_ETH_ARM_KS32C5000_PHY <= 1)
66 description "Ethernet driver for Samsung KS32C5000"
67 compile -library=libextras.a ks5000_ether.c
71 cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_OPTIONS {
72 display "Samsung ethernet driver build options"
76 cdl_interface CYGINT_DEVS_ETH_ARM_KS32C5000_PHY {
77 display "PHY Station Management support"
80 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_DEBUG_LEVEL {
81 display "KS32C5000 device driver debug output level"
86 This option specifies the level of debug data output by the
87 KS32C5000 device driver. A value of 0 signifies no debug data
88 output; 1 signifies normal debug data output; and 2 signifies
89 maximum debug data output (not suitable when GDB and
90 application are sharing an ethernet port)."
93 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_ICS1890 {
94 display "ICS1890 PHY support"
97 implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
98 compile -library=libextras.a ics1890.c
99 description "This component provides support for the ICS1890 and
103 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT970 {
104 display "LXT970 PHY support"
107 implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
108 compile -library=libextras.a lxt970.c
111 cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972 {
112 display "LXT972 PHY support"
115 implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
116 compile -library=libextras.a lxt972.c
119 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972_LED1 {
122 legal_values {"LINK_SPEED" "TX_ACTIVITY" "RX_ACTIVITY" "COLLISION_STATUS" "LINK_STATUS" "DUPLEX_STATUS"
123 "LINK_ACTIVITY" "LINK_STATUS_RX_STATUS_COMBINED" "LINK_STATUS_LINK_ACTIVITY_COMBINED"
124 "DUPLEX_STATUS_COLLISION_STATUS_COMBINED" "TEST_ON" "TEST_OFF" "TEST_BLINK_FAST"
126 default_value {"LINK_STATUS"}
129 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972_LED2 {
132 legal_values {"LINK_SPEED" "TX_ACTIVITY" "RX_ACTIVITY" "COLLISION_STATUS" "LINK_STATUS" "DUPLEX_STATUS"
133 "LINK_ACTIVITY" "LINK_STATUS_RX_STATUS_COMBINED" "LINK_STATUS_LINK_ACTIVITY_COMBINED"
134 "DUPLEX_STATUS_COLLISION_STATUS_COMBINED" "TEST_ON" "TEST_OFF" "TEST_BLINK_FAST"
136 default_value {"LINK_SPEED"}
139 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972_LED3 {
142 legal_values {"LINK_SPEED" "TX_ACTIVITY" "RX_ACTIVITY" "COLLISION_STATUS" "LINK_STATUS" "DUPLEX_STATUS"
143 "LINK_ACTIVITY" "LINK_STATUS_RX_STATUS_COMBINED" "LINK_STATUS_LINK_ACTIVITY_COMBINED"
144 "DUPLEX_STATUS_COLLISION_STATUS_COMBINED" "TEST_ON" "TEST_OFF" "TEST_BLINK_FAST"
146 default_value {"LINK_ACTIVITY"}
150 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_RTL8201 {
151 display "RTL8201 PHY support"
154 implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
155 compile -library=libextras.a rtl8201.c
158 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHYADDR {
159 display "PHY MII address"
163 description "This option specifies the MII address of the PHY"
166 cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_REDBOOT_HOLDS_ESA {
167 display "RedBoot manages ESA initialization data"
171 active_if CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT
172 active_if (CYGPKG_REDBOOT || CYGSEM_HAL_USE_ROM_MONITOR)
174 description "Enabling this option will allow the ethernet
175 station address to be acquired from RedBoot's configuration data,
176 stored in flash memory. It can be overridden individually by the
177 'Set the ethernet station address' option for each interface."
179 cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_REDBOOT_HOLDS_ESA_VARS {
180 display "Export RedBoot command to set ESA in FLASH config"
185 This component contains options which, when enabled, allow
186 RedBoot to support the setting of the ESA in the FLASH
187 configuration. This can then subsequently be accessed by
188 applications using virtual vector calls if those applications
190 CYGPKG_DEVS_ETH_ARM_KS32C5000_REDBOOT_HOLDS_ESA enabled."
192 cdl_option CYGSEM_DEVS_ETH_ARM_KS32C5000_REDBOOT_HOLDS_ESA_ETH0 {
193 display "RedBoot manages ESA for eth0"
196 active_if CYGSEM_REDBOOT_FLASH_CONFIG
197 active_if CYGPKG_REDBOOT_NETWORKING
202 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_MACADDR {
203 display "Ethernet station (MAC) address for eth0"
205 default_value {"0x08, 0x88, 0x12, 0x34, 0x56, 0x78"}
206 description "The default ethernet station address. This is the
207 MAC address used when no value is found in the
208 RedBoot FLASH configuration field."
211 cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_CFLAGS_ADD {
212 display "Additional compiler flags"
215 default_value { "-D_KERNEL -D__ECOS" }
217 This option modifies the set of compiler flags for
218 building the Samsung KS32C5000 ethernet driver package.
219 These flags are used in addition to the set of global flags."
224 # EOF ks32c5000_eth.cdl