From f1fa19dfe775cc7ad42fd7cbee10614792833041 Mon Sep 17 00:00:00 2001 From: Oleksandr Tymoshenko Date: Mon, 8 Jul 2013 04:27:03 +0000 Subject: [PATCH] - AM335x requires updated soft-reset logic too --- sys/arm/ti/ti_mmchs.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/arm/ti/ti_mmchs.c b/sys/arm/ti/ti_mmchs.c index d4f436fd6ed..7587723487f 100644 --- a/sys/arm/ti/ti_mmchs.c +++ b/sys/arm/ti/ti_mmchs.c @@ -213,10 +213,13 @@ ti_mmchs_reset_controller(struct ti_mmchs_softc *sc, uint32_t bit) sysctl = ti_mmchs_read_4(sc, MMCHS_SYSCTL); ti_mmchs_write_4(sc, MMCHS_SYSCTL, sysctl | bit); - if ((ti_chip() == CHIP_OMAP_4) && (ti_revision() > OMAP4430_REV_ES1_0)) { - /* OMAP4 ES2 and greater has an updated reset logic. - * Monitor a 0->1 transition first - */ + + /* + * AM335x and OMAP4 ES2 and greater has an updated reset logic. + * Monitor a 0->1 transition first + */ + if ((ti_chip() == CHIP_AM335X) || + ((ti_chip() == CHIP_OMAP_4) && (ti_revision() > OMAP4430_REV_ES1_0))) { attempts = 10000; while (!(ti_mmchs_read_4(sc, MMCHS_SYSCTL) & bit) && (attempts-- > 0)) continue;