ASIX AX88796[1] is a versatile ethernet adapter chip, that can be connected to a CPU with a 8/16-bit bus or with an SPI. This driver supports SPI connection. The driver has been ported from the vendor kernel for ARTIK5[2] boards. Several changes were made to adapt it to the current kernel which include: + updated DT configuration, + clock configuration moved to DT, + new timer, ethtool and gpio APIs, + dev_* instead of pr_* and custom printk() wrappers, + removed awkward vendor power managemtn. + introduced ethtool tunable to control SPI compression [1] https://www.asix.com.tw/products.php?op=pItemdetail&PItemID=104;65;86&PLine=65 [2] https://git.tizen.org/cgit/profile/common/platform/kernel/linux-3.10-artik/ The other ax88796 driver is for NE2000 compatible AX88796L chip. These chips are not compatible. Hence, two separate drivers are required. Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
36 lines
888 B
Plaintext
36 lines
888 B
Plaintext
#
|
|
# Asix network device configuration
|
|
#
|
|
|
|
config NET_VENDOR_ASIX
|
|
bool "Asix devices"
|
|
default y
|
|
help
|
|
If you have a network (Ethernet, non-USB, not NE2000 compatible)
|
|
interface based on a chip from ASIX, say Y.
|
|
|
|
if NET_VENDOR_ASIX
|
|
|
|
config SPI_AX88796C
|
|
tristate "Asix AX88796C-SPI support"
|
|
select PHYLIB
|
|
depends on SPI
|
|
depends on GPIOLIB
|
|
help
|
|
Say Y here if you intend to use ASIX AX88796C attached in SPI mode.
|
|
|
|
config SPI_AX88796C_COMPRESSION
|
|
bool "SPI transfer compression"
|
|
default n
|
|
depends on SPI_AX88796C
|
|
help
|
|
Say Y here to enable SPI transfer compression. It saves up
|
|
to 24 dummy cycles during each transfer which may noticeably
|
|
speed up short transfers. This sets the default value that is
|
|
inherited by network interfaces during probe. It can be
|
|
changed at run time via spi-compression ethtool tunable.
|
|
|
|
If unsure say N.
|
|
|
|
endif # NET_VENDOR_ASIX
|