platform/x86: mlx-platform: support new watchdog type with longer timeout
authorMichael Shych <michaelsh@mellanox.com>
Mon, 4 May 2020 14:14:25 +0000 (17:14 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Aug 2020 16:42:44 +0000 (18:42 +0200)
commit7772b993fd96dc8f776356b1d5e18a4df7e68268
tree22ecdc8865cf688ea90c80d6d3d5cd32898560a8
parent923a3a863ae0c26876d704fb3453069e11ebdcb6
platform/x86: mlx-platform: support new watchdog type with longer timeout

Add verification of WD capability in order to distinguish between
the existing WD types and new type, implemented in CPLD.
Add configuration for a new WD type.
Change access mode for watchdog registers.

Signed-off-by: Michael Shych <michaelsh@mellanox.com>
Reviewed-by: Vadim Pasternak <vadimp@mellanox.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200504141427.17685-3-michaelsh@mellanox.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/platform/x86/mlx-platform.c