diff options
author | Kevin Hilman <khilman@ti.com> | 2011-04-05 00:22:28 (GMT) |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 19:09:07 (GMT) |
commit | 0e2f3d9cb8f3c6464ac24c489fa713699c037dd4 (patch) | |
tree | ffd4a600b9152cba9b91d28d773b7f4623ef8e08 /arch/arm/mach-omap2/voltage.h | |
parent | 0ec3041e91cf365a76c81b224e85d3c2574fec23 (diff) | |
download | linux-fsl-qoriq-0e2f3d9cb8f3c6464ac24c489fa713699c037dd4.tar.xz |
OMAP3+: VP: move SoC-specific sys clock rate retreival late init
Add sys clock name and rate to struct voltage domain. SoC specific
voltagedomain init code initializes sys clock name. After clock
framework is initialized, voltage late init will then use use the
sys_clk rate to calculate the various timing that depend on that rate.
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/voltage.h')
-rw-r--r-- | arch/arm/mach-omap2/voltage.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/voltage.h b/arch/arm/mach-omap2/voltage.h index eafcc92..3e16329 100644 --- a/arch/arm/mach-omap2/voltage.h +++ b/arch/arm/mach-omap2/voltage.h @@ -59,6 +59,7 @@ struct omap_vfsm_instance { * @read: read a VC/VP register * @write: write a VC/VP register * @read: read-modify-write a VC/VP register + * @sys_clk: system clock name/frequency, used for various timing calculations * @vdd: to be removed */ struct voltagedomain { @@ -76,6 +77,11 @@ struct voltagedomain { void (*write) (u32 val, u8 offset); u32 (*rmw)(u32 mask, u32 bits, u8 offset); + union { + const char *name; + u32 rate; + } sys_clk; + struct omap_vdd_info *vdd; }; |