From 656c23db6e0c4cef99dcee9f38b160f6168c95bd Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Fri, 19 Dec 2008 00:56:47 +0000 Subject: [PATCH] add delays around 16-bit enable/disable a la the driver; w/o this operation on my ixp435 Cambria board is unreliable --- sys/boot/arm/ixp425/boot2/ixp425_board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/boot/arm/ixp425/boot2/ixp425_board.c b/sys/boot/arm/ixp425/boot2/ixp425_board.c index 5c8d54cfc4c7..50e317db9bdd 100644 --- a/sys/boot/arm/ixp425/boot2/ixp425_board.c +++ b/sys/boot/arm/ixp425/boot2/ixp425_board.c @@ -330,6 +330,7 @@ cfenable16(void) val = *dskinf.cs1to; *dskinf.cs1to = val &~ EXP_BYTE_EN; + DELAY(100); #if 0 DPRINTF("%s: cs1 timing reg %x\n", *dskinf.cs1to, __func__); #endif @@ -340,6 +341,7 @@ cfdisable16(void) { u_int32_t val; + DELAY(100); val = *dskinf.cs1to; *dskinf.cs1to = val | EXP_BYTE_EN; #if 0