static void omap3_core_restore_context(void)
{
	/* Restore the control module context, padconf restored by h/w */
	omap3_control_restore_context();
	/* Restore the GPMC context */
	omap3_gpmc_restore_context();
	/* Restore the interrupt controller context */
	omap_intc_restore_context();
}
Example #2
0
static void omap3_core_restore_context(void)
{
	if (omap_rev() <= OMAP3630_REV_ES1_1) {
		/*
		 * errata i583 workaround, safe transition sequence for CKE1:
		 */
		omap_ctrl_writew(0x1b, OMAP2_CONTROL_PADCONFS +
			OMAP3_CONTROL_PADCONF_SDRC_CKE1_OFFSET);
		omap_ctrl_writew(0x19, OMAP2_CONTROL_PADCONFS +
			OMAP3_CONTROL_PADCONF_SDRC_CKE1_OFFSET);
		omap_ctrl_writew(0x18, OMAP2_CONTROL_PADCONFS +
			OMAP3_CONTROL_PADCONF_SDRC_CKE1_OFFSET);
	}
	/* Restore the control module context, padconf restored by h/w */
	omap3_control_restore_context();
	/* Restore the GPMC context */
	omap3_gpmc_restore_context();
	/* Restore the interrupt controller context */
	omap_intc_restore_context();
}