watchdog: imx_sc: Add pretimeout support
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 27 May 2019 07:03:17 +0000 (15:03 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 8 Jul 2019 17:55:37 +0000 (19:55 +0200)
commit15f7d7fc5542f6cb429a069dd77b57ddccbe11e3
tree740d3db7dc54ca4a53d5b6a896b460af3630637e
parentb836005b4f95cccdc1f53849a31cac2dc375f4b7
watchdog: imx_sc: Add pretimeout support

i.MX system controller watchdog can support pretimeout IRQ
via general SCU MU IRQ, it depends on IMX_SCU and driver MUST
be probed after SCU IPC ready, then enable corresponding SCU
IRQ group and register SCU IRQ notifier, when watchdog pretimeout
IRQ fires, SCU MU IRQ will be handled and watchdog pretimeout
notifier will be called to handle the event.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/Kconfig
drivers/watchdog/imx_sc_wdt.c