diff options
Diffstat (limited to 'arch/arm/mach-omap2/sr_device.c')
-rw-r--r-- | arch/arm/mach-omap2/sr_device.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c index f8217a5a4a26..b9753fe27232 100644 --- a/arch/arm/mach-omap2/sr_device.c +++ b/arch/arm/mach-omap2/sr_device.c | |||
@@ -23,8 +23,8 @@ | |||
23 | #include <linux/slab.h> | 23 | #include <linux/slab.h> |
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | 25 | ||
26 | #include <plat/omap_device.h> | 26 | #include "soc.h" |
27 | 27 | #include "omap_device.h" | |
28 | #include "voltage.h" | 28 | #include "voltage.h" |
29 | #include "control.h" | 29 | #include "control.h" |
30 | #include "pm.h" | 30 | #include "pm.h" |
@@ -121,6 +121,19 @@ static int __init sr_dev_init(struct omap_hwmod *oh, void *user) | |||
121 | sr_data->senn_mod = 0x1; | 121 | sr_data->senn_mod = 0x1; |
122 | sr_data->senp_mod = 0x1; | 122 | sr_data->senp_mod = 0x1; |
123 | 123 | ||
124 | if (cpu_is_omap34xx() || cpu_is_omap44xx()) { | ||
125 | sr_data->err_weight = OMAP3430_SR_ERRWEIGHT; | ||
126 | sr_data->err_maxlimit = OMAP3430_SR_ERRMAXLIMIT; | ||
127 | sr_data->accum_data = OMAP3430_SR_ACCUMDATA; | ||
128 | if (!(strcmp(sr_data->name, "smartreflex_mpu"))) { | ||
129 | sr_data->senn_avgweight = OMAP3430_SR1_SENNAVGWEIGHT; | ||
130 | sr_data->senp_avgweight = OMAP3430_SR1_SENPAVGWEIGHT; | ||
131 | } else { | ||
132 | sr_data->senn_avgweight = OMAP3430_SR2_SENNAVGWEIGHT; | ||
133 | sr_data->senp_avgweight = OMAP3430_SR2_SENPAVGWEIGHT; | ||
134 | } | ||
135 | } | ||
136 | |||
124 | sr_data->voltdm = voltdm_lookup(sr_dev_attr->sensor_voltdm_name); | 137 | sr_data->voltdm = voltdm_lookup(sr_dev_attr->sensor_voltdm_name); |
125 | if (!sr_data->voltdm) { | 138 | if (!sr_data->voltdm) { |
126 | pr_err("%s: Unable to get voltage domain pointer for VDD %s\n", | 139 | pr_err("%s: Unable to get voltage domain pointer for VDD %s\n", |