Corrected PLLA setting to remove error in BRG at 115k. Removed 2 files
[openwrt.git] / target / linux / at91-2.6 / image / romboot / patches / 005-erase-flash.patch
1 --- romboot.old/main.cpp        2007-04-05 15:51:51.000000000 +0200
2 +++ romboot/main.cpp    2007-04-10 10:33:10.000000000 +0200
3 @@ -34,7 +34,7 @@
4  #define DELAY_MAIN_FREQ        1000
5  #define DISP_LINE_LEN 16
6  
7 -#define COMPACT 1
8 +//#define COMPACT 1
9  
10  //* prototypes
11  extern void AT91F_DBGU_Printk(char *);
12 @@ -65,6 +65,7 @@
13         "3: Copy SD-Card\n\r"
14    "4: Start U-BOOT\n\r"
15    "5: Clear bootloder\n\r"
16 +       "6: Erase entire flash\n\r"
17  };
18  
19  //* Globales variables 
20 @@ -555,6 +556,17 @@
21                 command = 0;
22                 break;
23             
24 +               case '6':
25 +               {
26 +                                       int *i;
27 +       
28 +                                       for(i = (int *)0x20000000; i < (int *)0x20840000; i++)
29 +                                       *i = 0;
30 +               }
31 +               write_dataflash(0xc0000000, 0x20000000, 0x840000);
32 +               command = 0;
33 +               break;
34 +           
35                                 default:
36                 command = 0;
37                 break;