linux/drivers/firmware/imx
Daniel Baluta 23d89aa0c2 firmware: imx-dsp: Export functions to request/free channels
In order to save power, we only need to request a channel
when the communication with the DSP active.

For this we export the following functions:
	- imx_dsp_request_channel, gets a channel with a given index
	- imx_dsp_free_channel, frees a channel with a given index

Notice that we still request channels at probe to support devices
that do not have PM callbacks implemented.

More explanations about why requesting a channel has an effect
on power savings:
 - requesting an mailbox channel will call mailbox's startup
   function.
 - startup function calls pm_runtime_get_sync which increments device
   usage count and will keep the device active. Specifically, mailbox
   clock will be always ON when a mailbox channel is requested.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Paul Olaru <paul.olaru@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
2020-11-16 16:33:48 +08:00
..
imx-dsp.c firmware: imx-dsp: Export functions to request/free channels 2020-11-16 16:33:48 +08:00
imx-scu-irq.c firmware: imx: make sure MU irq can wake up system from suspend mode 2020-06-17 21:46:09 +08:00
imx-scu-soc.c firmware: imx: Move i.MX SCU soc driver into imx firmware folder 2020-07-13 10:02:00 +08:00
imx-scu.c firmware: imx: Move i.MX SCU soc driver into imx firmware folder 2020-07-13 10:02:00 +08:00
Kconfig firmware: imx: fix compile-testing 2020-04-17 09:57:44 +02:00
Makefile firmware: imx: Move i.MX SCU soc driver into imx firmware folder 2020-07-13 10:02:00 +08:00
misc.c firmware: imx: Align imx_sc_msg_req_cpu_start to 4 2020-02-24 15:27:48 +08:00
rm.c firmware: imx: add resource management api 2020-06-23 15:37:56 +08:00
scu-pd.c firmware: imx: scu-pd: Add power domains for imx-jpeg 2020-11-16 16:25:19 +08:00