mpfs/emmcsd: Set same base clock for SDR/DDR modes

This commit is contained in:
Ville Juven 2022-11-30 11:57:34 +02:00 committed by Xiang Xiao
parent c1b41fefeb
commit c36bdba3cb
1 changed files with 2 additions and 1 deletions

View File

@ -1795,7 +1795,8 @@ static void mpfs_clock(struct sdio_dev_s *dev, enum sdio_clock_e rate)
{
clckr = MPFS_MMC_CLOCK_200MHZ;
}
else if (priv->bus_mode == MPFS_EMMCSD_MODE_SDR)
else if (priv->bus_mode == MPFS_EMMCSD_MODE_SDR ||
priv->bus_mode == MPFS_EMMCSD_MODE_DDR)
{
clckr = MPFS_MMC_CLOCK_50MHZ;
}