diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/as3514.h | 2 | ||||
-rwxr-xr-x | firmware/export/config-sa9200.h | 167 | ||||
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/export/usb.h | 3 |
4 files changed, 174 insertions, 2 deletions
diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h index f6f759b75c..6edb5878f3 100644 --- a/firmware/export/as3514.h +++ b/firmware/export/as3514.h | |||
@@ -77,7 +77,7 @@ extern void audiohw_set_sample_rate(int sampling_control); | |||
77 | #define VOLUME_MIN -735 | 77 | #define VOLUME_MIN -735 |
78 | #define VOLUME_MAX 60 | 78 | #define VOLUME_MAX 60 |
79 | 79 | ||
80 | #if defined(SANSA_E200) || defined(SANSA_C200) | 80 | #if defined(SANSA_E200) || defined(SANSA_C200) || defined(PHILIPS_SA9200) |
81 | #define AS3514_I2C_ADDR 0x46 | 81 | #define AS3514_I2C_ADDR 0x46 |
82 | #endif | 82 | #endif |
83 | 83 | ||
diff --git a/firmware/export/config-sa9200.h b/firmware/export/config-sa9200.h new file mode 100755 index 0000000000..9cdfe6bba7 --- /dev/null +++ b/firmware/export/config-sa9200.h | |||
@@ -0,0 +1,167 @@ | |||
1 | /* | ||
2 | * This config file is for the Philips GoGear SA9200 | ||
3 | */ | ||
4 | #define TARGET_TREE /* this target is using the target tree system */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 26 | ||
8 | #define MODEL_NAME "Philips GoGear SA200" | ||
9 | |||
10 | #define HW_SAMPR_CAPS (SAMPR_CAP_44) | ||
11 | |||
12 | /* define this if you have a bitmap LCD display */ | ||
13 | #define HAVE_LCD_BITMAP | ||
14 | |||
15 | /* define this if you have a colour LCD */ | ||
16 | #define HAVE_LCD_COLOR | ||
17 | |||
18 | /* define this if you want album art for this target */ | ||
19 | #define HAVE_ALBUMART | ||
20 | |||
21 | /* define this if you have a light associated with the buttons */ | ||
22 | #define HAVE_BUTTON_LIGHT | ||
23 | |||
24 | /* define this if you have access to the quickscreen */ | ||
25 | #define HAVE_QUICKSCREEN | ||
26 | |||
27 | /* define this if you have access to the pitchscreen */ | ||
28 | #define HAVE_PITCHSCREEN | ||
29 | |||
30 | /* define this if you would like tagcache to build on this target */ | ||
31 | #define HAVE_TAGCACHE | ||
32 | |||
33 | /* LCD dimensions */ | ||
34 | #define LCD_WIDTH 128 | ||
35 | #define LCD_HEIGHT 160 | ||
36 | #define LCD_DEPTH 16 /* 65536 colours */ | ||
37 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
38 | |||
39 | /* define this if you have LCD enable function */ | ||
40 | /* #define HAVE_LCD_ENABLE */ | ||
41 | |||
42 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
43 | should be defined as well. */ | ||
44 | /* #define HAVE_LCD_SLEEP */ | ||
45 | |||
46 | /* define this if you can flip your LCD */ | ||
47 | /* #define HAVE_LCD_FLIP */ | ||
48 | |||
49 | /* define this if you can invert the colours on your LCD */ | ||
50 | /* #define HAVE_LCD_INVERT */ | ||
51 | |||
52 | /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ | ||
53 | |||
54 | #define CONFIG_KEYPAD PHILIPS_SA9200_PAD | ||
55 | |||
56 | /* Define this if you do software codec */ | ||
57 | #define CONFIG_CODEC SWCODEC | ||
58 | |||
59 | /* There is no hardware tone control */ | ||
60 | #define HAVE_SW_TONE_CONTROLS | ||
61 | |||
62 | /* The PP5024 has a built-in AustriaMicrosystems AS3514 */ | ||
63 | #define HAVE_AS3514 | ||
64 | |||
65 | /* define this if you have a real-time clock */ | ||
66 | #ifndef BOOTLOADER | ||
67 | #define CONFIG_RTC RTC_AS3514 | ||
68 | #endif | ||
69 | |||
70 | /* Define this if you have a software controlled poweroff */ | ||
71 | #define HAVE_SW_POWEROFF | ||
72 | |||
73 | /* Some Sansa E200s seem to be FAT16 formatted */ | ||
74 | #define HAVE_FAT16SUPPORT | ||
75 | |||
76 | /* The number of bytes reserved for loadable codecs */ | ||
77 | #define CODEC_SIZE 0x80000 | ||
78 | |||
79 | /* The number of bytes reserved for loadable plugins */ | ||
80 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
81 | |||
82 | #define AB_REPEAT_ENABLE 1 | ||
83 | |||
84 | /* Define this for LCD backlight available */ | ||
85 | #define HAVE_BACKLIGHT | ||
86 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
87 | |||
88 | /* Main LCD backlight brightness range and defaults */ | ||
89 | #define MIN_BRIGHTNESS_SETTING 1 | ||
90 | #define MAX_BRIGHTNESS_SETTING 12 | ||
91 | #define DEFAULT_BRIGHTNESS_SETTING 6 | ||
92 | |||
93 | /* define this if you have a flash memory storage */ | ||
94 | #define HAVE_FLASH_STORAGE | ||
95 | |||
96 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | ||
97 | #define HAVE_ATA_SD | ||
98 | |||
99 | #define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */ | ||
100 | #define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */ | ||
101 | #define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */ | ||
102 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
103 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
104 | |||
105 | /* Hardware controlled charging? FIXME */ | ||
106 | #define CONFIG_CHARGING CHARGING_SIMPLE | ||
107 | |||
108 | /* define this if the unit can be powered or charged via USB */ | ||
109 | #define HAVE_USB_POWER | ||
110 | |||
111 | /** Non-simulator section **/ | ||
112 | #ifndef SIMULATOR | ||
113 | |||
114 | /* Define this if you have a PortalPlayer PP5024 */ | ||
115 | #define CONFIG_CPU PP5024 | ||
116 | |||
117 | /* Define this if you want to use the PP5024 i2c interface */ | ||
118 | #define CONFIG_I2C I2C_PP5024 | ||
119 | |||
120 | /* define this if the hardware can be powered off while charging */ | ||
121 | /* Sansa can't be powered off while charging */ | ||
122 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ | ||
123 | |||
124 | /* The start address index for ROM builds */ | ||
125 | #define ROM_START 0x00000000 | ||
126 | |||
127 | /* Define this to the CPU frequency */ | ||
128 | #define CPU_FREQ 75000000 | ||
129 | |||
130 | /* Type of LCD TODO: hopefully the same as the x5 but check this*/ | ||
131 | #define CONFIG_LCD LCD_SA9200 | ||
132 | |||
133 | /* #define USB_IPODSTYLE */ | ||
134 | |||
135 | /* USB On-the-go */ | ||
136 | #define CONFIG_USBOTG USBOTG_ARC | ||
137 | |||
138 | /* enable these for the experimental usb stack */ | ||
139 | #define HAVE_USBSTACK | ||
140 | #define USB_VENDOR_ID 0x0471 | ||
141 | #define USB_PRODUCT_ID 0x014f | ||
142 | |||
143 | /* WARNING! Enable Rockbox USB mass storage. */ | ||
144 | #ifndef BOOTLOADER | ||
145 | #define USE_ROCKBOX_USB | ||
146 | #endif | ||
147 | |||
148 | /* Virtual LED (icon) */ | ||
149 | #define CONFIG_LED LED_VIRTUAL | ||
150 | |||
151 | /* Define this if you have adjustable CPU frequency */ | ||
152 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
153 | |||
154 | #define MI4_FORMAT | ||
155 | #define BOOTFILE_EXT "mi4" | ||
156 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
157 | #define BOOTDIR "/.rockbox" | ||
158 | |||
159 | /* These values are unused, but need to be defined */ | ||
160 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 | ||
161 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 | ||
162 | |||
163 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
164 | |||
165 | #define INCLUDE_TIMEOUT_API | ||
166 | |||
167 | #endif /* SIMULATOR */ | ||
diff --git a/firmware/export/config.h b/firmware/export/config.h index 51c79abccf..c200355872 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -82,6 +82,7 @@ | |||
82 | #define CREATIVEZVM_PAD 24 | 82 | #define CREATIVEZVM_PAD 24 |
83 | #define SANSA_M200_PAD 25 | 83 | #define SANSA_M200_PAD 25 |
84 | #define CREATIVEZV_PAD 26 | 84 | #define CREATIVEZV_PAD 26 |
85 | #define PHILIPS_SA9200_PAD 27 | ||
85 | 86 | ||
86 | /* CONFIG_REMOTE_KEYPAD */ | 87 | /* CONFIG_REMOTE_KEYPAD */ |
87 | #define H100_REMOTE 1 | 88 | #define H100_REMOTE 1 |
@@ -120,6 +121,7 @@ | |||
120 | #define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */ | 121 | #define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */ |
121 | #define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */ | 122 | #define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */ |
122 | #define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */ | 123 | #define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */ |
124 | #define LCD_SA9200 25 /* as used by the Philips SA9200 */ | ||
123 | 125 | ||
124 | /* LCD_PIXELFORMAT */ | 126 | /* LCD_PIXELFORMAT */ |
125 | #define HORIZONTAL_PACKING 1 | 127 | #define HORIZONTAL_PACKING 1 |
@@ -258,6 +260,8 @@ | |||
258 | #include "config-creativezvm60gb.h" | 260 | #include "config-creativezvm60gb.h" |
259 | #elif defined(CREATIVE_ZV) | 261 | #elif defined(CREATIVE_ZV) |
260 | #include "config-creativezv.h" | 262 | #include "config-creativezv.h" |
263 | #elif defined(PHILIPS_SA9200) | ||
264 | #include "config-sa9200.h" | ||
261 | #else | 265 | #else |
262 | /* no known platform */ | 266 | /* no known platform */ |
263 | #endif | 267 | #endif |
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index ff1f55cd35..0590f702c5 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -60,7 +60,8 @@ enum { | |||
60 | #define USBPOWER_BUTTON BUTTON_RIGHT | 60 | #define USBPOWER_BUTTON BUTTON_RIGHT |
61 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | 61 | #define USBPOWER_BTN_IGNORE BUTTON_POWER |
62 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ | 62 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ |
63 | (CONFIG_KEYPAD == SANSA_C200_PAD) | 63 | (CONFIG_KEYPAD == SANSA_C200_PAD) || \ |
64 | (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) | ||
64 | #define USBPOWER_BUTTON BUTTON_SELECT | 65 | #define USBPOWER_BUTTON BUTTON_SELECT |
65 | #define USBPOWER_BTN_IGNORE BUTTON_POWER | 66 | #define USBPOWER_BTN_IGNORE BUTTON_POWER |
66 | #endif | 67 | #endif |