omap: Runtime detection of Si features
commit3cc6e837b8c2e26de92759942947c4f8c661de09
authorSanjeev Premi <premi@ti.com>
Sat, 17 Oct 2009 00:07:15 +0000 (16 17:07 -0700)
committerTony Lindgren <tony@atomide.com>
Sat, 17 Oct 2009 00:07:15 +0000 (16 17:07 -0700)
tree7673c56cd4a7e5751485946354debf1d2a0a4cbb
parentcbf7bc6a38f2e70f2184df271feb9509518fc2d1
omap: Runtime detection of Si features

The OMAP35x family has multiple variants differing
in the HW features. This patch detects these features
at runtime and prints information during the boot.

Since most of the code seemed repetitive, macros
have been used for readability.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/id.c
arch/arm/mach-omap2/mmc-twl4030.c
arch/arm/plat-omap/include/mach/control.h
arch/arm/plat-omap/include/mach/cpu.h