To support 32bit application, we should use fixed-length types in ioctl
parameters, specifically avoid using the type long and unsigned long.
remove some unused ioctl cmd.
clear some building warning.
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reviewed-by: TaoJiang <tao.jiang_2@nxp.com>
1.use semaphore instead of global variable
2.add up operation after wait irq timeout
Reviewed-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: TaoJiang <tao.jiang_2@nxp.com>
the decoding is finished only when the frame done bit is set
only check the frame done interrupt on 8mp,
as 8mq support some legacy format,
as for the legacy format, the frame done interrupt may be missed
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Due to currently blk-ctrl driver implement for imx8mm only, but imx8mp
and imx8mp share g1/g2 vpu driver, hence, need parse power-domains
node to decide handle blk-ctrl or not.
Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
Reviewed-by: Zhou Peng <eagle.zhou@nxp.com>
Support disable g1/g2 individually in dts.
There is no binding of core index, dynamically set it according probe
sequence.
Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
Reviewed-by: Zhou Peng <eagle.zhou@nxp.com>
HW enable and disable are shared with the same function, driver need to
check the parameter to identify whether HW is enabled or not
Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
(cherry picked from commit 742c7adea8)
When suspend happen between enable-HW and wait-HW-ready, user can't
fetch correct HW registers value after resume due to power off in suspend.
So drvier should explicitly restore and restore HW registers during
suspend/resume.
Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
(cherry picked from commit 1f9442d519)
replace ioremap_nocache with ioremap
ioremap has provided non-cached semantics by default since the Linux 2.6
Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>