From: Russ D. <ru...@us...> - 2001-07-04 02:07:08
|
Update of /cvsroot/blob/blob/src In directory usw-pr-cvs1:/tmp/cvs-serv14379/src Modified Files: Tag: blob_1_0_9_hack main.c start.S Log Message: NESA board support Index: main.c =================================================================== RCS file: /cvsroot/blob/blob/src/main.c,v retrieving revision 1.1.1.1.2.1 retrieving revision 1.1.1.1.2.2 diff -u -r1.1.1.1.2.1 -r1.1.1.1.2.2 --- main.c 2001/06/27 22:50:48 1.1.1.1.2.1 +++ main.c 2001/07/03 20:44:34 1.1.1.1.2.2 @@ -225,6 +225,8 @@ theKernel(0, 16); #elif defined LART theKernel(0, 27); +#elif defined NESA + theKernel(0, 75); #elif defined PLEB #warning "This is NOT the correct PLEB architecture number!" theKernel(0, 18); Index: start.S =================================================================== RCS file: /cvsroot/blob/blob/src/start.S,v retrieving revision 1.1.1.1.2.1 retrieving revision 1.1.1.1.2.2 diff -u -r1.1.1.1.2.1 -r1.1.1.1.2.2 --- start.S 2001/06/27 22:50:48 1.1.1.1.2.1 +++ start.S 2001/07/03 20:44:34 1.1.1.1.2.2 @@ -266,6 +266,15 @@ /* The LED controls FORCE_ON, so turn it on here */ str r1, [r2, #0x08] + +#elif defined NESA + /* Bit 23 is the LED, according to Russ */ + mov r1, #0x00800000 + str r1, [r2, #0x04] + + /* Turn the LED on here for the fun of it, eh? */ + str r1, [r2, #0x08] + #elif defined PLEB #warning "FIXME: Include code to turn on one of the PLEB LEDs over here" #else @@ -298,6 +307,18 @@ ands r0, r0, #0x04 bne cpy_ext2int + /* Put the main flash to the correct speed */ + mov r2, #0xAD000000 + add r2, r2, #0x008C0000 + add r2, r2, #0x00004800 + add r2, r2, #0x00000088 + str r2, [r1, #0x10] + + adr r0, int_flash_str + bl print_str +#endif + +#if defined NESA /* Put the main flash to the correct speed */ mov r2, #0xAD000000 add r2, r2, #0x008C0000 |