/* * reset_virt_prcm_set_ck, reset_sys_ck: pointers to the virt_prcm_set * clock and the sys_ck. Used during the reset process
*/ staticstruct clk *reset_virt_prcm_set_ck, *reset_sys_ck;
/* Reboot handling */
/** * omap2xxx_restart - Set DPLL to bypass mode for reboot to work * * Set the DPLL to bypass so that reboot completes successfully. No * return value.
*/ void omap2xxx_restart(enum reboot_mode mode, constchar *cmd)
{
u32 rate;
/* XXX Should save the cmd argument for use after the reboot */
omap_prm_reset_system();
}
/** * omap2xxx_common_look_up_clks_for_reset - look up clocks needed for restart * * Some clocks need to be looked up in advance for the SoC restart * operation to work - see omap2xxx_restart(). Returns -EINVAL upon * error or 0 upon success.
*/ staticint __init omap2xxx_common_look_up_clks_for_reset(void)
{
reset_virt_prcm_set_ck = clk_get(NULL, "virt_prcm_set"); if (IS_ERR(reset_virt_prcm_set_ck)) return -EINVAL;
reset_sys_ck = clk_get(NULL, "sys_ck"); if (IS_ERR(reset_sys_ck)) return -EINVAL;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.