diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-09-29 21:54:29 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-09-29 21:54:29 +0000 |
commit | 4e4231069ac7c0eac28443355ca9a6905823ea53 (patch) | |
tree | 65b24b0996428e968259986daa05d3d84b88e45b | |
parent | 36056003b9fccb74706dd8585ae60bf8f9758fd0 (diff) | |
download | rockbox-4e4231069ac7c0eac28443355ca9a6905823ea53.tar.gz rockbox-4e4231069ac7c0eac28443355ca9a6905823ea53.zip |
Ondio support for flash boot loader (yes, I have flashed my Ondio)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5131 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | flash/bootloader/Makefile | 2 | ||||
-rw-r--r-- | flash/bootloader/bootloader.c | 4 | ||||
-rw-r--r-- | flash/bootloader/bootloader.h | 8 |
3 files changed, 13 insertions, 1 deletions
diff --git a/flash/bootloader/Makefile b/flash/bootloader/Makefile index ae56cf9425..3c7171cfb8 100644 --- a/flash/bootloader/Makefile +++ b/flash/bootloader/Makefile | |||
@@ -23,7 +23,7 @@ LDS := $(TARGET).lds | |||
23 | ifndef PLATFORM | 23 | ifndef PLATFORM |
24 | not_configured: | 24 | not_configured: |
25 | @echo "No platform given." | 25 | @echo "No platform given." |
26 | @echo "Use make PLATFORM=PLAYER|RECORDER|RECORDER|FM {NO_ROM=1}" | 26 | @echo "Use make PLATFORM=PLAYER|RECORDER|RECORDER|FM|ONDIO {NO_ROM=1}" |
27 | ##else | 27 | ##else |
28 | ##configured: | 28 | ##configured: |
29 | ## @echo "Building bootloader for platform "$(PLATFORM) | 29 | ## @echo "Building bootloader for platform "$(PLATFORM) |
diff --git a/flash/bootloader/bootloader.c b/flash/bootloader/bootloader.c index 543a950129..a6fe91d283 100644 --- a/flash/bootloader/bootloader.c +++ b/flash/bootloader/bootloader.c | |||
@@ -143,6 +143,10 @@ void PlatformInit(void) | |||
143 | PACR2 &= 0xFBFF; // GPIO for PA5 | 143 | PACR2 &= 0xFBFF; // GPIO for PA5 |
144 | PAIOR |= 0x20; // make PA5 an output (low by default) | 144 | PAIOR |= 0x20; // make PA5 an output (low by default) |
145 | } | 145 | } |
146 | #elif defined PLATFORM_ONDIO | ||
147 | BRR1 = 0x0019; // 14400 Baud for monitor | ||
148 | PBDR |= 0x20; // set PB5 to keep power (fixes the ON-holding problem) | ||
149 | PBIOR |= 0x20; // make PB5 an output | ||
146 | #endif | 150 | #endif |
147 | 151 | ||
148 | // platform-independent inits | 152 | // platform-independent inits |
diff --git a/flash/bootloader/bootloader.h b/flash/bootloader/bootloader.h index eee61c4809..342ebb4991 100644 --- a/flash/bootloader/bootloader.h +++ b/flash/bootloader/bootloader.h | |||
@@ -57,6 +57,14 @@ typedef struct | |||
57 | #define F2_UPPER 544 | 57 | #define F2_UPPER 544 |
58 | #define F3_LOWER 700 | 58 | #define F3_LOWER 700 |
59 | #define F3_UPPER 1023 | 59 | #define F3_UPPER 1023 |
60 | #elif defined PLATFORM_ONDIO | ||
61 | #define CHANNEL 4 | ||
62 | #define F1_LOWER 0x2EF // Ondio has no F1 button, | ||
63 | #define F1_UPPER 0x3FF // so we use "Right". | ||
64 | #define F2_LOWER 0x19D // Ondio has no F2 button, | ||
65 | #define F2_UPPER 0x245 // so we use "Up". | ||
66 | #define F3_LOWER 0x246 // Ondio has no F3 button, | ||
67 | #define F3_UPPER 0x2EE // so we use "Left". | ||
60 | #else | 68 | #else |
61 | #error ("No platform given!") | 69 | #error ("No platform given!") |
62 | #endif | 70 | #endif |