From: Erik M. <er...@us...> - 2001-07-17 14:18:41
|
Update of /cvsroot/blob/blob/src In directory usw-pr-cvs1:/tmp/cvs-serv11810 Modified Files: Tag: blob_1_0_9_hack ledasm.S start.S Log Message: minor changes to make porting blob easier Index: ledasm.S =================================================================== RCS file: /cvsroot/blob/blob/src/Attic/ledasm.S,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- ledasm.S 2001/07/16 23:19:40 1.1.2.3 +++ ledasm.S 2001/07/17 14:18:38 1.1.2.4 @@ -38,18 +38,14 @@ .text #if defined ASSABET -LED: .long 0x00200000 -#elif defined CLART -LED: .long 0x00800000 -#elif defined LART -LED: .long 0x00800000 -#elif defined NESA -LED: .long 0x00800000 +LED: .long 0x00020000 /* GPIO 17 */ +#elif (defined CLART) || (defined LART) || (defined NESA) +LED: .long 0x00800000 /* GPIO 23 */ #elif defined PLEB -LED: .long 0x00010000 +LED: .long 0x00010000 /* GPIO 16 */ #else -LED: .long 0x00000000 #warning "FIXME: Include code to turn on one of the LEDs on your board" +LED: .long 0x00000000 /* safe mode: no GPIO, so no LED */ #endif Index: start.S =================================================================== RCS file: /cvsroot/blob/blob/src/start.S,v retrieving revision 1.1.1.1.2.8 retrieving revision 1.1.1.1.2.9 diff -u -r1.1.1.1.2.8 -r1.1.1.1.2.9 --- start.S 2001/07/16 23:21:56 1.1.1.1.2.8 +++ start.S 2001/07/17 14:18:38 1.1.1.1.2.9 @@ -75,10 +75,14 @@ /* The initial CPU speed. Note that the SA11x0 CPUs can be safely overclocked: * 190 MHz CPUs are able to run at 221 MHz, 133 MHz CPUs can do 206 Mhz. */ -#if defined SHANNON +#if (defined ASSABET) || (defined CLART) || (defined LART) \ + || (defined NESA) || (defined NESA) +cpuspeed: .long 0x0b /* 221 MHz */ +#elif defined SHANNON cpuspeed: .long 0xa0 /* 206 MHz */ #else -cpuspeed: .long 0x0b /* 221 MHz */ +#warning "FIXME: Include code to use the correct clock speed for your board" +cpuspeed: .long 0x05 /* safe 133 MHz speed */ #endif @@ -140,7 +144,7 @@ bne mem_test_loop /* the first megabyte is OK, so let's copy ourself to it */ - mov r0, #0x400 + mov r0, #0x400 /* skip first 1024 bytes */ ldr r1, MEM_START mov r2, #(128 * 1024) /* blob is 128kB */ @@ -150,14 +154,12 @@ cmp r0, r2 ble copy_loop - /* set up the stack pointer */ - ldr r1, MEM_START - add r1, r1, #(1024 * 1024) + ldr r0, MEM_START + add r1, r0, #(1024 * 1024) sub sp, r1, #0x04 /* blob is copied to ram, so jump to it */ - ldr r0, MEM_START mov pc, r0 |