linux/drivers/media/platform/nxp/imx8-isi/imx8-isi-gasket.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright 2019-2023 NXP
 */

#include <linux/regmap.h>

#include <media/mipi-csi2.h>

#include "imx8-isi-core.h"

/* -----------------------------------------------------------------------------
 * i.MX8MN and i.MX8MP gasket
 */

#define GASKET_BASE(n)

#define GASKET_CTRL
#define GASKET_CTRL_DATA_TYPE(dt)
#define GASKET_CTRL_DATA_TYPE_MASK
#define GASKET_CTRL_DUAL_COMP_ENABLE
#define GASKET_CTRL_ENABLE

#define GASKET_HSIZE
#define GASKET_VSIZE

static void mxc_imx8_gasket_enable(struct mxc_isi_dev *isi,
				   const struct v4l2_mbus_frame_desc *fd,
				   const struct v4l2_mbus_framefmt *fmt,
				   const unsigned int port)
{}

static void mxc_imx8_gasket_disable(struct mxc_isi_dev *isi,
				    const unsigned int port)
{}

const struct mxc_gasket_ops mxc_imx8_gasket_ops =;

/* -----------------------------------------------------------------------------
 * i.MX93 gasket
 */

#define DISP_MIX_CAMERA_MUX
#define DISP_MIX_CAMERA_MUX_DATA_TYPE(x)
#define DISP_MIX_CAMERA_MUX_GASKET_ENABLE

static void mxc_imx93_gasket_enable(struct mxc_isi_dev *isi,
				    const struct v4l2_mbus_frame_desc *fd,
				    const struct v4l2_mbus_framefmt *fmt,
				    const unsigned int port)
{}

static void mxc_imx93_gasket_disable(struct mxc_isi_dev *isi,
				     unsigned int port)
{}

const struct mxc_gasket_ops mxc_imx93_gasket_ops =;