xref: /openbmc/linux/drivers/net/ethernet/adi/Kconfig (revision 31b90347)
1#
2# Blackfin device configuration
3#
4
5config NET_BFIN
6	bool "Blackfin devices"
7	depends on BF516 || BF518 || BF526 || BF527 || BF536 || BF537
8	---help---
9	  If you have a network (Ethernet) card belonging to this class, say Y.
10	  Make sure you know the name of your card. Read the Ethernet-HOWTO,
11	  available from <http://www.tldp.org/docs.html#howto>.
12
13	  If unsure, say Y.
14
15	  Note that the answer to this question doesn't directly affect the
16	  kernel: saying N will just cause the configurator to skip all
17	  the remaining Blackfin card questions. If you say Y, you will be
18	  asked for your specific card in the following questions.
19
20if NET_BFIN
21
22config BFIN_MAC
23	tristate "Blackfin on-chip MAC support"
24	depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537)
25	select CRC32
26	select MII
27	select PHYLIB
28	select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE
29	---help---
30	  This is the driver for Blackfin on-chip mac device. Say Y if you want
31	  it compiled into the kernel. This driver is also available as a
32	  module ( = code which can be inserted in and removed from the running
33	  kernel whenever you want). The module will be called bfin_mac.
34
35config BFIN_MAC_USE_L1
36	bool "Use L1 memory for rx/tx packets"
37	depends on BFIN_MAC && (BF527 || BF537)
38	default y
39	---help---
40	  To get maximum network performance, you should use L1 memory as rx/tx
41	  buffers. Say N here if you want to reserve L1 memory for other uses.
42
43config BFIN_TX_DESC_NUM
44	int "Number of transmit buffer packets"
45	depends on BFIN_MAC
46	range 6 10 if BFIN_MAC_USE_L1
47	range 10 100
48	default "10"
49	---help---
50	  Set the number of buffer packets used in driver.
51
52config BFIN_RX_DESC_NUM
53	int "Number of receive buffer packets"
54	depends on BFIN_MAC
55	range 20 100 if BFIN_MAC_USE_L1
56	range 20 800
57	default "20"
58	---help---
59	  Set the number of buffer packets used in driver.
60
61config BFIN_MAC_USE_HWSTAMP
62	bool "Use IEEE 1588 hwstamp"
63	depends on BFIN_MAC && BF518
64	select PTP_1588_CLOCK
65	default y
66	---help---
67	  To support the IEEE 1588 Precision Time Protocol (PTP), select y here
68
69endif # NET_BFIN
70