public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 2/9] video: add amba-clcd prime-cell
Date: Sun, 29 Nov 2009 22:24:44 +0100	[thread overview]
Message-ID: <20091129222444.2e454083@wker> (raw)
In-Reply-To: <84aa128b71cbe6595dd5859c64a592b122cef723.1259185128.git.rubini@unipv.it>

Hello Alessandro,

Alessandro Rubini <rubini-list@gnudd.com> wrote:

<snip>
> diff --git a/include/amba_clcd.h b/include/amba_clcd.h
> new file mode 100644
> index 0000000..09c9aa2
> --- /dev/null
> +++ b/include/amba_clcd.h
> @@ -0,0 +1,85 @@
...
> +/*
> + * CLCD Controller Internal Register addresses
> + */
> +#define CLCD_TIM0		0x00000000
> +#define CLCD_TIM1		0x00000004
> +#define CLCD_TIM2		0x00000008
> +#define CLCD_TIM3		0x0000000c
> +#define CLCD_UBAS		0x00000010
> +#define CLCD_LBAS		0x00000014

CLCD_LBAS isn't used in the code, please remove it.

...
> +#define CLCD_STAT		0x00000020
> +#define CLCD_INTR		0x00000024
> +#define CLCD_UCUR		0x00000028
> +#define CLCD_LCUR		0x0000002C
> +#define CLCD_PALL		0x00000200
> +#define CLCD_PALETTE		0x00000200
> +
> +#define TIM2_CLKSEL		(1 << 5)
> +#define TIM2_IVS		(1 << 11)
> +#define TIM2_IHS		(1 << 12)
> +#define TIM2_IPC		(1 << 13)
> +#define TIM2_IOE		(1 << 14)
> +#define TIM2_BCD		(1 << 26)

all these defines above are not used in the code,
please remove them.

> +#define CNTL_LCDEN		(1 << 0)
> +#define CNTL_LCDBPP1		(0 << 1)
> +#define CNTL_LCDBPP2		(1 << 1)
> +#define CNTL_LCDBPP4		(2 << 1)
> +#define CNTL_LCDBPP8		(3 << 1)
> +#define CNTL_LCDBPP16		(4 << 1)
> +#define CNTL_LCDBPP16_565	(6 << 1)
> +#define CNTL_LCDBPP24		(5 << 1)
> +#define CNTL_LCDBW		(1 << 4)
> +#define CNTL_LCDTFT		(1 << 5)
> +#define CNTL_LCDMONO8		(1 << 6)
> +#define CNTL_LCDDUAL		(1 << 7)
> +#define CNTL_BGR		(1 << 8)
> +#define CNTL_BEBO		(1 << 9)
> +#define CNTL_BEPO		(1 << 10)
> +#define CNTL_LCDPWR		(1 << 11)
> +#define CNTL_LCDVCOMP(x)	((x) << 12)
> +#define CNTL_LDMAFIFOTIME	(1 << 15)
> +#define CNTL_WATERMARK		(1 << 16)

It seems that only CNTL_LCDEN is uses in the code, please
remove other unused defines, too.

...
> +/* u-boot specific: cooked information (not used at this point) */
> +struct clcd_params {
> +	int left_margin, right_margin, upper_margin, lower_margin;
> +	int hsync_len, vsync_len;
> +	int sync, vmode;
> +};

this is also not used, please do not add unused code.
I couldn't comment on this in the first patch version, sorry.

Best regards,
Anatolij

  reply	other threads:[~2009-11-29 21:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <84aa128b71cbe6595dd5859c64a592b122cef723.1259185128.git.rubini@ unipv.it>
2009-11-25 21:46 ` [U-Boot] [PATCH V2 0/9] display and keypad support for nhk8815 Alessandro Rubini
2009-11-25 21:46   ` [U-Boot] [PATCH V2 1/9] nhk8815: change the order of initialization Alessandro Rubini
2009-11-25 21:46   ` [U-Boot] [PATCH V2 2/9] video: add amba-clcd prime-cell Alessandro Rubini
2009-11-29 21:24     ` Anatolij Gustschin [this message]
2009-11-29 21:44       ` Alessandro Rubini
2009-11-29 23:15         ` Anatolij Gustschin
2009-11-29 23:31           ` Alessandro Rubini
2009-11-29 22:21       ` Wolfgang Denk
2009-11-25 21:46   ` [U-Boot] [PATCH V2 3/9] include/nomadik.h: add physical address for cldc Alessandro Rubini
2009-11-25 21:47   ` [U-Boot] [PATCH V2 4/9] drivers/misc: add stmpe2401 port extender and keypad controller Alessandro Rubini
2009-11-25 21:47   ` [U-Boot] [PATCH V2 5/9] nhk8815.h: define we need stmpe Alessandro Rubini
2009-11-25 21:47   ` [U-Boot] [PATCH V2 6/9] lcd: make 16bpp work Alessandro Rubini
2009-11-29 22:13     ` Anatolij Gustschin
2009-11-25 21:47   ` [U-Boot] [PATCH V2 7/9] nhk8815: added keypad Alessandro Rubini
2009-11-25 21:47   ` [U-Boot] [PATCH V2 8/9] nhk8815: start lower in RAM, so the 800x480 frame buffer fits Alessandro Rubini
2009-11-25 21:47   ` [U-Boot] [PATCH V2 9/9] nhk8815: added lcd support Alessandro Rubini
     [not found]   ` <84aa128b71cbe6595dd5859c64a592b122cef723.1259185128.git.rubini @unipv.it>
2009-11-26  9:17     ` [U-Boot] [PATCH V2 2/9] video: add amba-clcd prime-cell Alessandro Rubini
2009-12-05  0:26       ` 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=20091129222444.2e454083@wker \
    --to=agust@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