1 |
1254 |
phoenix |
#==========================================================================
|
2 |
|
|
#
|
3 |
|
|
# ks32c5000_eth.cdl
|
4 |
|
|
#
|
5 |
|
|
# Ethernet drivers for Samsung KS32C5000/S3C4510
|
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) 2002 Jonathan Larmour
|
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 |
|
|
## 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####
|
43 |
|
|
#
|
44 |
|
|
# Author(s): gthomas
|
45 |
|
|
# Contributors: gthomas, jskov
|
46 |
|
|
# Grant Edwards
|
47 |
|
|
# Date: 2001-07-31
|
48 |
|
|
# Purpose:
|
49 |
|
|
# Description:
|
50 |
|
|
#
|
51 |
|
|
#####DESCRIPTIONEND####
|
52 |
|
|
#
|
53 |
|
|
#========================================================================*/
|
54 |
|
|
|
55 |
|
|
|
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)
|
64 |
|
|
|
65 |
|
|
include_dir net
|
66 |
|
|
description "Ethernet driver for Samsung KS32C5000"
|
67 |
|
|
compile -library=libextras.a ks5000_ether.c
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_OPTIONS {
|
72 |
|
|
display "Samsung ethernet driver build options"
|
73 |
|
|
flavor none
|
74 |
|
|
no_define
|
75 |
|
|
|
76 |
|
|
cdl_interface CYGINT_DEVS_ETH_ARM_KS32C5000_PHY {
|
77 |
|
|
display "PHY support"
|
78 |
|
|
}
|
79 |
|
|
|
80 |
|
|
cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_DEBUG_LEVEL {
|
81 |
|
|
display "KS32C5000 device driver debug output level"
|
82 |
|
|
flavor data
|
83 |
|
|
legal_values {0 1 2}
|
84 |
|
|
default_value 1
|
85 |
|
|
description "
|
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)."
|
91 |
|
|
}
|
92 |
|
|
|
93 |
|
|
cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_ICS1890 {
|
94 |
|
|
display "ICS1890 PHY support"
|
95 |
|
|
flavor bool
|
96 |
|
|
default_value 0
|
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
|
100 |
|
|
ICS1893AF PHY"
|
101 |
|
|
}
|
102 |
|
|
|
103 |
|
|
cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT970 {
|
104 |
|
|
display "LXT970 PHY support"
|
105 |
|
|
flavor bool
|
106 |
|
|
default_value 1
|
107 |
|
|
implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
|
108 |
|
|
compile -library=libextras.a lxt970.c
|
109 |
|
|
}
|
110 |
|
|
|
111 |
|
|
cdl_component CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972 {
|
112 |
|
|
display "LXT972 PHY support"
|
113 |
|
|
flavor bool
|
114 |
|
|
default_value 0
|
115 |
|
|
implements CYGINT_DEVS_ETH_ARM_KS32C5000_PHY
|
116 |
|
|
compile -library=libextras.a lxt972.c
|
117 |
|
|
no_define
|
118 |
|
|
|
119 |
|
|
cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972_LED1 {
|
120 |
|
|
display "LED 1 mode"
|
121 |
|
|
flavor data
|
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"
|
125 |
|
|
"TEST_BLINK_SLOW"}
|
126 |
|
|
default_value {"LINK_STATUS"}
|
127 |
|
|
}
|
128 |
|
|
|
129 |
|
|
cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972_LED2 {
|
130 |
|
|
display "LED 2 mode"
|
131 |
|
|
flavor data
|
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"
|
135 |
|
|
"TEST_BLINK_SLOW"}
|
136 |
|
|
default_value {"LINK_SPEED"}
|
137 |
|
|
}
|
138 |
|
|
|
139 |
|
|
cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHY_LXT972_LED3 {
|
140 |
|
|
display "LED 3 mode"
|
141 |
|
|
flavor data
|
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"
|
145 |
|
|
"TEST_BLINK_SLOW"}
|
146 |
|
|
default_value {"LINK_ACTIVITY"}
|
147 |
|
|
}
|
148 |
|
|
}
|
149 |
|
|
|
150 |
|
|
cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_PHYADDR {
|
151 |
|
|
display "PHY MII address"
|
152 |
|
|
flavor data
|
153 |
|
|
legal_values 0 to 31
|
154 |
|
|
default_value 1
|
155 |
|
|
description "This option specifies the MII address of the PHY"
|
156 |
|
|
}
|
157 |
|
|
|
158 |
|
|
cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_MACADDR {
|
159 |
|
|
display "Ethernet address for eth0"
|
160 |
|
|
flavor data
|
161 |
|
|
default_value {"0x08, 0x88, 0x12, 0x34, 0x56, 0x78"}
|
162 |
|
|
}
|
163 |
|
|
|
164 |
|
|
cdl_option CYGPKG_DEVS_ETH_ARM_KS32C5000_CFLAGS_ADD {
|
165 |
|
|
display "Additional compiler flags"
|
166 |
|
|
flavor data
|
167 |
|
|
no_define
|
168 |
|
|
default_value { "-D_KERNEL -D__ECOS" }
|
169 |
|
|
description "
|
170 |
|
|
This option modifies the set of compiler flags for
|
171 |
|
|
building the Samsung KS32C5000 ethernet driver package.
|
172 |
|
|
These flags are used in addition to the set of global flags."
|
173 |
|
|
}
|
174 |
|
|
}
|
175 |
|
|
}
|
176 |
|
|
|
177 |
|
|
# EOF ks32c5000_eth.cdl
|