omap3: Fix cpu detection
authorTony Lindgren <tony@atomide.com>
Tue, 19 Jan 2010 23:40:26 +0000 (15:40 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 20 Jan 2010 02:17:36 +0000 (18:17 -0800)
commite9acb9b64d7fb16c7f69efa85c5707cffd0c7275
tree2eae26e4c1cfb5dab85b846125270b80bea55ad3
parentd4bb72e50a0c4b6790dec127a38fd06d06e561cc
omap3: Fix cpu detection

We need to set the omap_chip.oc carefully for the clocks to work.

To fix this, set the omap_chip.oc in omap3_check_features() based
on the CONTROL_IDCODE and silicon revision registers.

Also add handling for 34xx es3.1.2 as es3.1 for now.

Fixes booting on at least overo board.

Based on an earlier patch by Paul Walmsley <paul@pwsan.com>.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/id.c
arch/arm/plat-omap/include/plat/cpu.h