Skip to content

Commit

Permalink
net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver
Browse files Browse the repository at this point in the history
Add new driver for the Ethernet MAC used on the Actions Semi Owl
family of SoCs.

Currently this has been tested only on the Actions Semi S500 SoC
variant.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
  • Loading branch information
cristicc authored and intel-lab-lkp committed Mar 15, 2021
1 parent 2a822cc commit 1c4a01e
Show file tree
Hide file tree
Showing 6 changed files with 2,030 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ config SUNGEM_PHY
tristate

source "drivers/net/ethernet/3com/Kconfig"
source "drivers/net/ethernet/actions/Kconfig"
source "drivers/net/ethernet/adaptec/Kconfig"
source "drivers/net/ethernet/aeroflex/Kconfig"
source "drivers/net/ethernet/agere/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

obj-$(CONFIG_NET_VENDOR_3COM) += 3com/
obj-$(CONFIG_NET_VENDOR_8390) += 8390/
obj-$(CONFIG_NET_VENDOR_ACTIONS) += actions/
obj-$(CONFIG_NET_VENDOR_ADAPTEC) += adaptec/
obj-$(CONFIG_GRETH) += aeroflex/
obj-$(CONFIG_NET_VENDOR_AGERE) += agere/
Expand Down
39 changes: 39 additions & 0 deletions drivers/net/ethernet/actions/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-License-Identifier: GPL-2.0-only

config NET_VENDOR_ACTIONS
bool "Actions Semi devices"
default y
depends on ARCH_ACTIONS
help
If you have a network (Ethernet) card belonging to this class, 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
questions about Actions Semi devices. If you say Y, you will be
asked for your specific card in the following questions.

if NET_VENDOR_ACTIONS

config OWL_EMAC
tristate "Actions Semi Owl Ethernet MAC support"
select PHYLIB
help
This driver supports the Actions Semi Ethernet Media Access
Controller (EMAC) found on the S500 and S900 SoCs. The controller
is compliant with the IEEE 802.3 CSMA/CD standard and supports
both half-duplex and full-duplex operation modes at 10/100 Mb/s.

config OWL_EMAC_GEN_ADDR_SYS_SN
bool "Enable generating MAC address based on system serial"
depends on OWL_EMAC
select CRYPTO
select CRYPTO_DES
select CRYPTO_ECB
select CRYPTO_SKCIPHER
default n
help
If you say Y here and no MAC address is available, the Actions Semi
Owl EMAC driver will generate the address based on the system serial
number. The fallback is to use a randomly generated MAC address.

endif # NET_VENDOR_ACTIONS
6 changes: 6 additions & 0 deletions drivers/net/ethernet/actions/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Makefile for the Actions Semi Owl SoCs built-in ethernet macs
#

obj-$(CONFIG_OWL_EMAC) += owl-emac.o
Loading

0 comments on commit 1c4a01e

Please sign in to comment.