All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/5] am3505/3517: Skip TWL
@ 2011-07-04 19:33 Raphaël Assénat
  0 siblings, 0 replies; only message in thread
From: Raphaël Assénat @ 2011-07-04 19:33 UTC (permalink / raw)
  To: linux-omap

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()) {

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-04 19:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04 19:33 [PATCH 3/5] am3505/3517: Skip TWL Raphaël Assénat

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.