From: "Raphaël Assénat" <raph@8d.com>
To: linux-omap@vger.kernel.org
Subject: [PATCH 3/5] am3505/3517: Skip TWL
Date: Mon, 04 Jul 2011 15:33:43 -0400 [thread overview]
Message-ID: <4E121597.9020904@8d.com> (raw)
In cpu.h, OMAP35XX_CLASS is currently defined as 0x35000034.
the cpu_is_omap34xx() return 1 even on am3505 and am3517.
I'm not sure if the CPU class bits should be changed to 0x35
(redefining OMAP35XX_CLASS to 0x35000035). So instead, I'm
adding code to explicitely ignore am3505 and am3517.
Signed-off-by: Raphael Assenat <raph@8d.com>
diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2/omap_twl.c
index 07d6140..13b9fbd 100644
--- a/arch/arm/mach-omap2/omap_twl.c
+++ b/arch/arm/mach-omap2/omap_twl.c
@@ -266,7 +266,7 @@ int __init omap3_twl_init(void)
{
struct voltagedomain *voltdm;
- if (!cpu_is_omap34xx())
+ if (!cpu_is_omap34xx() || cpu_is_omap3505() || cpu_is_omap3517() )
return -ENODEV;
if (cpu_is_omap3630()) {
reply other threads:[~2011-07-04 19:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4E121597.9020904@8d.com \
--to=raph@8d.com \
--cc=linux-omap@vger.kernel.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