diff options
author | Nishanth Menon <nm@ti.com> | 2011-02-19 16:40:46 +0530 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2011-11-30 15:29:09 -0800 |
commit | c70d0702503f68d34b613f63f1a3d6d6821a95c5 (patch) | |
tree | 3d383e58b662408f78784a216f0eabcee5762276 | |
parent | dd776f9319d4289f22f55615b1c6a6bfa55c6dc3 (diff) | |
download | kernel_samsung_tuna-c70d0702503f68d34b613f63f1a3d6d6821a95c5.zip kernel_samsung_tuna-c70d0702503f68d34b613f63f1a3d6d6821a95c5.tar.gz kernel_samsung_tuna-c70d0702503f68d34b613f63f1a3d6d6821a95c5.tar.bz2 |
OMAP3430: SR: class3: restrict CPU to run on
Use SmartReflex AVS Class3 initialization only for OMAP343x family of
processors.
Change-Id: I660326bf265541ba4e0feb52853ff6cb9b293aed
Signed-off-by: Nishanth Menon <nm@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/smartreflex-class3.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/smartreflex-class3.c b/arch/arm/mach-omap2/smartreflex-class3.c index 24eea28..9ac1c99 100644 --- a/arch/arm/mach-omap2/smartreflex-class3.c +++ b/arch/arm/mach-omap2/smartreflex-class3.c @@ -11,6 +11,7 @@ * published by the Free Software Foundation. */ +#include <plat/cpu.h> #include "smartreflex.h" static int sr_class3_enable(struct voltagedomain *voltdm, @@ -52,6 +53,10 @@ static struct omap_sr_class_data class3_data = { /* Smartreflex Class3 init API to be called from board file */ static int __init sr_class3_init(void) { + /* Enable this class only for OMAP343x */ + if (!cpu_is_omap343x()) + return -EINVAL; + pr_info("SmartReflex Class3 initialized\n"); return sr_register_class(&class3_data); } |