diff options
author | Vaibhav Hiremath <hvaibhav@ti.com> | 2013-05-17 15:43:41 +0530 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-06-18 03:04:07 -0700 |
commit | 7bcad170154f1302aeeced4f236588091a261fbf (patch) | |
tree | 19f6074a8fffab88ee6c2fbbcc86ba2102f0430b /arch/arm/mach-omap2/id.c | |
parent | c3ed359c66d49ed59139c61a6284452e94efb215 (diff) | |
download | linux-7bcad170154f1302aeeced4f236588091a261fbf.tar.bz2 |
ARM: OMAP3+: am33xx id: Add new am33xx specific function to check dev_feature
Layout of DEV_FEATURE register (offset = 0x604) is different
between TI81xx and AM33xx device, so create separate function
which will check for features available on specific AM33xx SoC
and set the flags accordingly.
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/id.c')
-rw-r--r-- | arch/arm/mach-omap2/id.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 9e5c7cb4a81a..7335eb2bf3fa 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c @@ -304,6 +304,19 @@ void __init ti81xx_check_features(void) omap3_cpuinfo(); } +void __init am33xx_check_features(void) +{ + u32 status; + + omap_features = OMAP3_HAS_NEON; + + status = omap_ctrl_readl(AM33XX_DEV_FEATURE); + if (status & AM33XX_SGX_MASK) + omap_features |= OMAP3_HAS_SGX; + + omap3_cpuinfo(); +} + void __init omap3xxx_check_revision(void) { const char *cpu_rev; |