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: Mon, 30 Nov 2009 00:15:26 +0100 [thread overview]
Message-ID: <20091130001526.20cf0b17@wker> (raw)
In-Reply-To: <20091129214419.GA12518@mail.gnudd.com>
Alessandro Rubini <rubini@unipv.it> wrote:
...
> >> +#define CLCD_LBAS 0x00000014
> >
> > CLCD_LBAS isn't used in the code, please remove it.
>
> I disagree for two reasons: the register exists in the logic block,
> and the code is copied from a linux header (as noted in the file itself).
>
> Since the clcd block is not something designed for the nomadik but the
> standard primecell, I don't think trimming its definition is useful;
> other boards can benefit from the header being complete.
I understand your arguments. If Wolfgang will not reject my pull
request, I'm fine with it. Could you please use something like:
struct clcd_regs {
u32 tim0;
u32 tim1;
u32 tim2;
u32 tim3;
u32 ubas;
u32 lbas;
#if !defined(CONFIG_ARCH_VERSATILE) && !defined(CONFIG_ARCH_REALVIEW)
u32 ienb;
u32 cntl;
#else
/*
* Someone rearranged these two registers on the Versatile
* platform...
*/
u32 cntl;
u32 ienb;
#endif
u32 stat;
u32 intr;
u32 ucur;
u32 lcur;
u32 res[0x74];
u32 pal;
};
in the amba_clcd header?
And then in the code something like:
struct clcd_regs *regs;
...
...
regs = (struct clcd_regs *)NOMADIK_CLCDC_BASE;
...
writel(regval->tim0, ®s->tim0);
...
Thanks,
Anatolij
next prev parent reply other threads:[~2009-11-29 23:15 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
2009-11-29 21:44 ` Alessandro Rubini
2009-11-29 23:15 ` Anatolij Gustschin [this message]
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=20091130001526.20cf0b17@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