OMAP2/3: Add omap_type() for determining GP/EMU/HS
commit1a527214424ffeaf0e164a731789b0d90666bd65
authorKevin Hilman <khilman@deeprootsystems.com>
Wed, 17 Jun 2009 09:47:22 +0000 (17 12:47 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 17 Jun 2009 09:51:50 +0000 (17 12:51 +0300)
tree4ec2d2cf11de19eed1cc4c4f222eeaec3197a2e3
parente060b3ca51ed8bd393da87a3549416548eb50dc6
OMAP2/3: Add omap_type() for determining GP/EMU/HS

The omap_type() function is added and returns the DEVICETYPE field of
the CONTROL_STATUS register.  The result can be used for conditional
code based on whether device is GP (general purpose), EMU or
HS (high security).

This code is needed for the following fix to set the SRAM
size correctly for HS omaps.  Also at least PM and watchdog
code will need this function.

Signed-off-by: Kevin Hilman <khilman@ti.deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/id.c