Jesper Nilsson | d207cf5 | 2008-01-17 11:33:45 +0100 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * Simple testcode to download by the rescue block. |
Jesper Nilsson | d207cf5 | 2008-01-17 11:33:45 +0100 | [diff] [blame] | 3 | * Just lights some LEDs to show it was downloaded correctly. |
| 4 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | * Copyright (C) 1999 Axis Communications AB |
| 6 | */ |
| 7 | |
| 8 | #define ASSEMBLER_MACROS_ONLY |
Jesper Nilsson | 556dcee | 2008-10-21 17:45:58 +0200 | [diff] [blame] | 9 | #include <arch/sv_addr_ag.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
| 11 | .text |
| 12 | |
| 13 | nop |
| 14 | nop |
| 15 | moveq -1, $r2 |
| 16 | move.b $r2, [R_PORT_PA_DIR] |
| 17 | moveq 0, $r2 |
Jesper Nilsson | d207cf5 | 2008-01-17 11:33:45 +0100 | [diff] [blame] | 18 | move.b $r2, [R_PORT_PA_DATA] |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
| 20 | endless: |
| 21 | nop |
| 22 | ba endless |
| 23 | nop |
| 24 | |