Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f976f69 authored by Vadim Pasternak's avatar Vadim Pasternak Committed by Darren Hart (VMware)
Browse files

platform/x86: Move Mellanox platform hotplug driver to platform/mellanox



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: default avatarVadim Pasternak <vadimp@mellanox.com>
Acked-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
[dvhart: update copyright, rewrite commit message]
Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
parent d6fa7588
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -8860,12 +8860,13 @@ W: http://www.mellanox.com
Q:	http://patchwork.ozlabs.org/project/netdev/list/
F:	drivers/net/ethernet/mellanox/mlxfw/

MELLANOX MLX CPLD HOTPLUG DRIVER
MELLANOX HARDWARE PLATFORM SUPPORT
M:	Andy Shevchenko <andy@infradead.org>
M:	Darren Hart <dvhart@infradead.org>
M:	Vadim Pasternak <vadimp@mellanox.com>
L:	platform-driver-x86@vger.kernel.org
S:	Supported
F:	drivers/platform/x86/mlxcpld-hotplug.c
F:	include/linux/platform_data/mlxcpld-hotplug.h
F:	drivers/platform/mellanox/

MELLANOX MLX4 core VPI driver
M:	Tariq Toukan <tariqt@mellanox.com>
+2 −0
Original line number Diff line number Diff line
@@ -8,3 +8,5 @@ endif
source "drivers/platform/goldfish/Kconfig"

source "drivers/platform/chrome/Kconfig"

source "drivers/platform/mellanox/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
#

obj-$(CONFIG_X86)		+= x86/
obj-$(CONFIG_MELLANOX_PLATFORM)	+= mellanox/
obj-$(CONFIG_MIPS)		+= mips/
obj-$(CONFIG_OLPC)		+= olpc/
obj-$(CONFIG_GOLDFISH)		+= goldfish/
+25 −0
Original line number Diff line number Diff line
# 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
+6 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for linux/drivers/platform/mellanox
# Mellanox Platform-Specific Drivers
#
obj-$(CONFIG_MLXREG_HOTPLUG)	+= mlxreg-hotplug.o
Loading