]> hackdaworld.org Git - my-code/arm.git/commitdiff
wrong bank0/2 addresses
authorhackbard <hackbard@staubsauger.localdomain>
Wed, 15 Aug 2007 16:50:00 +0000 (18:50 +0200)
committerhackbard <hackbard@staubsauger.localdomain>
Wed, 15 Aug 2007 16:50:00 +0000 (18:50 +0200)
betty/fwflash.c

index 4462654276e9d69b119e6238b9ab4ad224ed1267..8d837e780cb5e2e5b2ca63ada07df815ab70b55e 100644 (file)
@@ -18,8 +18,6 @@
 /* band 0/2 addr */
 #define BANK0                  0x80000000
 #define BANK2                  0x82000000
-#define B0HB                   0x00000000
-#define B2HB                   0x02000000
 
 /* commands */
 #define CMD_READ               'R'
@@ -143,9 +141,9 @@ SEND_OK
                        break;  
                case CMD_CHIP_ERASE:
                        if(buf[0]=='0')
-                               addr=B0HB;
+                               addr=BANK0;
                        else if(buf[0]=='2')
-                               addr=B2HB;
+                               addr=BANK2;
                        else
                                break;
                        // cycle 1