1f976f6978
In preparation for making the hotplug driver build for different architectures, move mlxcpld-hotplug.c to platform/mellanox and the header to include/linux/platform_data as mlxreg.h to reflect the new interface changes to come. Replace references to CPLD with REG throughout the files, consistent with the new name. Signed-off-by: Vadim Pasternak <vadimp@mellanox.com> Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com> [dvhart: update copyright, rewrite commit message] Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
25 lines
719 B
Text
25 lines
719 B
Text
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Platform support for Mellanox hardware
|
|
#
|
|
|
|
menuconfig MELLANOX_PLATFORM
|
|
bool "Platform support for Mellanox hardware"
|
|
depends on X86 || COMPILE_TEST
|
|
---help---
|
|
Say Y here to get to see options for platform support for
|
|
Mellanox systems. This option alone does not add any kernel code.
|
|
|
|
If you say N, all options in this submenu will be skipped and disabled.
|
|
|
|
if MELLANOX_PLATFORM
|
|
|
|
config MLXREG_HOTPLUG
|
|
tristate "Mellanox platform hotplug driver support"
|
|
depends on HWMON
|
|
depends on I2C
|
|
---help---
|
|
This driver handles hot-plug events for the power suppliers, power
|
|
cables and fans on the wide range Mellanox IB and Ethernet systems.
|
|
|
|
endif # MELLANOX_PLATFORM
|