xref: /OK3568_Linux_fs/kernel/drivers/platform/mellanox/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# Platform support for Mellanox hardware
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunmenuconfig MELLANOX_PLATFORM
7*4882a593Smuzhiyun	bool "Platform support for Mellanox hardware"
8*4882a593Smuzhiyun	depends on X86 || ARM || ARM64 || COMPILE_TEST
9*4882a593Smuzhiyun	help
10*4882a593Smuzhiyun	  Say Y here to get to see options for platform support for
11*4882a593Smuzhiyun	  Mellanox systems. This option alone does not add any kernel code.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun	  If you say N, all options in this submenu will be skipped and disabled.
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunif MELLANOX_PLATFORM
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunconfig MLXREG_HOTPLUG
18*4882a593Smuzhiyun	tristate "Mellanox platform hotplug driver support"
19*4882a593Smuzhiyun	depends on REGMAP
20*4882a593Smuzhiyun	depends on HWMON
21*4882a593Smuzhiyun	depends on I2C
22*4882a593Smuzhiyun	help
23*4882a593Smuzhiyun	  This driver handles hot-plug events for the power suppliers, power
24*4882a593Smuzhiyun	  cables and fans on the wide range Mellanox IB and Ethernet systems.
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunconfig MLXREG_IO
27*4882a593Smuzhiyun	tristate "Mellanox platform register access driver support"
28*4882a593Smuzhiyun	depends on REGMAP
29*4882a593Smuzhiyun	depends on HWMON
30*4882a593Smuzhiyun	help
31*4882a593Smuzhiyun	  This driver allows access to Mellanox programmable device register
32*4882a593Smuzhiyun	  space through sysfs interface. The sets of registers for sysfs access
33*4882a593Smuzhiyun	  are defined per system type bases and include the registers related
34*4882a593Smuzhiyun	  to system resets operation, system reset causes monitoring and some
35*4882a593Smuzhiyun	  kinds of mux selection.
36*4882a593Smuzhiyun
37*4882a593Smuzhiyunconfig MLXBF_TMFIFO
38*4882a593Smuzhiyun	tristate "Mellanox BlueField SoC TmFifo platform driver"
39*4882a593Smuzhiyun	depends on ARM64
40*4882a593Smuzhiyun	depends on ACPI
41*4882a593Smuzhiyun	depends on VIRTIO_CONSOLE && VIRTIO_NET
42*4882a593Smuzhiyun	help
43*4882a593Smuzhiyun	  Say y here to enable TmFifo support. The TmFifo driver provides
44*4882a593Smuzhiyun	  platform driver support for the TmFifo which supports console
45*4882a593Smuzhiyun	  and networking based on the virtio framework.
46*4882a593Smuzhiyun
47*4882a593Smuzhiyunconfig MLXBF_BOOTCTL
48*4882a593Smuzhiyun	tristate "Mellanox BlueField Firmware Boot Control driver"
49*4882a593Smuzhiyun	depends on ARM64
50*4882a593Smuzhiyun	depends on ACPI
51*4882a593Smuzhiyun	help
52*4882a593Smuzhiyun	  The Mellanox BlueField firmware implements functionality to
53*4882a593Smuzhiyun	  request swapping the primary and alternate eMMC boot partition,
54*4882a593Smuzhiyun	  and to set up a watchdog that can undo that swap if the system
55*4882a593Smuzhiyun	  does not boot up correctly. This driver provides sysfs access
56*4882a593Smuzhiyun	  to the userspace tools, to be used in conjunction with the eMMC
57*4882a593Smuzhiyun	  device driver to do necessary initial swap of the boot partition.
58*4882a593Smuzhiyun
59*4882a593Smuzhiyunendif # MELLANOX_PLATFORM
60