OSDN Git Service

firmware: imx: enable imx scu general irq function
authorAnson Huang <anson.huang@nxp.com>
Tue, 9 Apr 2019 04:59:55 +0000 (04:59 +0000)
committerShawn Guo <shawnguo@kernel.org>
Thu, 11 Apr 2019 07:31:02 +0000 (15:31 +0800)
commit851826c7566e9bb4d03eb050634031ecc802affb
treee1a7fddbc34e3dab2899e98412c70591f20d5397
parent9f735c4e94fcbec66aa282eebb92c4aa3de88c6d
firmware: imx: enable imx scu general irq function

The System Controller Firmware (SCFW) controls RTC, thermal
and WDOG etc., these resources' interrupt function are managed
by SCU. When any IRQ pending, SCU will notify Linux via MU general
interrupt channel #3, and Linux kernel needs to call SCU APIs
to get IRQ status and notify each module to handle the interrupt.

Since there is no data transmission for SCU IRQ notification, so
doorbell mode is used for this MU channel, and SCU driver will
use notifier mechanism to broadcast to every module which registers
the SCU block notifier.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/firmware/imx/Makefile
drivers/firmware/imx/imx-scu-irq.c [new file with mode: 0644]
drivers/firmware/imx/imx-scu.c
include/linux/firmware/imx/sci.h