aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorThara Gopinath <thara@ti.com>2010-08-18 06:51:58 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2010-12-22 17:31:32 -0500
commit3b92408c7dfeb918fdd2f9fadc73177a59ad621c (patch)
tree6a0de676ec0807f4c73432a76e200cec553cbb0e /arch/arm/plat-omap
parent2f34ce81b8c05c900e45bd88595cc154f7bb5957 (diff)
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>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/include/plat/omap_hwmod.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h
index 2825b456da0e..b219a88cac2c 100644
--- a/arch/arm/plat-omap/include/plat/omap_hwmod.h
+++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h
@@ -34,6 +34,7 @@
34#include <linux/ioport.h> 34#include <linux/ioport.h>
35#include <linux/spinlock.h> 35#include <linux/spinlock.h>
36#include <plat/cpu.h> 36#include <plat/cpu.h>
37#include <plat/voltage.h>
37 38
38struct omap_device; 39struct omap_device;
39 40
@@ -452,6 +453,8 @@ struct omap_hwmod_class {
452 * @main_clk: main clock: OMAP clock name 453 * @main_clk: main clock: OMAP clock name
453 * @_clk: pointer to the main struct clk (filled in at runtime) 454 * @_clk: pointer to the main struct clk (filled in at runtime)
454 * @opt_clks: other device clocks that drivers can request (0..*) 455 * @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)
455 * @masters: ptr to array of OCP ifs that this hwmod can initiate on 458 * @masters: ptr to array of OCP ifs that this hwmod can initiate on
456 * @slaves: ptr to array of OCP ifs that this hwmod can respond on 459 * @slaves: ptr to array of OCP ifs that this hwmod can respond on
457 * @dev_attr: arbitrary device attributes that can be passed to the driver 460 * @dev_attr: arbitrary device attributes that can be passed to the driver
@@ -494,6 +497,8 @@ struct omap_hwmod {
494 const char *main_clk; 497 const char *main_clk;
495 struct clk *_clk; 498 struct clk *_clk;
496 struct omap_hwmod_opt_clk *opt_clks; 499 struct omap_hwmod_opt_clk *opt_clks;
500 char *vdd_name;
501 struct voltagedomain *voltdm;
497 struct omap_hwmod_ocp_if **masters; /* connect to *_IA */ 502 struct omap_hwmod_ocp_if **masters; /* connect to *_IA */
498 struct omap_hwmod_ocp_if **slaves; /* connect to *_TA */ 503 struct omap_hwmod_ocp_if **slaves; /* connect to *_TA */
499 void *dev_attr; 504 void *dev_attr;