summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-iaudiom5.h160
-rw-r--r--firmware/export/config.h2
2 files changed, 162 insertions, 0 deletions
diff --git a/firmware/export/config-iaudiom5.h b/firmware/export/config-iaudiom5.h
new file mode 100644
index 0000000000..2c52bc0730
--- /dev/null
+++ b/firmware/export/config-iaudiom5.h
@@ -0,0 +1,160 @@
1/*
2 * This config file is for iAudio M5
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 17
8
9/* define this if you have recording possibility */
10#define HAVE_RECORDING
11
12/* define the bitmask of hardware sample rates */
13#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
14
15/* define the bitmask of recording sample rates */
16#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
17
18/* define this if you have a bitmap LCD display */
19#define HAVE_LCD_BITMAP
20
21/* define this if you can flip your LCD */
22#define HAVE_LCD_FLIP
23
24/* define this if you can invert the colours on your LCD */
25#define HAVE_LCD_INVERT
26
27/* define this if you have access to the quickscreen */
28#define HAVE_QUICKSCREEN
29
30/* define this if you have access to the pitchscreen */
31#define HAVE_PITCHSCREEN
32
33/* define this if you would like tagcache to build on this target */
34#define HAVE_TAGCACHE
35
36/* LCD dimensions */
37#define LCD_WIDTH 160
38#define LCD_HEIGHT 128
39#define LCD_DEPTH 2
40
41#define LCD_PIXELFORMAT VERTICAL_PACKING
42
43/* remote LCD */
44#define LCD_REMOTE_WIDTH 128
45#define LCD_REMOTE_HEIGHT 96
46#define LCD_REMOTE_DEPTH 2
47
48#define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
49
50#define CONFIG_KEYPAD IAUDIO_X5_PAD
51
52#define AB_REPEAT_ENABLE 1
53#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
54
55/* Define this if you do software codec */
56#define CONFIG_CODEC SWCODEC
57
58/* define this if you have a real-time clock */
59#define CONFIG_RTC RTC_PCF50606
60
61/* Define this if you have an remote lcd */
62#define HAVE_REMOTE_LCD
63
64#define CONFIG_LCD LCD_S1D15E06
65
66/* Define this for LCD backlight available */
67#define CONFIG_BACKLIGHT BL_X5 /* PCF50606 I2C */
68/* #define HAVE_BACKLIGHT_BRIGHTNESS TODO: not yet known */
69
70/* Define this if you have a software controlled poweroff */
71#define HAVE_SW_POWEROFF
72
73/* The number of bytes reserved for loadable codecs */
74#define CODEC_SIZE 0x80000
75
76/* The number of bytes reserved for loadable plugins */
77#define PLUGIN_BUFFER_SIZE 0x80000
78
79#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
80
81#define HAVE_TLV320
82
83/* TLV320 has no tone controls, so we use the software ones */
84#define HAVE_SW_TONE_CONTROLS
85
86#ifndef SIMULATOR
87
88/* Define this if your LCD can set contrast */
89#define HAVE_LCD_CONTRAST
90
91/* Define this if you have a Motorola SCF5250 */
92#define CONFIG_CPU MCF5250
93
94/* Define this if you want to use coldfire's i2c interface */
95#define CONFIG_I2C I2C_COLDFIRE
96
97/* Hardware controlled charging? FIXME */
98#define CONFIG_CHARGING CHARGING_SIMPLE
99
100/* define this if the hardware can be powered off while charging */
101#define HAVE_POWEROFF_WHILE_CHARGING
102
103/* The size of the flash ROM */
104#define FLASH_SIZE 0x400000
105
106/* Define this to the CPU frequency */
107#define CPU_FREQ 11289600
108
109/* Type of mobile power */
110#define X5_BATT_CONFIG 2
111#define CONFIG_BATTERY BATT_IAUDIO_X5
112#define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
113#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
114#define BATTERY_CAPACITY_INC 50 /* capacity increment */
115#define BATTERY_TYPES_COUNT 1 /* only one type */
116#define BATTERY_SCALE_FACTOR 5859 /* (420703125 + 35900) / 71800 */
117
118/* Define this if you have ATA power-off control */
119#define HAVE_ATA_POWER_OFF
120
121/* Virtual LED (icon) */
122#define CONFIG_LED LED_VIRTUAL
123
124/* Offset ( in the firmware file's header ) to the file CRC */
125#define FIRMWARE_OFFSET_FILE_CRC 0
126
127/* Offset ( in the firmware file's header ) to the real data */
128#define FIRMWARE_OFFSET_FILE_DATA 8
129
130#define USB_X5STYLE
131
132/* Define this if you have adjustable CPU frequency */
133#define HAVE_ADJUSTABLE_CPU_FREQ
134
135#define BOOTFILE_EXT "iaudio"
136#define BOOTFILE "rockbox." BOOTFILE_EXT
137
138#define BOOTLOADER_ENTRYPOINT 0x001F0000
139#define FLASH_ENTRYPOINT 0x00001000
140#define FLASH_MAGIC 0xfbfbfbf1
141
142#endif /* SIMULATOR */
143
144/** Port-specific settings **/
145
146/* Main LCD contrast range and defaults */
147#define MIN_CONTRAST_SETTING 1
148#define MAX_CONTRAST_SETTING 30
149#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
150
151/* Main LCD backlight brightness range and defaults */
152/* PCF50506 can output 0%-100% duty cycle but D305A expects %15-100%. */
153#define MIN_BRIGHTNESS_SETTING 1 /* 15/16 (93.75%) */
154#define MAX_BRIGHTNESS_SETTING 13 /* 3/16 (18.75%) */
155#define DEFAULT_BRIGHTNESS_SETTING 8 /* 8/16 (50.00%) = x5 boot default */
156
157/* Remote LCD contrast range and defaults */
158#define MIN_REMOTE_CONTRAST_SETTING 10
159#define MAX_REMOTE_CONTRAST_SETTING 35
160#define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 085f86af53..d848d16155 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -187,6 +187,8 @@
187#include "config-h300.h" 187#include "config-h300.h"
188#elif defined(IAUDIO_X5) 188#elif defined(IAUDIO_X5)
189#include "config-iaudiox5.h" 189#include "config-iaudiox5.h"
190#elif defined(IAUDIO_M5)
191#include "config-iaudiom5.h"
190#elif defined(IPOD_COLOR) 192#elif defined(IPOD_COLOR)
191#include "config-ipodcolor.h" 193#include "config-ipodcolor.h"
192#elif defined(IPOD_NANO) 194#elif defined(IPOD_NANO)