diff options
author | Russ Dill <Russ.Dill@ti.com> | 2018-09-04 08:49:37 +0200 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2018-10-03 14:29:19 +0200 |
commit | d6e7bbc148f9fbec8a0117b0d0f420c9710e6d81 (patch) | |
tree | fa2ac59eb7d2afd4b8af48d59dc30d673dd5f2f7 /drivers/clk/ti/clock.h | |
parent | clk: clk: Add clk_gate_restore_context function (diff) | |
download | linux-d6e7bbc148f9fbec8a0117b0d0f420c9710e6d81.tar.xz linux-d6e7bbc148f9fbec8a0117b0d0f420c9710e6d81.zip |
clk: ti: Add functions to save/restore clk context
SoCs like AM43XX lose clock registers context during RTC-only
suspend. Hence add functions to save/restore the clock registers
context.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Russ Dill <Russ.Dill@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'drivers/clk/ti/clock.h')
-rw-r--r-- | drivers/clk/ti/clock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/ti/clock.h b/drivers/clk/ti/clock.h index 5a781067a0e7..9f312a219510 100644 --- a/drivers/clk/ti/clock.h +++ b/drivers/clk/ti/clock.h @@ -24,6 +24,7 @@ struct clk_omap_divider { u8 flags; s8 latch; const struct clk_div_table *table; + u32 context; }; #define to_clk_omap_divider(_hw) container_of(_hw, struct clk_omap_divider, hw) @@ -36,6 +37,7 @@ struct clk_omap_mux { u8 shift; s8 latch; u8 flags; + u8 saved_parent; }; #define to_clk_omap_mux(_hw) container_of(_hw, struct clk_omap_mux, hw) |