mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 06:51:28 +02:00
mmc: sunxi: Mask data0 while changing clocks ???
Is this needed? Signed-off-by: Ondrej Jirman <megous@megous.com>
This commit is contained in:
@@ -307,10 +307,14 @@ static int mmc_update_clk(struct sunxi_mmc_priv *priv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define SDXC_MASK_DATA0 BIT(31)
|
||||||
|
|
||||||
|
|
||||||
static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc)
|
static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc)
|
||||||
{
|
{
|
||||||
/* Disable Clock */
|
/* Disable Clock */
|
||||||
clrbits_le32(&priv->reg->clkcr, SUNXI_MMC_CLK_ENABLE);
|
clrbits_le32(&priv->reg->clkcr, SUNXI_MMC_CLK_ENABLE);
|
||||||
|
setbits_le32(&priv->reg->clkcr, SDXC_MASK_DATA0);
|
||||||
|
|
||||||
if (mmc_update_clk(priv))
|
if (mmc_update_clk(priv))
|
||||||
return -1;
|
return -1;
|
||||||
@@ -331,6 +335,7 @@ static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc)
|
|||||||
|
|
||||||
/* Re-enable Clock */
|
/* Re-enable Clock */
|
||||||
setbits_le32(&priv->reg->clkcr, SUNXI_MMC_CLK_ENABLE);
|
setbits_le32(&priv->reg->clkcr, SUNXI_MMC_CLK_ENABLE);
|
||||||
|
clrbits_le32(&priv->reg->clkcr, SDXC_MASK_DATA0);
|
||||||
|
|
||||||
if (mmc_update_clk(priv))
|
if (mmc_update_clk(priv))
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user