drm: omapdrm: dpi: Replace OMAP SoC model checks with DSS model
The DPI code only needs to differentiate between major OMAP revisions, which can be obtained from the DSS compatible string. Replace the OMAP SoC model checks to prepare for removal of the OMAP SoC version platform data. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
7a143a4b11
commit
b8dab2bddb
@@ -72,6 +72,14 @@
|
||||
#define FLD_MOD(orig, val, start, end) \
|
||||
(((orig) & ~FLD_MASK(start, end)) | FLD_VAL(val, start, end))
|
||||
|
||||
enum dss_model {
|
||||
DSS_MODEL_OMAP2,
|
||||
DSS_MODEL_OMAP3,
|
||||
DSS_MODEL_OMAP4,
|
||||
DSS_MODEL_OMAP5,
|
||||
DSS_MODEL_DRA7,
|
||||
};
|
||||
|
||||
enum dss_io_pad_mode {
|
||||
DSS_IO_PAD_MODE_RESET,
|
||||
DSS_IO_PAD_MODE_RFBI,
|
||||
@@ -315,11 +323,12 @@ void dsi_irq_handler(void);
|
||||
|
||||
/* DPI */
|
||||
#ifdef CONFIG_OMAP2_DSS_DPI
|
||||
int dpi_init_port(struct platform_device *pdev, struct device_node *port);
|
||||
int dpi_init_port(struct platform_device *pdev, struct device_node *port,
|
||||
enum dss_model dss_model);
|
||||
void dpi_uninit_port(struct device_node *port);
|
||||
#else
|
||||
static inline int dpi_init_port(struct platform_device *pdev,
|
||||
struct device_node *port)
|
||||
struct device_node *port, enum dss_model dss_model)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user