Kconfig (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) Kconfig (bc93e19d088bb14e116756ab270deea6ee62d782)
1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
1#
2#
2# Blackfin device configuration
3# Analog Devices device configuration
3#
4
4#
5
5config NET_BFIN
6 bool "Blackfin devices"
7 depends on BF516 || BF518 || BF526 || BF527 || BF536 || BF537
8 ---help---
6config NET_VENDOR_ADI
7 bool "Analog Devices devices"
8 default y
9 depends on SPI
10 help
9 If you have a network (Ethernet) card belonging to this class, say Y.
10
11 If you have a network (Ethernet) card belonging to this class, say Y.
12
11 If unsure, say Y.
12
13 Note that the answer to this question doesn't directly affect the
14 kernel: saying N will just cause the configurator to skip all
13 Note that the answer to this question doesn't directly affect the
14 kernel: saying N will just cause the configurator to skip all
15 the remaining Blackfin card questions. If you say Y, you will be
16 asked for your specific card in the following questions.
15 the questions about ADI devices. If you say Y, you will be asked
16 for your specific card in the following questions.
17
17
18if NET_BFIN
18if NET_VENDOR_ADI
19
19
20config BFIN_MAC
21 tristate "Blackfin on-chip MAC support"
22 depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537)
23 select CRC32
24 select MII
25 select PHYLIB
26 select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE
27 ---help---
28 This is the driver for Blackfin on-chip mac device. Say Y if you want
29 it compiled into the kernel. This driver is also available as a
30 module ( = code which can be inserted in and removed from the running
31 kernel whenever you want). The module will be called bfin_mac.
20config ADIN1110
21 tristate "Analog Devices ADIN1110 MAC-PHY"
22 depends on SPI && NET_SWITCHDEV
23 select CRC8
24 help
25 Say yes here to build support for Analog Devices ADIN1110
26 Low Power 10BASE-T1L Ethernet MAC-PHY.
32
27
33config BFIN_MAC_USE_L1
34 bool "Use L1 memory for rx/tx packets"
35 depends on BFIN_MAC && (BF527 || BF537)
36 default y
37 ---help---
38 To get maximum network performance, you should use L1 memory as rx/tx
39 buffers. Say N here if you want to reserve L1 memory for other uses.
40
41config BFIN_TX_DESC_NUM
42 int "Number of transmit buffer packets"
43 depends on BFIN_MAC
44 range 6 10 if BFIN_MAC_USE_L1
45 range 10 100
46 default "10"
47 ---help---
48 Set the number of buffer packets used in driver.
49
50config BFIN_RX_DESC_NUM
51 int "Number of receive buffer packets"
52 depends on BFIN_MAC
53 range 20 64
54 default "20"
55 ---help---
56 Set the number of buffer packets used in driver.
57
58config BFIN_MAC_USE_HWSTAMP
59 bool "Use IEEE 1588 hwstamp"
60 depends on BFIN_MAC && BF518
61 imply PTP_1588_CLOCK
62 default y
63 ---help---
64 To support the IEEE 1588 Precision Time Protocol (PTP), select y here
65
66endif # NET_BFIN
28endif # NET_VENDOR_ADI