From 90cdb1c23461b79c4c36a492527f6c0b8273d13c Mon Sep 17 00:00:00 2001 From: Nishanth Menon Date: Mon, 16 May 2011 14:24:30 -0500 Subject: [PATCH] OMAP3+: OPP: register devices for DVFS Register DVFS entries per opp entry to capture all scalable domain devices. Signed-off-by: Nishanth Menon [vaibhav.bedia@ti.com: Pull in for AM33xx] Signed-off-by: Vaibhav Bedia --- arch/arm/mach-omap2/opp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-omap2/opp.c b/arch/arm/mach-omap2/opp.c index 9262a6b..709720d 100644 --- a/arch/arm/mach-omap2/opp.c +++ b/arch/arm/mach-omap2/opp.c @@ -22,6 +22,7 @@ #include #include "omap_opp_data.h" +#include "dvfs.h" /* Temp variable to allow multiple calls */ static u8 __initdata omap_table_init; @@ -85,6 +86,12 @@ int __init omap_init_opp_table(struct omap_opp_def *opp_def, "[%d] result=%d\n", __func__, opp_def->freq, opp_def->hwmod_name, i, r); + + r = omap_dvfs_register_device(dev, + opp_def->voltdm_name, opp_def->clk_name); + if (r) + dev_err(dev, "%s:%s:err dvfs register %d %d\n", + __func__, opp_def->hwmod_name, r, i); } opp_def++; } -- 1.9.1