Commit 90cdb1c23461b79c4c36a492527f6c0b8273d13c

Authored by Nishanth Menon
Committed by Afzal Mohammed
1 parent 4a3f8913f5
Exists in master

OMAP3+: OPP: register devices for DVFS

Register DVFS entries per opp entry to capture all
scalable domain devices.

Signed-off-by: Nishanth Menon <nm@ti.com>
[vaibhav.bedia@ti.com: Pull in for AM33xx]
Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>

Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff

arch/arm/mach-omap2/opp.c
... ... @@ -22,6 +22,7 @@
22 22 #include <plat/omap_device.h>
23 23  
24 24 #include "omap_opp_data.h"
  25 +#include "dvfs.h"
25 26  
26 27 /* Temp variable to allow multiple calls */
27 28 static u8 __initdata omap_table_init;
... ... @@ -85,6 +86,12 @@
85 86 "[%d] result=%d\n",
86 87 __func__, opp_def->freq,
87 88 opp_def->hwmod_name, i, r);
  89 +
  90 + r = omap_dvfs_register_device(dev,
  91 + opp_def->voltdm_name, opp_def->clk_name);
  92 + if (r)
  93 + dev_err(dev, "%s:%s:err dvfs register %d %d\n",
  94 + __func__, opp_def->hwmod_name, r, i);
88 95 }
89 96 opp_def++;
90 97 }