Part Number: AM3356
Hi Experts,
Customer would like to reduce power consumption as possible because their system is mobile equipment. The eMMC which customer is using complies with JEDEC standard and this eMMC is able to enter Sleep-state with CMD5 command. Therefore, customer is asking AM335x Processor SDK(Version: 06_03_00_106) is supporting eMMC's sleep-mode or not.
According to customer's kernel-code-analysis, they believe Linux SDK is supporting this. I mean, SDK is controlling Sleep-state with CMD5 command as follows. Is customer's understanding correct? Can we have Expert's comments on this, please?
drivers/mmc/core/mmc.c
---------------------------------------------------------------------
static int mmc_sleep(struct mmc_host *host) {
printk(KERN_INFO ">>> enter mmc_sleep\n");
struct mmc_command cmd = {};
struct mmc_card *card = host->card;
unsigned int timeout_ms = DIV_ROUND_UP(card->ext_csd.sa_timeout, 10000);
int err;
/* Re-tuning can't be done once the card is deselected */
mmc_retune_hold(host);
err = mmc_deselect_cards(host);
if (err)
goto out_release;
cmd.opcode = MMC_SLEEP_AWAKE;
. . . . .
}
---------------------------------------------------------------------
mmc.h ----------------------------------------------------------------------- #define MMC_SLEEP_AWAKE 5 /* ac [31:16] RCA 15:flg R1b */ -----------------------------------------------------------------------
Best regards,
Miyazaki