diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-09 06:17:21 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-09 06:17:21 +0000 |
commit | aef27e1f0c69516bbcf13d7986e204502d708ec4 (patch) | |
tree | 127bc7a9a71e8856247a6ea52805c1666a92c26c /firmware/export | |
parent | 308f21dc68ca1387c7003e9d185b717af7d575bf (diff) | |
download | rockbox-aef27e1f0c69516bbcf13d7986e204502d708ec4.tar.gz rockbox-aef27e1f0c69516bbcf13d7986e204502d708ec4.zip |
Sansav2 Bootloader
Adds read-only SD driver, largely copied from ata-sd-pp.c
Only tested on the embedded SD, on the Clip
First steps to build a Normal firmware
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19045 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-clip.h | 12 | ||||
-rw-r--r-- | firmware/export/usb.h | 1 |
2 files changed, 10 insertions, 3 deletions
diff --git a/firmware/export/config-clip.h b/firmware/export/config-clip.h index cfeaea770c..9bc4a14bf5 100644 --- a/firmware/export/config-clip.h +++ b/firmware/export/config-clip.h | |||
@@ -6,7 +6,7 @@ | |||
6 | /* For Rolo and boot loader */ | 6 | /* For Rolo and boot loader */ |
7 | #define MODEL_NUMBER 40 | 7 | #define MODEL_NUMBER 40 |
8 | #define MODEL_NAME "Sandisk Sansa Clip" | 8 | #define MODEL_NAME "Sandisk Sansa Clip" |
9 | #define FIRMWARE_OFFSET_FILE_DATA 0 | 9 | #define FIRMWARE_OFFSET_FILE_DATA 8 |
10 | #define FIRMWARE_OFFSET_FILE_CRC 0 | 10 | #define FIRMWARE_OFFSET_FILE_CRC 0 |
11 | 11 | ||
12 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | 12 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) |
@@ -84,7 +84,11 @@ | |||
84 | #define CODEC_SIZE 0x100000 | 84 | #define CODEC_SIZE 0x100000 |
85 | 85 | ||
86 | /* The number of bytes reserved for loadable plugins */ | 86 | /* The number of bytes reserved for loadable plugins */ |
87 | #if 0 /* The plugin buffer doesn't fit in the 2MB memory */ | ||
87 | #define PLUGIN_BUFFER_SIZE 0x80000 | 88 | #define PLUGIN_BUFFER_SIZE 0x80000 |
89 | #else | ||
90 | #define PLUGIN_BUFFER_SIZE 0 | ||
91 | #endif | ||
88 | 92 | ||
89 | #define AB_REPEAT_ENABLE 1 | 93 | #define AB_REPEAT_ENABLE 1 |
90 | 94 | ||
@@ -137,8 +141,8 @@ | |||
137 | #define CONFIG_LCD LCD_SSD1303 | 141 | #define CONFIG_LCD LCD_SSD1303 |
138 | 142 | ||
139 | #ifndef BOOTLOADER | 143 | #ifndef BOOTLOADER |
140 | #define HAVE_MULTIVOLUME | 144 | |
141 | #define HAVE_HOTSWAP | 145 | #if 0 /* disabled since there is no USB driver */ |
142 | 146 | ||
143 | /* USB On-the-go */ | 147 | /* USB On-the-go */ |
144 | #define CONFIG_USBOTG USBOTG_ARC | 148 | #define CONFIG_USBOTG USBOTG_ARC |
@@ -149,6 +153,8 @@ | |||
149 | #define USB_PRODUCT_ID 0x7433 | 153 | #define USB_PRODUCT_ID 0x7433 |
150 | #endif /* BOOTLOADER */ | 154 | #endif /* BOOTLOADER */ |
151 | 155 | ||
156 | #endif | ||
157 | |||
152 | /* Virtual LED (icon) */ | 158 | /* Virtual LED (icon) */ |
153 | #define CONFIG_LED LED_VIRTUAL | 159 | #define CONFIG_LED LED_VIRTUAL |
154 | 160 | ||
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index 08ae27999a..4275fa9c6a 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -63,6 +63,7 @@ enum { | |||
63 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | 63 | #define USBPOWER_BTN_IGNORE BUTTON_POWER |
64 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ | 64 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ |
65 | (CONFIG_KEYPAD == SANSA_C200_PAD) || \ | 65 | (CONFIG_KEYPAD == SANSA_C200_PAD) || \ |
66 | (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \ | ||
66 | (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) | 67 | (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) |
67 | #define USBPOWER_BUTTON BUTTON_SELECT | 68 | #define USBPOWER_BUTTON BUTTON_SELECT |
68 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | 69 | #define USBPOWER_BTN_IGNORE BUTTON_POWER |