Commit b067381f authored by Guido Gunther's avatar Guido Gunther

imx-drm: Bring over nwl-dsi from emcrafts tree

as of ba119b65
parent 75186f86
......@@ -37,5 +37,14 @@ config DRM_IMX_HDMI
help
Choose this if you want to use HDMI on i.MX6.
config DRM_IMX_NWL_DSI
tristate "Support for Northwest Logic MIPI DSI displays"
depends on DRM_IMX
select MFD_SYSCON
select DRM_NWL_DSI
help
Choose this to enable the internal NWL MIPI DSI controller
found on i.MX8 processors.
source "drivers/gpu/drm/imx/hdp/Kconfig"
source "drivers/gpu/drm/imx/dcss/Kconfig"
......@@ -7,7 +7,7 @@ obj-$(CONFIG_DRM_IMX) += imxdrm.o
obj-$(CONFIG_DRM_IMX_PARALLEL_DISPLAY) += parallel-display.o
obj-$(CONFIG_DRM_IMX_TVE) += imx-tve.o
obj-$(CONFIG_DRM_IMX_LDB) += imx-ldb.o
obj-$(CONFIG_DRM_IMX_NWL_DSI) += nwl_dsi-imx.o
obj-$(CONFIG_DRM_IMX_IPUV3) += imx-ipuv3-crtc.o
obj-$(CONFIG_DRM_IMX_HDMI) += dw_hdmi-imx.o
obj-$(CONFIG_DRM_IMX_HDP) += hdp/
......
This diff is collapsed.
/*
* 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
};
/*
* Just some helper functions to add/remove a bridge into/from encoder bridge
* chain.
*/
bool nwl_dsi_add_bridge(struct drm_encoder *encoder,
struct drm_bridge *next_bridge);
bool nwl_dsi_del_bridge(struct drm_encoder *encoder,
struct drm_bridge *bridge);
unsigned long nwl_dsi_get_bit_clock(struct drm_bridge *bridge,
unsigned long pixclock);
#endif /* __NWL_DSI_H__ */
/*
* 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 version 2 as
* published by the Free Software Foundation.
*/
#ifndef __LINUX_IMX8MQ_IOMUXC_GPR_H
#define __LINUX_IMX8MQ_IOMUXC_GPR_H
#define IOMUXC_GPR0 0x00
#define IOMUXC_GPR1 0x04
#define IOMUXC_GPR2 0x08
#define IOMUXC_GPR3 0x0c
#define IOMUXC_GPR4 0x10
#define IOMUXC_GPR5 0x14
#define IOMUXC_GPR6 0x18
#define IOMUXC_GPR7 0x1c
#define IOMUXC_GPR8 0x20
#define IOMUXC_GPR9 0x24
#define IOMUXC_GPR10 0x28
#define IOMUXC_GPR11 0x2c
#define IOMUXC_GPR12 0x30
#define IOMUXC_GPR13 0x34
#define IOMUXC_GPR14 0x38
#define IOMUXC_GPR15 0x3c
#define IOMUXC_GPR16 0x40
#define IOMUXC_GPR17 0x44
#define IOMUXC_GPR18 0x48
#define IOMUXC_GPR19 0x4c
#define IOMUXC_GPR20 0x50
#define IOMUXC_GPR21 0x54
#define IOMUXC_GPR22 0x58
#define IOMUXC_GPR23 0x5c
#define IOMUXC_GPR24 0x60
#define IOMUXC_GPR25 0x64
#define IOMUXC_GPR26 0x68
#define IOMUXC_GPR27 0x6c
#define IOMUXC_GPR28 0x70
#define IOMUXC_GPR29 0x74
#define IOMUXC_GPR30 0x78
#define IOMUXC_GPR31 0x7c
#define IOMUXC_GPR32 0x80
#define IOMUXC_GPR33 0x84
#define IOMUXC_GPR34 0x88
#define IOMUXC_GPR35 0x8c
#define IOMUXC_GPR36 0x90
#define IOMUXC_GPR37 0x94
#define IOMUXC_GPR38 0x98
#define IOMUXC_GPR39 0x9c
#define IOMUXC_GPR40 0xa0
#define IOMUXC_GPR41 0xa4
#define IOMUXC_GPR42 0xa8
#define IOMUXC_GPR43 0xac
#define IOMUXC_GPR44 0xb0
#define IOMUXC_GPR45 0xb4
#define IOMUXC_GPR46 0xb8
#define IOMUXC_GPR47 0xbc
#define IMX8MQ_GPR13_MIPI_MUX_SEL BIT(2)
#endif /* __LINUX_IMX8MQ_IOMUXC_GPR_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment