ARM: OMAP2+: PRM: provide generic API for system reset
This patch combines the various prm_warm_reset calls under a common API prm_reset_system, and adds the SoC specific implementation under 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>
This commit is contained in:

committed by
Tony Lindgren

parent
4984eeaf71
commit
61c8621e2b
@@ -106,7 +106,7 @@ static int omap2xxx_pwrst_to_common_pwrst(u8 omap2xxx_pwrst)
|
||||
* Set the DPLL reset bit, which should reboot the SoC. This is the
|
||||
* recommended way to restart the SoC. No return value.
|
||||
*/
|
||||
void omap2xxx_prm_dpll_reset(void)
|
||||
static void omap2xxx_prm_dpll_reset(void)
|
||||
{
|
||||
omap2_prm_set_mod_reg_bits(OMAP_RST_DPLL3_MASK, WKUP_MOD,
|
||||
OMAP2_RM_RSTCTRL);
|
||||
@@ -215,6 +215,7 @@ static struct prm_ll_data omap2xxx_prm_ll_data = {
|
||||
.assert_hardreset = &omap2_prm_assert_hardreset,
|
||||
.deassert_hardreset = &omap2_prm_deassert_hardreset,
|
||||
.is_hardreset_asserted = &omap2_prm_is_hardreset_asserted,
|
||||
.reset_system = &omap2xxx_prm_dpll_reset,
|
||||
};
|
||||
|
||||
int __init omap2xxx_prm_init(void)
|
||||
|
Reference in New Issue
Block a user