Skip to content

Commit 3b92408

Browse files
thara-zzmetaliveblog
authored andcommitted
OMAP: Introduce voltage domain information in the hwmod structures
This patch extends the device hwmod structure to contain info about the voltage domain to which the device belongs to. This is needed to support a device based DVFS where the device knows which voltage domain it belongs to. Signed-off-by: Thara Gopinath <thara@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
1 parent 2f34ce8 commit 3b92408

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm/plat-omap/include/plat/omap_hwmod.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <linux/ioport.h>
3535
#include <linux/spinlock.h>
3636
#include <plat/cpu.h>
37+
#include <plat/voltage.h>
3738

3839
struct omap_device;
3940

@@ -452,6 +453,8 @@ struct omap_hwmod_class {
452453
* @main_clk: main clock: OMAP clock name
453454
* @_clk: pointer to the main struct clk (filled in at runtime)
454455
* @opt_clks: other device clocks that drivers can request (0..*)
456+
* @vdd_name: voltage domain name
457+
* @voltdm: pointer to voltage domain (filled in at runtime)
455458
* @masters: ptr to array of OCP ifs that this hwmod can initiate on
456459
* @slaves: ptr to array of OCP ifs that this hwmod can respond on
457460
* @dev_attr: arbitrary device attributes that can be passed to the driver
@@ -494,6 +497,8 @@ struct omap_hwmod {
494497
const char *main_clk;
495498
struct clk *_clk;
496499
struct omap_hwmod_opt_clk *opt_clks;
500+
char *vdd_name;
501+
struct voltagedomain *voltdm;
497502
struct omap_hwmod_ocp_if **masters; /* connect to *_IA */
498503
struct omap_hwmod_ocp_if **slaves; /* connect to *_TA */
499504
void *dev_attr;

0 commit comments

Comments
 (0)