diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-10-27 11:39:24 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-10-27 11:39:24 -0400 |
commit | efd44dc35f550e0cedd983d13e180da5e0d368a9 (patch) | |
tree | 97f7ac3ce5904a6f3f2c54bca4d8ed460352f0e5 /arch/arm/mach-omap2/prm33xx.c | |
parent | d9bbe84f6723b78bc9980b3d5d609a6b73b350be (diff) |
ARM: OMAP2+: PRM: add generic API for asserting hardware reset
PRM driver now has a generic API for asserting hardware resets. SoC
specific support functions are registered through the prm_ll_data.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/prm33xx.c')
-rw-r--r-- | arch/arm/mach-omap2/prm33xx.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/prm33xx.c b/arch/arm/mach-omap2/prm33xx.c index f149e7c9f948..992a40e72284 100644 --- a/arch/arm/mach-omap2/prm33xx.c +++ b/arch/arm/mach-omap2/prm33xx.c | |||
@@ -73,6 +73,7 @@ int am33xx_prm_is_hardreset_asserted(u8 shift, s16 inst, u16 rstctrl_offs) | |||
73 | /** | 73 | /** |
74 | * am33xx_prm_assert_hardreset - assert the HW reset line of a submodule | 74 | * am33xx_prm_assert_hardreset - assert the HW reset line of a submodule |
75 | * @shift: register bit shift corresponding to the reset line to assert | 75 | * @shift: register bit shift corresponding to the reset line to assert |
76 | * @part: CM partition, ignored for AM33xx | ||
76 | * @inst: CM instance register offset (*_INST macro) | 77 | * @inst: CM instance register offset (*_INST macro) |
77 | * @rstctrl_reg: RM_RSTCTRL register address for this module | 78 | * @rstctrl_reg: RM_RSTCTRL register address for this module |
78 | * | 79 | * |
@@ -83,7 +84,8 @@ int am33xx_prm_is_hardreset_asserted(u8 shift, s16 inst, u16 rstctrl_offs) | |||
83 | * place the submodule into reset. Returns 0 upon success or -EINVAL | 84 | * place the submodule into reset. Returns 0 upon success or -EINVAL |
84 | * upon an argument error. | 85 | * upon an argument error. |
85 | */ | 86 | */ |
86 | int am33xx_prm_assert_hardreset(u8 shift, s16 inst, u16 rstctrl_offs) | 87 | static int am33xx_prm_assert_hardreset(u8 shift, u8 part, s16 inst, |
88 | u16 rstctrl_offs) | ||
87 | { | 89 | { |
88 | u32 mask = 1 << shift; | 90 | u32 mask = 1 << shift; |
89 | 91 | ||
@@ -343,7 +345,9 @@ struct pwrdm_ops am33xx_pwrdm_operations = { | |||
343 | .pwrdm_has_voltdm = am33xx_check_vcvp, | 345 | .pwrdm_has_voltdm = am33xx_check_vcvp, |
344 | }; | 346 | }; |
345 | 347 | ||
346 | static struct prm_ll_data am33xx_prm_ll_data; | 348 | static struct prm_ll_data am33xx_prm_ll_data = { |
349 | .assert_hardreset = am33xx_prm_assert_hardreset, | ||
350 | }; | ||
347 | 351 | ||
348 | int __init am33xx_prm_init(void) | 352 | int __init am33xx_prm_init(void) |
349 | { | 353 | { |