diff options
author | Robert Chiras <robert.chiras@nxp.com> | 2017-09-27 13:45:07 +0300 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:29:03 +0800 |
commit | abc53aaea667fa3e6a301d811293fa6bb2a28047 (patch) | |
tree | 9173c77d4389eebda5dd04a27f26b90454aa6001 /include/drm | |
parent | 5b27cffe93ec27f96eb2b556bf0228c96301df0b (diff) |
MLK-16347-3: drm/bridge: Add Northwest Logic DSI transmitter support
Add support for the NorthWest Logit MIPI-DSI controller found in mx8
platforms: i.MX8qm, i.MX8qxp and i.MX8mq.
The NWL MIPI-DSI driver is implemented as a DRM bridge.
The MIPI-DSI encoder will contain the platform specific changes and will
use this bridge.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/bridge/nwl_dsi.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/drm/bridge/nwl_dsi.h b/include/drm/bridge/nwl_dsi.h new file mode 100644 index 000000000000..ae2054157577 --- /dev/null +++ b/include/drm/bridge/nwl_dsi.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2017 NXP + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __NWL_DSI__ +#define __NWL_DSI__ + +#include <drm/drmP.h> +#include <drm/drm_mipi_dsi.h> +#include <linux/phy/phy.h> + +/* RGB bit distribution as specified by the DPI specification */ +enum dpi_pixel_format { + DPI_16_BIT_565_PACKED, + DPI_16_BIT_565_ALIGNED, + DPI_16_BIT_565_SHIFTED, + DPI_18_BIT_PACKED, + DPI_18_BIT_ALIGNED, + DPI_24_BIT +}; + +unsigned long nwl_dsi_get_bit_clock(struct drm_encoder *encoder, + unsigned long pixclock); + +int nwl_dsi_bind(struct device *dev, struct drm_encoder *encoder, + struct phy *phy, struct resource *res, int irq); +void nwl_dsi_unbind(struct drm_bridge *bridge); + +#endif /* __NWL_DSI_H__ */ |