aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/power
diff options
context:
space:
mode:
authorJean Pihet <j-pihet@ti.com>2012-04-24 01:11:27 -0400
committerKevin Hilman <khilman@ti.com>2012-05-31 19:03:44 -0400
commit8b765d727d711650ab3521411fd48a0d8f62a84c (patch)
treee20803fa5d17ad670a016db4ae7a7d5146de9944 /include/linux/power
parent80821c9c90427dd0f9274a82f9d69e43300d10bb (diff)
ARM: OMAP2+: smartreflex: Use the names from hwmod data instead of voltage domains.
Associate a name with each SmartReflex instance from the hwmod data, rather than attempting to reuse the name of a voltage domain. The name from hwmod better reflects the smartreflex integration in the system. Also have the name passed to the drivers using pdata, which helps to remove any dependencies on SoC-specific structures. Signed-off-by: Jean Pihet <j-pihet@ti.com> Signed-off-by: J Keerthy <j-keerthy@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'include/linux/power')
-rw-r--r--include/linux/power/smartreflex.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/power/smartreflex.h b/include/linux/power/smartreflex.h
index 4224698cf8bd..884eaeea96be 100644
--- a/include/linux/power/smartreflex.h
+++ b/include/linux/power/smartreflex.h
@@ -144,6 +144,7 @@
144#define OMAP3430_SR_ERRMAXLIMIT 0x02 144#define OMAP3430_SR_ERRMAXLIMIT 0x02
145 145
146struct omap_sr { 146struct omap_sr {
147 char *name;
147 struct list_head node; 148 struct list_head node;
148 struct platform_device *pdev; 149 struct platform_device *pdev;
149 struct omap_sr_nvalue_table *nvalue_table; 150 struct omap_sr_nvalue_table *nvalue_table;
@@ -232,6 +233,7 @@ struct omap_sr_nvalue_table {
232/** 233/**
233 * struct omap_sr_data - Smartreflex platform data. 234 * struct omap_sr_data - Smartreflex platform data.
234 * 235 *
236 * @name: instance name
235 * @ip_type: Smartreflex IP type. 237 * @ip_type: Smartreflex IP type.
236 * @senp_mod: SENPENABLE value for the sr 238 * @senp_mod: SENPENABLE value for the sr
237 * @senn_mod: SENNENABLE value for sr 239 * @senn_mod: SENNENABLE value for sr
@@ -243,6 +245,7 @@ struct omap_sr_nvalue_table {
243 * @voltdm: Pointer to the voltage domain associated with the SR 245 * @voltdm: Pointer to the voltage domain associated with the SR
244 */ 246 */
245struct omap_sr_data { 247struct omap_sr_data {
248 const char *name;
246 int ip_type; 249 int ip_type;
247 u32 senp_mod; 250 u32 senp_mod;
248 u32 senn_mod; 251 u32 senn_mod;