From 286fcfe8b11d6b85a0faa24dcce3098a7c24c8e7 Mon Sep 17 00:00:00 2001 From: Jack Halpin Date: Thu, 8 Apr 2010 06:12:44 +0000 Subject: sd-as3525v2: Start out with all MCI Interrupts masked. Before the clock settings were fixed this setting actually caused the problem it now seems to solve. Random freezups seem to be gone for clip+ at least. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25531 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sd-as3525v2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index 5797dea7f5..059687acce 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c @@ -658,7 +658,8 @@ static void init_controller(void) /* Rx watermark = 63(sd reads) Tx watermark = 128 (sd writes) */ MCI_FIFOTH = (MCI_FIFOTH & MCI_FIFOTH_MASK) | 0x503f0080; - MCI_MASK = 0xffff & ~(MCI_INT_ACD|MCI_INT_CRDDET|MCI_INT_RXDR|MCI_INT_TXDR); + /* Mask all MCI Interrupts initially */ + MCI_MASK = 0; GPIOB_DIR |= (1<<5); /* Pin B5 output */ -- cgit v1.2.3