1
0
Fork 0

MLK-23578-1: media: m2m: enable ISI m2m feature for i.MX865

Enable ISI m2m feature for i.MX865. For i.MX8QXP and QM, ISI
use port 5 as image source port from memory, but for i.MX865,
it change to port 2, so add this info as platform data and
configure image source port selection according to the data.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Guoniu.zhou 2020-03-16 17:32:51 +08:00
parent 2304d8ebe9
commit 3fb05200e0
2 changed files with 3 additions and 1 deletions

View File

@ -321,6 +321,8 @@ static void mxc_imx8mn_clk_disable(struct mxc_isi_dev *mxc_isi)
static struct mxc_isi_chan_src mxc_imx8mn_chan_src = {
.src_mipi0 = 0,
.src_mipi1 = 1,
/* For i.MX8MP */
.src_mem = 2,
};
static struct mxc_isi_dev_ops mxc_imx8mn_clk_ops = {

View File

@ -641,7 +641,7 @@ void mxc_isi_channel_enable(struct mxc_isi_dev *mxc_isi, bool m2m_enabled)
if (m2m_enabled) {
val &= ~(CHNL_CTRL_SRC_TYPE_MASK | CHNL_CTRL_SRC_INPUT_MASK);
val |= (CHNL_CTRL_SRC_INPUT_MEMORY << CHNL_CTRL_SRC_INPUT_OFFSET |
val |= (mxc_isi->pdata->chan_src->src_mem << CHNL_CTRL_SRC_INPUT_OFFSET |
CHNL_CTRL_SRC_TYPE_MEMORY << CHNL_CTRL_SRC_TYPE_OFFSET);
}