From aef27e1f0c69516bbcf13d7986e204502d708ec4 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 9 Nov 2008 06:17:21 +0000 Subject: 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 --- firmware/export/config-clip.h | 12 +++++++++--- firmware/export/usb.h | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'firmware/export') 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 @@ /* For Rolo and boot loader */ #define MODEL_NUMBER 40 #define MODEL_NAME "Sandisk Sansa Clip" -#define FIRMWARE_OFFSET_FILE_DATA 0 +#define FIRMWARE_OFFSET_FILE_DATA 8 #define FIRMWARE_OFFSET_FILE_CRC 0 #define HW_SAMPR_CAPS (SAMPR_CAP_44) @@ -84,7 +84,11 @@ #define CODEC_SIZE 0x100000 /* The number of bytes reserved for loadable plugins */ +#if 0 /* The plugin buffer doesn't fit in the 2MB memory */ #define PLUGIN_BUFFER_SIZE 0x80000 +#else +#define PLUGIN_BUFFER_SIZE 0 +#endif #define AB_REPEAT_ENABLE 1 @@ -137,8 +141,8 @@ #define CONFIG_LCD LCD_SSD1303 #ifndef BOOTLOADER -#define HAVE_MULTIVOLUME -#define HAVE_HOTSWAP + +#if 0 /* disabled since there is no USB driver */ /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC @@ -149,6 +153,8 @@ #define USB_PRODUCT_ID 0x7433 #endif /* BOOTLOADER */ +#endif + /* Virtual LED (icon) */ #define CONFIG_LED LED_VIRTUAL 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 { #define USBPOWER_BTN_IGNORE BUTTON_POWER #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ (CONFIG_KEYPAD == SANSA_C200_PAD) || \ + (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \ (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) #define USBPOWER_BUTTON BUTTON_SELECT #define USBPOWER_BTN_IGNORE BUTTON_POWER -- cgit v1.2.3