[PATCH 1/3] imx-drm: Add mx6 hdmi transmitter support

Robert Nelson robertcnelson at gmail.com
Thu Oct 3 16:24:47 UTC 2013


On Wed, Oct 2, 2013 at 5:45 PM, Fabio Estevam
<fabio.estevam at freescale.com> wrote:
> This is based on the initial work done by Sascha Hauer and Tony Prisk.
>
> Tested on a mx6q wandboard and on a mx6qsabresd.
>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> ---
> This was tested against linux-next 20130927.
>
>  drivers/staging/imx-drm/Kconfig             |    6 +
>  drivers/staging/imx-drm/Makefile            |    1 +
>  drivers/staging/imx-drm/imx-hdmi.c          | 1969 +++++++++++++++++++++++++++
>  drivers/staging/imx-drm/imx-hdmi.h          | 1032 ++++++++++++++
>  include/linux/mfd/syscon/imx6q-iomuxc-gpr.h |    1 +
>  5 files changed, 3009 insertions(+)
>  create mode 100644 drivers/staging/imx-drm/imx-hdmi.c
>  create mode 100644 drivers/staging/imx-drm/imx-hdmi.h
>
> diff --git a/drivers/staging/imx-drm/Kconfig b/drivers/staging/imx-drm/Kconfig
> index 394254f..56d2a41 100644
> --- a/drivers/staging/imx-drm/Kconfig
> +++ b/drivers/staging/imx-drm/Kconfig
> @@ -52,3 +52,9 @@ config DRM_IMX_IPUV3
>         depends on DRM_IMX_IPUV3_CORE
>         help
>           Choose this if you have a i.MX5 or i.MX6 processor.
> +
> +config DRM_IMX_HDMI
> +       tristate "Freescale i.MX DRM HDMI "
> +       depends on DRM_IMX
> +       help
> +         Choose this if you want to use HDMI on i.MX6.
> diff --git a/drivers/staging/imx-drm/Makefile b/drivers/staging/imx-drm/Makefile
> index bfaf693..79a5588 100644
> --- a/drivers/staging/imx-drm/Makefile
> +++ b/drivers/staging/imx-drm/Makefile
> @@ -9,3 +9,4 @@ obj-$(CONFIG_DRM_IMX_LDB) += imx-ldb.o
>  obj-$(CONFIG_DRM_IMX_FB_HELPER) += imx-fbdev.o
>  obj-$(CONFIG_DRM_IMX_IPUV3_CORE) += ipu-v3/
>  obj-$(CONFIG_DRM_IMX_IPUV3)    += ipuv3-crtc.o
> +obj-$(CONFIG_DRM_IMX_HDMI) += imx-hdmi.o
> diff --git a/drivers/staging/imx-drm/imx-hdmi.c b/drivers/staging/imx-drm/imx-hdmi.c
> new file mode 100644
> index 0000000..4b486eb
> --- /dev/null
> +++ b/drivers/staging/imx-drm/imx-hdmi.c
> @@ -0,0 +1,1969 @@
> +/*
> + * Copyright (C) 2011-2013 Freescale Semiconductor, Inc.
> + *
> + * 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.
> + *
> + * SH-Mobile High-Definition Multimedia Interface (HDMI) driver
> + * for SLISHDMI13T and SLIPHDMIT IP cores
> + *
> + * Copyright (C) 2010, Guennadi Liakhovetski <g.liakhovetski at gmx.de>
> + */
> +
> +#include <linux/irq.h>
> +#include <linux/delay.h>
> +#include <linux/err.h>
> +#include <linux/clk.h>
> +#include <linux/regmap.h>
> +#include <linux/mfd/syscon.h>
> +#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
> +
> +#include <drm/drmP.h>
> +#include <drm/drm_crtc_helper.h>
> +#include <drm/drm_edid.h>
> +#include <drm/drm_encoder_slave.h>
> +#include <drm/imx-ipu-v3.h>

Just started testing with v3.12-rc3 +
e6e7fb1ffc875adf2dd36d4a135b8d7addda0aea (top of torvalds tree.)

This needs to be:
#include "ipu-v3/imx-ipu-v3.h"

Otherwise.

drivers/staging/imx-drm/imx-hdmi.c:27:28: fatal error:
drm/imx-ipu-v3.h: No such file or directory
 #include <drm/imx-ipu-v3.h>
                            ^
compilation terminated.
make[3]: *** [drivers/staging/imx-drm/imx-hdmi.o] Error 1
make[2]: *** [drivers/staging/imx-drm] Error 2
make[2]: *** Waiting for unfinished jobs....

Regards,

-- 
Robert Nelson
http://www.rcn-ee.com/


More information about the devel mailing list