summaryrefslogtreecommitdiff
path: root/firmware/src/start/Cstartup.S
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-21 16:25:01 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-21 16:25:01 +0000
commitcf4d20a642bf5ecc1f065c35a5479d0d2276f241 (patch)
treeeba2feb64d7adb5ef93665d9cad2c935b82b4b52 /firmware/src/start/Cstartup.S
parent817d9211d5f3c608dc231e1d3232d22294f9c782 (diff)
DFU works (fix various bugs such as forgetting to shift the page number, checking for invalid page numbers, off-by-one error in flash page calculation, etc.)
git-svn-id: https://svn.openpcd.org:2342/trunk@215 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/src/start/Cstartup.S')
-rw-r--r--firmware/src/start/Cstartup.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/src/start/Cstartup.S b/firmware/src/start/Cstartup.S
index 6861750..b154672 100644
--- a/firmware/src/start/Cstartup.S
+++ b/firmware/src/start/Cstartup.S
@@ -84,8 +84,15 @@
.equ AT91C_BASE_PIOA, (0xFFFFF400)
.equ AT91C_ID_PIOA, (2)
.equ PIOA_PDSR, (0x3c)
+#if defined(PCD)
.equ PIO_BOOTLDR, (1 << 27)
- #.equ PIO_BOOTLDR, (1 << 6)
+#elif defined(PICC)
+ .equ PIO_BOOTLDR, (1 << 6)
+#elif defined(OLIMEX)
+ .equ PIO_BOOTLDR, (1 << 19)
+#else
+#error please define PIO_BOOTLDR
+#endif
/* #include "AT91SAM7S64_inc.h" */
personal git repositories of Harald Welte. Your mileage may vary