1#
2# HISILICON device configuration
3#
4
5config NET_VENDOR_HISILICON
6	bool "Hisilicon devices"
7	default y
8	depends on OF && HAS_DMA
9	depends on ARM || ARM64 || COMPILE_TEST
10	---help---
11	  If you have a network (Ethernet) card belonging to this class, say Y.
12
13	  Note that the answer to this question doesn't directly affect the
14	  kernel: saying N will just cause the configurator to skip all
15	  the questions about Hisilicon devices. If you say Y, you will be asked
16	  for your specific card in the following questions.
17
18if NET_VENDOR_HISILICON
19
20config HIX5HD2_GMAC
21	tristate "Hisilicon HIX5HD2 Family Network Device Support"
22	select PHYLIB
23	help
24	  This selects the hix5hd2 mac family network device.
25
26config HIP04_ETH
27	tristate "HISILICON P04 Ethernet support"
28	depends on HAS_IOMEM	# For MFD_SYSCON
29	select MARVELL_PHY
30	select MFD_SYSCON
31	select HNS_MDIO
32	---help---
33	  If you wish to compile a kernel for a hardware with hisilicon p04 SoC and
34	  want to use the internal ethernet then you should answer Y to this.
35
36config HNS_MDIO
37	tristate
38	select PHYLIB
39	---help---
40	  This selects the HNS MDIO support. It is needed by HNS_DSAF to access
41	  the PHY
42
43config HNS
44	tristate "Hisilicon Network Subsystem Support (Framework)"
45	---help---
46	  This selects the framework support for Hisilicon Network Subsystem. It
47	  is needed by any driver which provides HNS acceleration engine or make
48	  use of the engine
49
50config HNS_DSAF
51	tristate "Hisilicon HNS DSAF device Support"
52	select HNS
53	select HNS_MDIO
54	---help---
55	  This selects the DSAF (Distributed System Area Frabric) network
56	  acceleration engine support. The engine is used in Hisilicon hip05,
57	  Hi1610 and further ICT SoC
58
59config HNS_ENET
60	tristate "Hisilicon HNS Ethernet Device Support"
61	select PHYLIB
62	select HNS
63	---help---
64	  This selects the general ethernet driver for HNS.  This module make
65	  use of any HNS AE driver, such as HNS_DSAF
66
67endif # NET_VENDOR_HISILICON
68