diff options
author | Vishnu Suresh <Vishnu@freescale.com> | 2009-10-07 15:47:46 -0400 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2009-10-07 15:47:46 -0400 |
commit | 3aed4a45197043b250122414adbe304e9db4db65 (patch) | |
tree | ea872aef2e772be820e469ef654f90d109a78131 | |
parent | bfce44f397d987c4d0890d4f222a90cf86607b54 (diff) |
u-boot-2009.03-p2020rdb-eSDHC-IRQ-Bypass-auto-trigger
AHB2MAG IRQ Bypass Hardware Workaround auto trigger
To avoid the need for running mmcinfo, make auto trigger this workaround
TODO: Move this code to platform initialization code.
Signed-off-by: Vishnu Suresh <Vishnu@freescale.com>
-rw-r--r-- | drivers/mmc/fsl_esdhc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index fce4d3d27c..f93e5fcf3f 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -403,11 +403,6 @@ static int esdhc_init(struct mmc *mmc) /* Enable cache snooping */ out_be32(®s->scr, 0x00000040); -#ifdef CONFIG_P2020 - /* Enable AHB2MAG IRQ Bypass */ - out_be32(®s->scr, regs->scr | 0x00000020); -#endif - out_be32(®s->sysctl, SYSCTL_HCKEN | SYSCTL_IPGEN); /* Set the initial clock speed */ @@ -460,6 +455,11 @@ static int esdhc_initialize(bd_t *bis) mmc->f_max = MIN(gd->sdhc_clk, 50000000); mmc_register(mmc); +#ifdef CONFIG_P2020 + /* Enable AHB2MAG IRQ Bypass */ + out_be32(®s->scr, regs->scr | 0x00000020); +#endif + return 0; } |