Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.

My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ascodec-as3525.c: 

#define DEBUG

void dbg_i2c(int *t)
{
    int s = disable_irq_save();
    t[0] = int_audio_ctr;
    t[1] = int_chg_finished;
    t[2] = int_chg_insert;
    t[3] = int_chg_remove;
    t[4] = int_usb_insert;
    t[5] = int_usb_remove;
    t[6] = int_rtc;
    t[7] = int_adc;
    restore_irq(s);
}


diff --git a/firmware/target/arm/as3525/debug-as3525.c b/firmware/target/arm/as3525/debug-as3525.c
index 75cce72..2993bce 100644
--- a/firmware/target/arm/as3525/debug-as3525.c
+++ b/firmware/target/arm/as3525/debug-as3525.c
@@ -283,6 +283,7 @@ bool __dbg_hw_info(void)
 #endif
         lcd_clear_display();
         line = 0;
+#if 0
         lcd_puts(0, line++, "[Clock Frequencies:]");
         lcd_puts(0, line++, "     SET       ACTUAL");
 #if CONFIG_CPU == AS3525
@@ -301,7 +302,14 @@ bool __dbg_hw_info(void)
                                                  calc_freq(CLK_EXTMEM)/1000000);
         lcd_putsf(0, line++, "PCLK:%3dMHz    %3dMHz", AS3525_PCLK_FREQ/1000000,
                                                    calc_freq(CLK_PCLK)/1000000);
-
+#else
+        int x[8];
+        extern void dbg_i2c(int*);
+        dbg_i2c(x);
+        int i;
+        for(i=0; i<8; i++)
+            lcd_putsf(0, line++, "XX %d : %d", i, x[i]);
+#endif
 #if LCD_HEIGHT < 176  /* clip  */
         lcd_update();
         int btn = button_get_w_tmo(HZ/10);
@@ -365,8 +373,8 @@ bool __dbg_hw_info(void)
         line = 0;
 #endif  /*  LCD_HEIGHT < 176 */

-        lcd_putsf(0, line++, "MMU :  %s CVDDP:%4d", (read_cp15() & CP15_MMU) ?
-                                        " on" : "off", adc_read(ADC_CVDD) * 25);
+//        lcd_putsf(0, line++, "MMU :  %s CVDDP:%4d", (read_cp15() & CP15_MMU) ?
+//                                        " on" : "off", adc_read(ADC_CVDD) * 25);
         lcd_putsf(0, line++, "Icache:%s Dcache:%s",
                                       (read_cp15() & CP15_IC)  ? " on" : "off",
                                       (read_cp15() & CP15_DC)  ? " on" : "off");