From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] i.MX2: Support splash screen
Date: Wed, 18 Apr 2012 12:47:53 +0200 [thread overview]
Message-ID: <4F8E9BD9.9090107@denx.de> (raw)
In-Reply-To: <1334739261-7812-2-git-send-email-timo@exertus.fi>
On 18/04/2012 10:54, Timo Ketola wrote:
> Signed-off-by: Timo Ketola <timo@exertus.fi>
> ---
> arch/arm/include/asm/arch-mx25/imx-regs.h | 29 +++++++++
> drivers/video/Makefile | 1 +
> drivers/video/mx2fb.c | 92 +++++++++++++++++++++++++++++
> include/lcd.h | 21 ++++++-
> include/mx2fb.h | 39 ++++++++++++
> 5 files changed, 181 insertions(+), 1 deletions(-)
> create mode 100644 drivers/video/mx2fb.c
> create mode 100644 include/mx2fb.h
Hi Timo,
I forward your patch to Anatolji. He is the video maintainer.
>
> diff --git a/arch/arm/include/asm/arch-mx25/imx-regs.h b/arch/arm/include/asm/arch-mx25/imx-regs.h
> index 7f9449b..af5b42e 100644
> --- a/arch/arm/include/asm/arch-mx25/imx-regs.h
> +++ b/arch/arm/include/asm/arch-mx25/imx-regs.h
> @@ -167,6 +167,35 @@ struct aips_regs {
> u32 mpr_8_15;
> };
>
> +struct lcdc_regs {
> + u32 lssar;
> + u32 lsr;
> + u32 lvpwr;
> + u32 lcpr;
> + u32 lcwhb;
> + u32 lccmr;
> + u32 lpcr;
> + u32 lhcr;
> + u32 lvcr;
> + u32 lpor;
> + u32 lscr;
> + u32 lpccr;
> + u32 ldcr;
> + u32 lrmcr;
> + u32 licr;
> + u32 lier;
> + u32 lisr;
> + u32 pad0[3];
> + u32 lgwsar;
> + u32 lgwsr;
> + u32 lgwvpwr;
> + u32 lgwpor;
> + u32 lgwpr;
> + u32 pad1[0x200 - 25];
> + u32 bglut[0x100];
> + u32 gwlut[0x100];
> +};
> +
> #endif
>
> /* AIPS 1 */
> diff --git a/drivers/video/Makefile b/drivers/video/Makefile
> index 6252f6a..e047471 100644
> --- a/drivers/video/Makefile
> +++ b/drivers/video/Makefile
> @@ -36,6 +36,7 @@ COBJS-$(CONFIG_VIDEO_CT69000) += ct69000.o videomodes.o
> COBJS-$(CONFIG_VIDEO_DA8XX) += da8xx-fb.o videomodes.o
> COBJS-$(CONFIG_VIDEO_MB862xx) += mb862xx.o videomodes.o
> COBJS-$(CONFIG_VIDEO_MB86R0xGDC) += mb86r0xgdc.o videomodes.o
> +COBJS-$(CONFIG_VIDEO_MX2) += mx2fb.o
> COBJS-$(CONFIG_VIDEO_MX3) += mx3fb.o videomodes.o
> COBJS-$(CONFIG_VIDEO_MX5) += mxc_ipuv3_fb.o ipu_common.o ipu_disp.o
> COBJS-$(CONFIG_VIDEO_OMAP3) += omap3_dss.o videomodes.o
> diff --git a/drivers/video/mx2fb.c b/drivers/video/mx2fb.c
> new file mode 100644
> index 0000000..9ee4a3e
IMHO it is better if you use the video API instead of the old LCD
interface, that means using CONFIG_VIDEO. You have then to implement a
video_hw_init() function for your initialisation. I think there are
advantages doing that, and recently some drivers moved to this API, for
example the driver for i.MX3 (mx3fb.c).
>
> diff --git a/include/mx2fb.h b/include/mx2fb.h
> new file mode 100644
> index 0000000..1f16a61
> --- /dev/null
> +++ b/include/mx2fb.h
> @@ -0,0 +1,39 @@
> +/*
> + * Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved.
> + */
> +
> +/*
> + * The code contained herein is licensed under the GNU General Public
> + * License. You may obtain a copy of the GNU General Public License
> + * Version 2 or later at the following locations:
> + *
> + * http://www.opensource.org/licenses/gpl-license.html
> + * http://www.gnu.org/copyleft/gpl.html
> + */
The header is not correct, I think - it does not set explicitely under
which license version is published this code, only where it is possible
to get a GPLv2 or later. Please substitute this header with a full
explained license header, as you can see generally in u-boot files.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2012-04-18 10:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-18 8:54 [U-Boot] [PATCH 0/1] i.MX2: Support splash screen Timo Ketola
2012-04-18 8:54 ` [U-Boot] [PATCH] " Timo Ketola
2012-04-18 9:26 ` Wolfgang Denk
2012-04-18 10:47 ` Stefano Babic [this message]
2012-04-20 11:01 ` [U-Boot] [PATCH] i.MX25: Prepare for LCD driver in board adaptation Timo Ketola
2012-04-20 11:01 ` [U-Boot] [PATCH] i.MX25: lcdc: Add register definitions Timo Ketola
2012-04-26 11:53 ` Anatolij Gustschin
2012-04-26 9:57 ` [U-Boot] [PATCH] i.MX25: Prepare for LCD driver in board adaptation Anatolij Gustschin
2012-04-26 11:18 ` Timo Ketola
2012-04-26 12:01 ` Anatolij Gustschin
2012-04-26 11:51 ` [U-Boot] [PATCH] i.MX2: Support splash screen Anatolij Gustschin
2012-04-26 14:37 ` Timo Ketola
2012-04-26 15:30 ` Anatolij Gustschin
2012-04-18 9:26 ` [U-Boot] [PATCH 0/1] " Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F8E9BD9.9090107@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox