forked from Minki/linux
d1cbfd771c
In order to break the hard dependency between the PTP clock subsystem and ethernet drivers capable of being clock providers, this patch provides simple PTP stub functions to allow linkage of those drivers into the kernel even when the PTP subsystem is configured out. Drivers must be ready to accept NULL from ptp_clock_register() in that case. And to make it possible for PTP to be configured out, the select statement in those driver's Kconfig menu entries is converted to the new "imply" statement. This way the PTP subsystem may have Kconfig dependencies of its own, such as POSIX_TIMERS, without having to make those ethernet drivers unavailable if POSIX timers are cconfigured out. And when support for POSIX timers is selected again then the default config option for PTP clock support will automatically be adjusted accordingly. The pch_gbe driver is a bit special as it relies on extra code in drivers/ptp/ptp_pch.c. Therefore we let the make process descend into drivers/ptp/ even if PTP_1588_CLOCK is unselected. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Richard Cochran <richardcochran@gmail.com> Acked-by: Edward Cree <ecree@solarflare.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: John Stultz <john.stultz@linaro.org> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Cc: Paul Bolle <pebolle@tiscali.nl> Cc: linux-kbuild@vger.kernel.org Cc: netdev@vger.kernel.org Cc: Michal Marek <mmarek@suse.com> Link: http://lkml.kernel.org/r/1478841010-28605-4-git-send-email-nicolas.pitre@linaro.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
67 lines
1.9 KiB
Plaintext
67 lines
1.9 KiB
Plaintext
#
|
|
# Blackfin device configuration
|
|
#
|
|
|
|
config NET_BFIN
|
|
bool "Blackfin devices"
|
|
depends on BF516 || BF518 || BF526 || BF527 || BF536 || BF537
|
|
---help---
|
|
If you have a network (Ethernet) card belonging to this class, say Y.
|
|
|
|
If unsure, say Y.
|
|
|
|
Note that the answer to this question doesn't directly affect the
|
|
kernel: saying N will just cause the configurator to skip all
|
|
the remaining Blackfin card questions. If you say Y, you will be
|
|
asked for your specific card in the following questions.
|
|
|
|
if NET_BFIN
|
|
|
|
config BFIN_MAC
|
|
tristate "Blackfin on-chip MAC support"
|
|
depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537)
|
|
select CRC32
|
|
select MII
|
|
select PHYLIB
|
|
select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE
|
|
---help---
|
|
This is the driver for Blackfin on-chip mac device. Say Y if you want
|
|
it compiled into the kernel. This driver is also available as a
|
|
module ( = code which can be inserted in and removed from the running
|
|
kernel whenever you want). The module will be called bfin_mac.
|
|
|
|
config BFIN_MAC_USE_L1
|
|
bool "Use L1 memory for rx/tx packets"
|
|
depends on BFIN_MAC && (BF527 || BF537)
|
|
default y
|
|
---help---
|
|
To get maximum network performance, you should use L1 memory as rx/tx
|
|
buffers. Say N here if you want to reserve L1 memory for other uses.
|
|
|
|
config BFIN_TX_DESC_NUM
|
|
int "Number of transmit buffer packets"
|
|
depends on BFIN_MAC
|
|
range 6 10 if BFIN_MAC_USE_L1
|
|
range 10 100
|
|
default "10"
|
|
---help---
|
|
Set the number of buffer packets used in driver.
|
|
|
|
config BFIN_RX_DESC_NUM
|
|
int "Number of receive buffer packets"
|
|
depends on BFIN_MAC
|
|
range 20 64
|
|
default "20"
|
|
---help---
|
|
Set the number of buffer packets used in driver.
|
|
|
|
config BFIN_MAC_USE_HWSTAMP
|
|
bool "Use IEEE 1588 hwstamp"
|
|
depends on BFIN_MAC && BF518
|
|
imply PTP_1588_CLOCK
|
|
default y
|
|
---help---
|
|
To support the IEEE 1588 Precision Time Protocol (PTP), select y here
|
|
|
|
endif # NET_BFIN
|