-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: phytium: Add support for phytium GMAC
This patch provides support for Phytium GMAC controller driver. Signed-off-by: Song Wenting <[email protected]> Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Signed-off-by: Wang Zhimin <[email protected]> Signed-off-by: wangzhimin1179 <[email protected]>
- Loading branch information
1 parent
246bc9b
commit c1073cf
Showing
15 changed files
with
7,859 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
# | ||
# Phytium device configuration | ||
# | ||
|
||
config NET_VENDOR_PHYTIUM | ||
bool "Phytium devices" | ||
depends on HAS_IOMEM | ||
default y | ||
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 | ||
remaining Cadence network card questions. If you say Y, you will be | ||
asked for your specific card in the following questions. | ||
|
||
if NET_VENDOR_PHYTIUM | ||
|
||
config PHYTMAC | ||
tristate "Phytium GMAC support" | ||
depends on HAS_DMA | ||
select PHYLINK | ||
select CRC32 | ||
help | ||
If you have a network (Ethernet) controller of this type, say Y | ||
or M here. | ||
|
||
To compile this driver as a module, choose M here: the module | ||
will be phytmac. | ||
|
||
config PHYTMAC_ENABLE_PTP | ||
bool "Enable IEEE 1588 hwstamp" | ||
depends on PHYTMAC | ||
depends on PTP_1588_CLOCK | ||
default y | ||
help | ||
Enable IEEE 1588 PTP support for PHYTMAC. | ||
|
||
config PHYTMAC_PLATFORM | ||
tristate "Phytmac Platform support" | ||
depends on PHYTMAC | ||
help | ||
This is Platform driver. | ||
|
||
To compile this driver as a module, choose M here: the module | ||
will be called phytmac_platform. | ||
|
||
config PHYTMAC_PCI | ||
tristate "Phytmac PCI support" | ||
depends on PHYTMAC && PCI | ||
help | ||
This is PCI driver. | ||
|
||
To compile this driver as a module, choose M here: the module | ||
will be called phytmac_pci. | ||
|
||
endif # NET_VENDOR_PHYTIUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
# SPDX-License-Identifier: GPL-2.0 | ||
# | ||
# Makefile for the Phytium network device drivers. | ||
# | ||
# | ||
|
||
obj-$(CONFIG_PHYTMAC) += phytmac.o | ||
|
||
phytmac-objs := phytmac_main.o phytmac_ethtool.o phytmac_v1.o phytmac_v2.o | ||
phytmac-$(CONFIG_PHYTMAC_ENABLE_PTP) += phytmac_ptp.o | ||
|
||
obj-$(CONFIG_PHYTMAC_PLATFORM) += phytmac-platform.o | ||
phytmac-platform-objs := phytmac_platform.o | ||
|
||
obj-$(CONFIG_PHYTMAC_PCI) += phytmac-pci.o | ||
phytmac-pci-objs := phytmac_pci.o |
Oops, something went wrong.