diff mbox

[U-Boot] i.MX25: lcdc: Add register definitions

Message ID 1334919709-5870-2-git-send-email-timo@exertus.fi
State Changes Requested
Headers show

Commit Message

Timo Ketola April 20, 2012, 11:01 a.m. UTC
Signed-off-by: Timo Ketola <timo@exertus.fi>
---
 arch/arm/include/asm/arch-mx25/imx-regs.h |   32 +++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

Comments

Anatolij Gustschin April 26, 2012, 11:53 a.m. UTC | #1
On Fri, 20 Apr 2012 14:01:49 +0300
"Timo Ketola" <timo@exertus.fi> wrote:

> Signed-off-by: Timo Ketola <timo@exertus.fi>
> ---
>  arch/arm/include/asm/arch-mx25/imx-regs.h |   32 +++++++++++++++++++++++++++++
>  1 files changed, 32 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/include/asm/arch-mx25/imx-regs.h b/arch/arm/include/asm/arch-mx25/imx-regs.h
> index cf925d7..751a518 100644
> --- a/arch/arm/include/asm/arch-mx25/imx-regs.h
> +++ b/arch/arm/include/asm/arch-mx25/imx-regs.h
> @@ -170,6 +170,38 @@ struct aips_regs {
...
> +
> +	/* bglut starts at 0x800 or at word 0x200 and at this point we have
> +	 * defined 25 registers */

Please fix style here.

Thanks,
Anatolij
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-mx25/imx-regs.h b/arch/arm/include/asm/arch-mx25/imx-regs.h
index cf925d7..751a518 100644
--- a/arch/arm/include/asm/arch-mx25/imx-regs.h
+++ b/arch/arm/include/asm/arch-mx25/imx-regs.h
@@ -170,6 +170,38 @@  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;
+
+	/* bglut starts at 0x800 or at word 0x200 and at this point we have
+	 * defined 25 registers */
+	u32 pad1[0x200 - 25];
+	u32 bglut[0x100];
+	u32 gwlut[0x100];
+};
+
 #endif
 
 /* AIPS 1 */