forked from deepin-community/kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ethernet: Add motorcomm yt6801 support
- The Asus XC-LS3A6M motherboard(Loongson 3A6000),CE720Z2,CE720Z... uses a yt6801 controller. - This patch introduces an out of tree module to provide support for this NIC. [^1] - Refactor module tree to make it work with Kconfig. [^2] - Drop unneeded installation script (yt_nic_install.sh). - Drop README. some day,we can write a yt6801.rst in kenenl doc. - enable YT6801 for x86 arm64 and loongarch as module - Refactor according to the kernel code style [^1]: Ref: https://www.motor-comm.com/Public/Uploads/uploadfile/files/20240104/yt6801-linux-driver-1.0.27.zip [^2]: CONFIG_NET_VENDOR_MOTORCOMM =(y)=> CONFIG_YT8601 (tristate). Co-authored-by: Mingcong Bai <[email protected]> Co-authored-by: Xiaotian Wu <[email protected]> Signed-off-by: Yanteng Si <[email protected]>
- Loading branch information
1 parent
a4eda44
commit aed7081
Showing
23 changed files
with
17,311 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
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
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,27 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
# Copyright (c) 2023 Motorcomm, Inc. | ||
|
||
config NET_VENDOR_MOTORCOMM | ||
bool "Motorcomm devices" | ||
default y | ||
depends on PCI | ||
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 Motorcomm cards. If you say Y, you will be asked | ||
for your specific card in the following questions. | ||
|
||
if NET_VENDOR_MOTORCOMM | ||
|
||
config YT6801 | ||
tristate "Motorcomm YT6801 Ethernet support" | ||
depends on PCI | ||
help | ||
If you have a network (Ethernet) controller of this type, say Y here. | ||
|
||
To compile this driver as a module, choose M here. The module | ||
will be called forcedeth. | ||
|
||
endif # NET_VENDOR_MOTORCOMM |
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,4 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
# Copyright (c) 2023 Motorcomm, Inc. | ||
|
||
obj-$(CONFIG_YT6801) += yt6801/ |
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,15 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
# Copyright (c) 2023 Motorcomm, Inc. | ||
|
||
|
||
obj-$(CONFIG_YT6801) += yt6801.o | ||
|
||
yt6801-objs := fuxi-gmac-common.o \ | ||
fuxi-gmac-desc.o \ | ||
fuxi-gmac-ethtool.o \ | ||
fuxi-gmac-hw.o \ | ||
fuxi-gmac-net.o \ | ||
fuxi-gmac-pci.o \ | ||
fuxi-gmac-phy.o \ | ||
fuxi-efuse.o \ | ||
fuxi-gmac-debugfs.o |
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,15 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* Copyright (c) 2021 Motorcomm Corporation. */ | ||
|
||
#ifndef _MP_DBG_H | ||
#define _MP_DBG_H | ||
|
||
/* Message verbosity: lower values indicate higher urgency */ | ||
#define MP_OFF 0 | ||
#define MP_ERROR 1 | ||
#define MP_WARN 2 | ||
#define MP_TRACE 3 | ||
#define MP_INFO 4 | ||
#define MP_LOUD 5 | ||
|
||
#endif /* _MP_DBG_H */ |
Oops, something went wrong.