platform/x86: mlx-platform: Add mlx-wdt platform driver activation
authorVadim Pasternak <vadimp@mellanox.com>
Mon, 18 Mar 2019 10:58:23 +0000 (10:58 +0000)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 May 2019 14:54:42 +0000 (17:54 +0300)
commit9b9f2f5416ef24260c5a5c041ba15b67fd5889b7
tree07cb8342fdb6823cbbeb54e580d016627c0b640e
parent584814af9f8ca07cd38e5c554ddd10e85c4e2053
platform/x86: mlx-platform: Add mlx-wdt platform driver activation

Add mlx-wdt platform driver activation. Watchdog driver uses the same
regmap infrastructure as others Mellanox platform drivers. Specific
registers description for watchdog platform data configuration are
added to mlx-platform. There are the registers for watchdog timer
manipulation, and action setting on watchdog timer expiration.
The watchdog action function could be configured to perform one of the
following: system reset, setting PWM to full speed or counter
increment.
Two types of watchdog devices are supported main and auxiliary.
These devices are co-exist and each of them could be configured to
handle the specific action.

Signed-off-by: Michael Shych <michealsh@mellanox.com>
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/mlx-platform.c