From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Andrei Konovalov" <akonovalov@ru.mvista.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: [PATCH] Xilinx framebuffer device driver
Date: Wed, 25 Apr 2007 12:35:44 -0600 [thread overview]
Message-ID: <528646bc0704251135v20c682ald996c0948a402277@mail.gmail.com> (raw)
In-Reply-To: <462F9B1A.3090906@ru.mvista.com>
On 4/25/07, Andrei Konovalov <akonovalov@ru.mvista.com> wrote:
> Grant,
>
> > static struct xilinxfb_platform_data xilinxfb_pdata = {
> > #if defined(XPAR_TFT_0_USE_DCR) && (XPAR_TFT_0_USE_DCR != 0)
> > .use_dcr = 1;
> > #else
> > .use_dcr = 0;
> > #endif
>
> IOW I am trying to avoid conditional compilation like:
I agree 100%. All the device options should be specified dynamically.
Heck, it should be possible to build a single kernel and boot it on
just about any design.
>
> #if defined(XPAR_TFT_0_USE_DCR) && (XPAR_TFT_0_USE_DCR != 0)
> #define xilinxfb_out_be32(addr, mask) mtdcr((addr), (mask))
> #else
> #define xilinxfb_out_be32(addr, mask) out_be32((addr), (mask))
> #endif
>
> - as this would make the driver to include xparameters.h which would
> be an issue when moving to the OF device tree.
Which is a bad thing. I believe that the Xilinx folks would like to
use the device tree for the microblaze target also; but there is a
fair bit of work that need to be done before that is feasable.
>
> Or "use DCR" could be a Kconfig option for the driver.
My preference would be for it to be a runtime thing.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
prev parent reply other threads:[~2007-04-25 18:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-24 13:59 [PATCH] Xilinx framebuffer device driver Andrei Konovalov
2007-04-24 14:41 ` Peter Mendham
2007-04-24 22:17 ` Grant Likely
2007-04-25 13:06 ` Andrei Konovalov
2007-04-24 22:35 ` Arnd Bergmann
2007-04-25 18:06 ` Andrei Konovalov
2007-04-25 18:16 ` Andrei Konovalov
2007-04-25 18:35 ` Grant Likely [this message]
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=528646bc0704251135v20c682ald996c0948a402277@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=akonovalov@ru.mvista.com \
--cc=linuxppc-embedded@ozlabs.org \
/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;
as well as URLs for NNTP newsgroup(s).