From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: IMX: board hardware macro
Date: Wed, 27 Mar 2013 10:13:17 +0100 [thread overview]
Message-ID: <5152B82D.8080505@linaro.org> (raw)
In-Reply-To: <20130327063306.GC2767@r65073-Latitude-E6420>
On 03/27/2013 07:33 AM, Shawn Guo wrote:
> On Tue, Mar 26, 2013 at 11:31:26PM +0100, Daniel Lezcano wrote:
>> HI all,
>>
>> is there a macro to tell if the board is iMX51 and iMX6Q ?
>>
>> I would like to do the same as:
>>
>> static int __init tegra_cpuidle_init(void)
>> {
>> int ret;
>>
>> switch (tegra_chip_id) {
>> case TEGRA20:
>> ret = tegra20_cpuidle_init();
>> break;
>> case TEGRA30:
>> ret = tegra30_cpuidle_init();
>> break;
>> case TEGRA114:
>> ret = tegra114_cpuidle_init();
>> break;
>> default:
>> ret = -ENODEV;
>> break;
>> }
>>
>> return ret;
>> }
>> device_initcall(tegra_cpuidle_init);
>
> The global initcall is something that we are removing for multiplatform
> build. Please do not add it back.
Ok, sure. I won't add it back.
Do these macros exist ?
Thanks
-- Daniel
--
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
next prev parent reply other threads:[~2013-03-27 9:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-26 22:31 IMX: board hardware macro Daniel Lezcano
2013-03-27 6:33 ` Shawn Guo
2013-03-27 9:13 ` Daniel Lezcano [this message]
2013-03-27 12:34 ` Shawn Guo
2013-03-27 13:53 ` Daniel Lezcano
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=5152B82D.8080505@linaro.org \
--to=daniel.lezcano@linaro.org \
--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;
as well as URLs for NNTP newsgroup(s).