OSDN Git Service

platform/x86: mlx-platform: Add mlxreg-fan platform driver activation
authorVadim Pasternak <vadimp@mellanox.com>
Thu, 26 Jul 2018 22:40:57 +0000 (22:40 +0000)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 2 Aug 2018 00:41:31 +0000 (17:41 -0700)
commit0378123c580091b4c2972a6e4fcb3dcb4686667a
treeb15e143d2c794583944704933db161bce0950ddc
parent5788f77959110480486c441b912da5c2cc5fc4d2
platform/x86: mlx-platform: Add mlxreg-fan platform driver activation

Add mlxreg-fan platform driver activation. FAN driver uses the same regmap
infrastructure as others Mellanox platform drivers. Specific registers
description for default FAN platform data configuration are added to
mlx-platform. There are the registers for tachometers reading, PWM
control and FAN ownership control. The last one has a default value,
which is set at initialization time through the regmap infrastructure,
which is necessary for moving FAN control ownership from hardware to
software.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/mlx-platform.c