xref: /linux/drivers/net/ethernet/hisilicon/Kconfig (revision 60675d4ca1ef0857e44eba5849b74a3a998d0c0f)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
257c5bc9aSZhangfei Gao#
357c5bc9aSZhangfei Gao# HISILICON device configuration
457c5bc9aSZhangfei Gao#
557c5bc9aSZhangfei Gao
657c5bc9aSZhangfei Gaoconfig NET_VENDOR_HISILICON
757c5bc9aSZhangfei Gao	bool "Hisilicon devices"
857c5bc9aSZhangfei Gao	default y
9e020797bSGeert Uytterhoeven	depends on OF || ACPI
10a7f7f624SMasahiro Yamada	help
11138b15edSPaul Gortmaker	  If you have a network (Ethernet) card belonging to this class, say Y.
1257c5bc9aSZhangfei Gao
1357c5bc9aSZhangfei Gao	  Note that the answer to this question doesn't directly affect the
1457c5bc9aSZhangfei Gao	  kernel: saying N will just cause the configurator to skip all
1557c5bc9aSZhangfei Gao	  the questions about Hisilicon devices. If you say Y, you will be asked
1657c5bc9aSZhangfei Gao	  for your specific card in the following questions.
1757c5bc9aSZhangfei Gao
1857c5bc9aSZhangfei Gaoif NET_VENDOR_HISILICON
1957c5bc9aSZhangfei Gao
20*81e176deSJijie Shaoif ARM || ARM64 || COMPILE_TEST
21*81e176deSJijie Shao
2257c5bc9aSZhangfei Gaoconfig HIX5HD2_GMAC
2357c5bc9aSZhangfei Gao	tristate "Hisilicon HIX5HD2 Family Network Device Support"
2457c5bc9aSZhangfei Gao	select PHYLIB
2557c5bc9aSZhangfei Gao	help
2657c5bc9aSZhangfei Gao	  This selects the hix5hd2 mac family network device.
2757c5bc9aSZhangfei Gao
28542ae60aSDongpo Liconfig HISI_FEMAC
29542ae60aSDongpo Li	tristate "Hisilicon Fast Ethernet MAC device support"
30542ae60aSDongpo Li	depends on HAS_IOMEM
31542ae60aSDongpo Li	select PHYLIB
32542ae60aSDongpo Li	select RESET_CONTROLLER
33542ae60aSDongpo Li	help
34542ae60aSDongpo Li	  This selects the Hisilicon Fast Ethernet MAC device(FEMAC).
35542ae60aSDongpo Li	  The FEMAC receives and transmits data over Ethernet
36542ae60aSDongpo Li	  ports at 10/100 Mbps in full-duplex or half-duplex mode.
37542ae60aSDongpo Li	  The FEMAC exchanges data with the CPU, and supports
38542ae60aSDongpo Li	  the energy efficient Ethernet (EEE).
39542ae60aSDongpo Li
404a841ee9SZhangfei Gaoconfig HIP04_ETH
414a841ee9SZhangfei Gao	tristate "HISILICON P04 Ethernet support"
42979d804eSKrzysztof Kozlowski	depends on HAS_IOMEM	# For MFD_SYSCON
434a841ee9SZhangfei Gao	select MARVELL_PHY
444a841ee9SZhangfei Gao	select MFD_SYSCON
455b904d39Shuangdaode	select HNS_MDIO
46a7f7f624SMasahiro Yamada	help
474a841ee9SZhangfei Gao	  If you wish to compile a kernel for a hardware with hisilicon p04 SoC and
484a841ee9SZhangfei Gao	  want to use the internal ethernet then you should answer Y to this.
494a841ee9SZhangfei Gao
502ede8489SJiangfeng Xiaoconfig HI13X1_GMAC
512ede8489SJiangfeng Xiao	bool "Hisilicon HI13X1 Network Device Support"
522ede8489SJiangfeng Xiao	depends on HIP04_ETH
532ede8489SJiangfeng Xiao	help
542ede8489SJiangfeng Xiao	  If you wish to compile a kernel for a hardware with hisilicon hi13x1_gamc
552ede8489SJiangfeng Xiao	  then you should answer Y to this. This makes this driver suitable for use
562ede8489SJiangfeng Xiao	  on certain boards such as the HI13X1.
572ede8489SJiangfeng Xiao
582ede8489SJiangfeng Xiao	  If you are unsure, say N.
592ede8489SJiangfeng Xiao
605b904d39Shuangdaodeconfig HNS_MDIO
610fa28877SArnd Bergmann	tristate
620fa28877SArnd Bergmann	select PHYLIB
63a7f7f624SMasahiro Yamada	help
645b904d39Shuangdaode	  This selects the HNS MDIO support. It is needed by HNS_DSAF to access
655b904d39Shuangdaode	  the PHY
665b904d39Shuangdaode
676fe6611fShuangdaodeconfig HNS
688aef1994SGeert Uytterhoeven	tristate
69a7f7f624SMasahiro Yamada	help
706fe6611fShuangdaode	  This selects the framework support for Hisilicon Network Subsystem. It
716fe6611fShuangdaode	  is needed by any driver which provides HNS acceleration engine or make
726fe6611fShuangdaode	  use of the engine
736fe6611fShuangdaode
74511e6bc0Shuangdaodeconfig HNS_DSAF
75511e6bc0Shuangdaode	tristate "Hisilicon HNS DSAF device Support"
76511e6bc0Shuangdaode	select HNS
77511e6bc0Shuangdaode	select HNS_MDIO
78a7f7f624SMasahiro Yamada	help
79511e6bc0Shuangdaode	  This selects the DSAF (Distributed System Area Frabric) network
80511e6bc0Shuangdaode	  acceleration engine support. The engine is used in Hisilicon hip05,
81511e6bc0Shuangdaode	  Hi1610 and further ICT SoC
82511e6bc0Shuangdaode
83b5996f11Shuangdaodeconfig HNS_ENET
84b5996f11Shuangdaode	tristate "Hisilicon HNS Ethernet Device Support"
85b5996f11Shuangdaode	select PHYLIB
86b5996f11Shuangdaode	select HNS
87a7f7f624SMasahiro Yamada	help
88b5996f11Shuangdaode	  This selects the general ethernet driver for HNS.  This module make
89b5996f11Shuangdaode	  use of any HNS AE driver, such as HNS_DSAF
90b5996f11Shuangdaode
9115e8e5ffSSalilconfig HNS3
9215e8e5ffSSalil	tristate "Hisilicon Network Subsystem Support HNS3 (Framework)"
9315e8e5ffSSalil	depends on PCI
94b741269bSYufeng Mo	select NET_DEVLINK
9593188e96SYunsheng Lin	select PAGE_POOL
96a7f7f624SMasahiro Yamada	help
9715e8e5ffSSalil	  This selects the framework support for Hisilicon Network Subsystem 3.
9815e8e5ffSSalil	  This layer facilitates clients like ENET, RoCE and user-space ethernet
9915e8e5ffSSalil	  drivers(like ODP)to register with HNAE devices and their associated
10015e8e5ffSSalil	  operations.
10115e8e5ffSSalil
1027a7056e3SHuazhong Tanif HNS3
1037a7056e3SHuazhong Tan
10415e8e5ffSSalilconfig HNS3_HCLGE
10515e8e5ffSSalil	tristate "Hisilicon HNS3 HCLGE Acceleration Engine & Compatibility Layer Support"
1067a7056e3SHuazhong Tan	default m
10715e8e5ffSSalil	depends on PCI_MSI
108e5f31552SArnd Bergmann	depends on PTP_1588_CLOCK_OPTIONAL
109a7f7f624SMasahiro Yamada	help
11015e8e5ffSSalil	  This selects the HNS3_HCLGE network acceleration engine & its hardware
11115e8e5ffSSalil	  compatibility layer. The engine would be used in Hisilicon hip08 family of
11215e8e5ffSSalil	  SoCs and further upcoming SoCs.
11315e8e5ffSSalil
114cacde272SYunsheng Linconfig HNS3_DCB
115cacde272SYunsheng Lin	bool "Hisilicon HNS3 Data Center Bridge Support"
116cacde272SYunsheng Lin	default n
1177a7056e3SHuazhong Tan	depends on HNS3_HCLGE && DCB
118a7f7f624SMasahiro Yamada	help
119cacde272SYunsheng Lin	  Say Y here if you want to use Data Center Bridging (DCB) in the HNS3 driver.
120cacde272SYunsheng Lin
121cacde272SYunsheng Lin	  If unsure, say N.
122cacde272SYunsheng Lin
123e963cb78SSalil Mehtaconfig HNS3_HCLGEVF
124e963cb78SSalil Mehta	tristate "Hisilicon HNS3VF Acceleration Engine & Compatibility Layer Support"
125e963cb78SSalil Mehta	depends on PCI_MSI
126e963cb78SSalil Mehta	depends on HNS3_HCLGE
127a7f7f624SMasahiro Yamada	help
128e963cb78SSalil Mehta	  This selects the HNS3 VF drivers network acceleration engine & its hardware
129e963cb78SSalil Mehta	  compatibility layer. The engine would be used in Hisilicon hip08 family of
130e963cb78SSalil Mehta	  SoCs and further upcoming SoCs.
131e963cb78SSalil Mehta
132e963cb78SSalil Mehtaconfig HNS3_ENET
133e963cb78SSalil Mehta	tristate "Hisilicon HNS3 Ethernet Device Support"
1347a7056e3SHuazhong Tan	default m
135e963cb78SSalil Mehta	depends on 64BIT && PCI
1362aa55dccSArnd Bergmann	depends on INET
137307ea4ceSHuazhong Tan	select DIMLIB
138a7f7f624SMasahiro Yamada	help
139e963cb78SSalil Mehta	  This selects the Ethernet Driver for Hisilicon Network Subsystem 3 for hip08
140e963cb78SSalil Mehta	  family of SoCs. This module depends upon HNAE3 driver to access the HNAE3
141e963cb78SSalil Mehta	  devices and their associated operations.
142e963cb78SSalil Mehta
1437a7056e3SHuazhong Tanendif #HNS3
1447a7056e3SHuazhong Tan
145*81e176deSJijie Shaoendif # ARM || ARM64 || COMPILE_TEST
146*81e176deSJijie Shao
147*81e176deSJijie Shaoconfig HIBMCGE
148*81e176deSJijie Shao	tristate "Hisilicon BMC Gigabit Ethernet Device Support"
149*81e176deSJijie Shao	depends on PCI && PCI_MSI
150*81e176deSJijie Shao	select PHYLIB
151*81e176deSJijie Shao	select MOTORCOMM_PHY
152*81e176deSJijie Shao	select REALTEK_PHY
153*81e176deSJijie Shao	help
154*81e176deSJijie Shao	  If you wish to compile a kernel for a BMC with HIBMC-xx_gmac
155*81e176deSJijie Shao	  then you should answer Y to this. This makes this driver suitable for use
156*81e176deSJijie Shao	  on certain boards such as the HIBMC-210.
157*81e176deSJijie Shao
158*81e176deSJijie Shao	  If you are unsure, say N.
159*81e176deSJijie Shao
16057c5bc9aSZhangfei Gaoendif # NET_VENDOR_HISILICON
161