Ejemplo n.º 1
0
Archivo: init.c Proyecto: KortanZ/linux
void target_uninit(void)
{
#if MMC_SDHCI_SUPPORT
	mmc_put_card_to_sleep(dev);
	sdhci_mode_disable(&dev->host);
#else
	mmc_put_card_to_sleep();
#endif
}
Ejemplo n.º 2
0
Archivo: init.c Proyecto: jbott/lk_gee
void target_uninit(void)
{
#if MMC_SDHCI_SUPPORT
    mmc_put_card_to_sleep(dev);
#else
    mmc_put_card_to_sleep();
#endif
#ifdef SSD_ENABLE
    clock_ce_disable(SSD_CE_INSTANCE_1);
#endif
}
void target_uninit(void)
{
#if MMC_SDHCI_SUPPORT
	mmc_put_card_to_sleep(dev);
#else
	mmc_put_card_to_sleep();
#endif
#ifdef SSD_ENABLE
	clock_ce_disable(SSD_CE_INSTANCE_1);
#endif

	/* Disable HC mode before jumping to kernel */
	sdhci_mode_disable(&dev->host);
}
Ejemplo n.º 4
0
void target_uninit(void)
{
	mmc_put_card_to_sleep(dev);

	if (target_is_ssd_enabled())
		clock_ce_disable(SSD_CE_INSTANCE);
}
Ejemplo n.º 5
0
void api_platform_uninit(void) {
	// from target_uninit
	mmc_put_card_to_sleep(dev);

	// Disable HC mode before jumping to kernel
	sdhci_mode_disable(&dev->host);
}
Ejemplo n.º 6
0
void target_uninit(void)
{
	if (platform_boot_dev_isemmc())
	{
		mmc_put_card_to_sleep(dev);
		/* Disable HC mode before jumping to kernel */
		sdhci_mode_disable(&dev->host);
	}

	if (crypto_initialized())
	{
		crypto_eng_cleanup();
		clock_ce_disable(CE_INSTANCE);
	}

#if VERIFIED_BOOT
#if !VBOOT_MOTA
	if (is_sec_app_loaded())
	{
		if (send_milestone_call_to_tz() < 0)
		{
			dprintf(CRITICAL, "Failed to unload App for rpmb\n");
			ASSERT(0);
		}
	}

	if (rpmb_uninit() < 0)
	{
		dprintf(CRITICAL, "RPMB uninit failed\n");
		ASSERT(0);
	}
#endif
#endif
	rpm_smd_uninit();
}
Ejemplo n.º 7
0
Archivo: init.c Proyecto: M1cha/lktris
void target_uninit(void)
{
	if(platform_boot_dev_isemmc())
	{
		mmc_put_card_to_sleep(dev);
		sdhci_mode_disable(&dev->host);
	}
}
Ejemplo n.º 8
0
void target_uninit(void)
{
	if(target_boot_device_emmc())
	{
		mmc_put_card_to_sleep(dev);
		sdhci_mode_disable(&dev->host);
	}
}
Ejemplo n.º 9
0
/*
 * Function: mmc device sleep
 * Arg     : None
 * Return  : Clean up function for storage
 * Flow    : Put the mmc card to sleep
 */
void mmc_device_sleep()
{
	void *dev;
	dev = target_mmc_device();

	if (target_mmc_device())
	{
		mmc_put_card_to_sleep((struct mmc_device *)dev);
	}
}
Ejemplo n.º 10
0
void target_uninit(void)
{
	mmc_put_card_to_sleep(dev);
	sdhci_mode_disable(&dev->host);
	if (crypto_initialized())
		crypto_eng_cleanup();

	if (target_is_ssd_enabled())
		clock_ce_disable(CE1_INSTANCE);

#if SMD_SUPPORT
	rpm_smd_uninit();
#endif
}
Ejemplo n.º 11
0
Archivo: init.c Proyecto: sndnvaps/lk-1
void target_uninit(void)
{
	if (platform_boot_dev_isemmc())
	{
		mmc_put_card_to_sleep(dev);
		/* Disable HC mode before jumping to kernel */
		sdhci_mode_disable(&dev->host);
	}

	if (crypto_initialized())
		crypto_eng_cleanup();

	rpm_smd_uninit();
}
Ejemplo n.º 12
0
void target_uninit(void)
{
#if PON_VIB_SUPPORT
	/* wait for the vibrator timer is expried */
	wait_vib_timeout();
#endif

	mmc_put_card_to_sleep(dev);

	if (crypto_initialized())
		crypto_eng_cleanup();

	/* Disable HC mode before jumping to kernel */
	sdhci_mode_disable(&dev->host);
}
Ejemplo n.º 13
0
void target_uninit(void)
{
#if PON_VIB_SUPPORT
	/* wait for the vibrator timer is expried */
	wait_vib_timeout();
#endif

	mmc_put_card_to_sleep(dev);
	sdhci_mode_disable(&dev->host);

	if (crypto_initialized())
		crypto_eng_cleanup();

	if (target_is_ssd_enabled())
		clock_ce_disable(CE1_INSTANCE);
}