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>
Tento commit je obsažen v:
@@ -341,7 +341,7 @@ static int am33xx_check_vcvp(void)
|
||||
*
|
||||
* Immediately reboots the device through warm reset.
|
||||
*/
|
||||
void am33xx_prm_global_warm_sw_reset(void)
|
||||
static void am33xx_prm_global_warm_sw_reset(void)
|
||||
{
|
||||
am33xx_prm_rmw_reg_bits(AM33XX_RST_GLOBAL_WARM_SW_MASK,
|
||||
AM33XX_RST_GLOBAL_WARM_SW_MASK,
|
||||
@@ -375,6 +375,7 @@ static struct prm_ll_data am33xx_prm_ll_data = {
|
||||
.assert_hardreset = am33xx_prm_assert_hardreset,
|
||||
.deassert_hardreset = am33xx_prm_deassert_hardreset,
|
||||
.is_hardreset_asserted = am33xx_prm_is_hardreset_asserted,
|
||||
.reset_system = am33xx_prm_global_warm_sw_reset,
|
||||
};
|
||||
|
||||
int __init am33xx_prm_init(void)
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele