linux/drivers/gpu/drm/mcde/mcde_drm.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2018 Linus Walleij <[email protected]>
 * Parts of this file were based on the MCDE driver by Marcus Lorentzon
 * (C) ST-Ericsson SA 2013
 */
#include <drm/drm_simple_kms_helper.h>

#ifndef _MCDE_DRM_H_
#define _MCDE_DRM_H_

/* Shared basic registers */
#define MCDE_CR
#define MCDE_CR_IFIFOEMPTYLINECOUNT_V422_SHIFT
#define MCDE_CR_IFIFOEMPTYLINECOUNT_V422_MASK
#define MCDE_CR_IFIFOCTRLEN
#define MCDE_CR_UFRECOVERY_MODE_V422
#define MCDE_CR_WRAP_MODE_V422_SHIFT
#define MCDE_CR_AUTOCLKG_EN
#define MCDE_CR_MCDEEN

#define MCDE_CONF0
#define MCDE_CONF0_SYNCMUX0
#define MCDE_CONF0_SYNCMUX1
#define MCDE_CONF0_SYNCMUX2
#define MCDE_CONF0_SYNCMUX3
#define MCDE_CONF0_SYNCMUX4
#define MCDE_CONF0_SYNCMUX5
#define MCDE_CONF0_SYNCMUX6
#define MCDE_CONF0_SYNCMUX7
#define MCDE_CONF0_IFIFOCTRLWTRMRKLVL_SHIFT
#define MCDE_CONF0_IFIFOCTRLWTRMRKLVL_MASK
#define MCDE_CONF0_OUTMUX0_SHIFT
#define MCDE_CONF0_OUTMUX0_MASK
#define MCDE_CONF0_OUTMUX1_SHIFT
#define MCDE_CONF0_OUTMUX1_MASK
#define MCDE_CONF0_OUTMUX2_SHIFT
#define MCDE_CONF0_OUTMUX2_MASK
#define MCDE_CONF0_OUTMUX3_SHIFT
#define MCDE_CONF0_OUTMUX3_MASK
#define MCDE_CONF0_OUTMUX4_SHIFT
#define MCDE_CONF0_OUTMUX4_MASK

#define MCDE_SSP
#define MCDE_AIS
#define MCDE_IMSCERR
#define MCDE_RISERR
#define MCDE_MISERR
#define MCDE_SISERR

enum mcde_flow_mode {};

struct mcde {};

#define to_mcde(dev)

static inline bool mcde_flow_is_video(struct mcde *mcde)
{}

bool mcde_dsi_irq(struct mipi_dsi_device *mdsi);
void mcde_dsi_te_request(struct mipi_dsi_device *mdsi);
void mcde_dsi_enable(struct drm_bridge *bridge);
void mcde_dsi_disable(struct drm_bridge *bridge);
extern struct platform_driver mcde_dsi_driver;

void mcde_display_irq(struct mcde *mcde);
void mcde_display_disable_irqs(struct mcde *mcde);
int mcde_display_init(struct drm_device *drm);

int mcde_init_clock_divider(struct mcde *mcde);

#endif /* _MCDE_DRM_H_ */