From: Arnd Bergmann <arnd@arndb.de>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] video: ARM CLCD: runtime check for Versatile
Date: Tue, 02 Feb 2016 21:10:49 +0000 [thread overview]
Message-ID: <25978729.oSoMp4ZgxA@wuerfel> (raw)
In-Reply-To: <1454446059-30526-1-git-send-email-linus.walleij@linaro.org>
On Tuesday 02 February 2016 21:47:39 Linus Walleij wrote:
> } else {
> -#ifdef CONFIG_ARCH_VERSATILE
> - fb->off_ienb = CLCD_PL111_IENB;
> - fb->off_cntl = CLCD_PL111_CNTL;
> -#else
> - fb->off_ienb = CLCD_PL110_IENB;
> - fb->off_cntl = CLCD_PL110_CNTL;
> -#endif
> + if (of_machine_is_compatible("arm,versatile-ab") ||
> + of_machine_is_compatible("arm,versatile-pb")) {
> + fb->off_ienb = CLCD_PL111_IENB;
> + fb->off_cntl = CLCD_PL111_CNTL;
> + } else {
> + fb->off_ienb = CLCD_PL110_IENB;
> + fb->off_cntl = CLCD_PL110_CNTL;
> + }
> }
>
Could that be done based on the AMBA device ID instead?
Arnd
next prev parent reply other threads:[~2016-02-02 21:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-02 20:47 [PATCH] video: ARM CLCD: runtime check for Versatile Linus Walleij
2016-02-02 21:10 ` Arnd Bergmann [this message]
2016-02-03 0:41 ` Russell King - ARM Linux
2016-02-03 9:05 ` Arnd Bergmann
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=25978729.oSoMp4ZgxA@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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