OSDN Git Service

platform/x86: mlx-platform: Add mlxreg-io platform driver activation
authorVadim Pasternak <vadimp@mellanox.com>
Sun, 17 Jun 2018 16:56:54 +0000 (16:56 +0000)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 19 Jun 2018 23:57:21 +0000 (16:57 -0700)
commit8871f5e4234112f02b8afe1000c18f49827c8d01
tree29b94dcde8cf093580a6477181bfc14375d3c784
parent5ec4a8ace06cc0dc1af190dfa53d175029714d66
platform/x86: mlx-platform: Add mlxreg-io platform driver activation

Add mlxreg-io platform driver activation. Access driver uses the same
regmap infrastructure as others Mellanox platform drivers.
Specific registers description for default platform data configuration are
added to mlx-platform. There are the registers for resets control, reset
causes monitoring, programmable devices version reading and mux select
control. This platform data is passed to mlxreg-io driver. Also some
default values for the register are set at initialization time through
the regmap infrastructure, which are necessary for moving write protection
from the general purpose registers, which are used by mlxreg-io for
write access.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
v4-v5:
 Changes added by Vadim:
 - Add two new attributes for ASIC health and main power domain shutdown.
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/mlx-platform.c