Skip to content

Commit

Permalink
omap: Fix multi.h when only ARCH_OMAP3 and SOC_AM33XX are selected
Browse files Browse the repository at this point in the history
When only ARCH_OMAP3 (or -2,-4,...) and SOC_AM33XX are selected, multi.h
doesn't set MULTI_OMAP2. In this case, cpu.h will simply define
cpu_is_omap24xx() as 1.

This causes problems for example for omap_hwmod.c:omap_hwmod_init which
checks for cpu_is_omap24xx() first, using the wrong soc_ops for AM33xx.

Fix this by defining MULTI_OMAP2 when using SOC_AM33XX together with
something else.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Jan Luebbe authored and Tony Lindgren committed Aug 8, 2012
1 parent 54f32a3 commit 6c691b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm/plat-omap/include/plat/multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,13 @@
# endif
#endif

#ifdef CONFIG_SOC_AM33XX
# ifdef OMAP_NAME
# undef MULTI_OMAP2
# define MULTI_OMAP2
# else
# define OMAP_NAME am33xx
# endif
#endif

#endif /* __PLAT_OMAP_MULTI_H */

0 comments on commit 6c691b5

Please sign in to comment.