summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-02-17 23:09:56 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-02-17 23:09:56 +0000
commit04fef58210e81e68c836da54fb0338fdb4e6071f (patch)
tree60d020c05564f953063b4751a265669d5a7cc3b8 /firmware
parentafa04b12d95e279b51133167c1c2db48dc2215b5 (diff)
downloadrockbox-04fef58210e81e68c836da54fb0338fdb4e6071f.tar.gz
rockbox-04fef58210e81e68c836da54fb0338fdb4e6071f.tar.bz2
rockbox-04fef58210e81e68c836da54fb0338fdb4e6071f.zip
as3525v2: make clear the SD code is debug only and display a message
comment out printing of registers in the isr git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24736 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 9d5b19c08d..9370e8fe62 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -231,7 +231,7 @@ void INT_NAND(void)
// wakeup_signal(&transfer_completion_signal);
MCI_CLEAR = status;
- static int x = 0;
+ //static int x = 0;
switch(status)
{
case 0x4: /* cmd received ? */
@@ -241,9 +241,11 @@ void INT_NAND(void)
case 0x820: /* ? 1 time while copy from FIFO (not DMA) */
case 0x20: /* ? rx fifo empty */
break;
+#if 0
default:
printf("%2d NAND 0x%x", ++x, status);
int delay = 0x100000; while(delay--) ;
+#endif
}
/*
* 0x48 = some kind of status
@@ -262,7 +264,7 @@ void INT_NAND(void)
* read resp (6, 7, 12, 42) : while bit 9 is unset ;
*
*/
- printf("%x %x", status, (*(volatile unsigned long *) (SD_BASE+0x48)));
+ //printf("%x %x", status, (*(volatile unsigned long *) (SD_BASE+0x48)));
//while(!button_read_device());
//while(button_read_device());
@@ -588,6 +590,21 @@ static int sd_wait_for_state(unsigned int state)
static int sd_transfer_sectors(unsigned long start, int count, void* buf, bool write)
{
+#if 1
+ /* This is debug code, not functional yet */
+ line = 0;
+ lcd_clear_display();
+ printf("Entering SD transfer");
+ printf("THIS IS DEBUG CODE !");
+ printf("");
+ printf("All your controllers");
+ printf("are belong to us.");
+ volatile int delay = 0x500000;
+ while(delay--) ;
+ line = 0;
+ lcd_clear_display();
+#endif /* debug warning */
+
int ret = 0;
if((int)buf & 3)