summaryrefslogtreecommitdiff
path: root/firmware/export/config
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config')
-rw-r--r--firmware/export/config/archosfmrecorder.h142
-rw-r--r--firmware/export/config/archosondiofm.h139
-rw-r--r--firmware/export/config/archosondiosp.h123
-rw-r--r--firmware/export/config/archosplayer.h105
-rw-r--r--firmware/export/config/archosrecorder.h132
-rw-r--r--firmware/export/config/archosrecorderv2.h142
-rw-r--r--firmware/export/config/cowond2.h171
-rw-r--r--firmware/export/config/creativezv.h167
-rw-r--r--firmware/export/config/gigabeatfx.h188
-rw-r--r--firmware/export/config/gigabeats.h216
-rw-r--r--firmware/export/config/gogearhdd1630.h202
-rw-r--r--firmware/export/config/gogearsa9200.h196
-rw-r--r--firmware/export/config/iaudio7.h162
-rw-r--r--firmware/export/config/iaudiom3.h171
-rw-r--r--firmware/export/config/iaudiom5.h192
-rw-r--r--firmware/export/config/iaudiox5.h205
-rw-r--r--firmware/export/config/ipod1g2g.h171
-rw-r--r--firmware/export/config/ipod3g.h175
-rw-r--r--firmware/export/config/ipod4g.h209
-rw-r--r--firmware/export/config/ipodcolor.h184
-rw-r--r--firmware/export/config/ipodmini1g.h195
-rw-r--r--firmware/export/config/ipodmini2g.h205
-rw-r--r--firmware/export/config/ipodnano1g.h194
-rw-r--r--firmware/export/config/ipodnano2g.h213
-rw-r--r--firmware/export/config/ipodvideo.h226
-rw-r--r--firmware/export/config/iriverh10.h188
-rw-r--r--firmware/export/config/iriverh100.h216
-rw-r--r--firmware/export/config/iriverh10_5gb.h171
-rw-r--r--firmware/export/config/iriverh120.h217
-rw-r--r--firmware/export/config/iriverh300.h204
-rw-r--r--firmware/export/config/iriverifp7xx.h127
-rw-r--r--firmware/export/config/logikdax.h147
-rw-r--r--firmware/export/config/lyreproto1.h103
-rw-r--r--firmware/export/config/meizuiaudiom3.h180
-rw-r--r--firmware/export/config/meizum6sl.h178
-rw-r--r--firmware/export/config/meizum6sp.h181
-rw-r--r--firmware/export/config/mini2440.h156
-rw-r--r--firmware/export/config/mrobe100.h202
-rw-r--r--firmware/export/config/mrobe500.h258
-rw-r--r--firmware/export/config/ondavx747.h224
-rw-r--r--firmware/export/config/ondavx767.h167
-rw-r--r--firmware/export/config/samsungyh820.h183
-rw-r--r--firmware/export/config/samsungyh920.h189
-rw-r--r--firmware/export/config/samsungyh925.h187
-rw-r--r--firmware/export/config/samsungyps3.h182
-rw-r--r--firmware/export/config/sansac100.h128
-rw-r--r--firmware/export/config/sansac200.h207
-rw-r--r--firmware/export/config/sansac200v2.h199
-rw-r--r--firmware/export/config/sansaclip.h199
-rw-r--r--firmware/export/config/sansae200.h216
-rw-r--r--firmware/export/config/sansae200v2.h212
-rw-r--r--firmware/export/config/sansafuze.h206
-rw-r--r--firmware/export/config/sansam200.h136
-rw-r--r--firmware/export/config/sansam200v4.h165
-rw-r--r--firmware/export/config/sansaview.h203
-rw-r--r--firmware/export/config/sim.h81
-rw-r--r--firmware/export/config/tatungtpj1022.h139
-rw-r--r--firmware/export/config/zenvisionm.h176
-rw-r--r--firmware/export/config/zenvisionm60gb.h168
59 files changed, 10520 insertions, 0 deletions
diff --git a/firmware/export/config/archosfmrecorder.h b/firmware/export/config/archosfmrecorder.h
new file mode 100644
index 0000000000..d9f3a95f3e
--- /dev/null
+++ b/firmware/export/config/archosfmrecorder.h
@@ -0,0 +1,142 @@
1/* define this if you use an ATA controller */
2#define CONFIG_STORAGE STORAGE_ATA
3
4#define MODEL_NAME "Archos FM Recorder"
5
6/* define this if you have recording possibility */
7#define HAVE_RECORDING
8
9/* Define bitmask of input sources - recordable bitmask can be defined
10 explicitly if different */
11#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF)
12
13/* define this if you have a bitmap LCD display */
14#define HAVE_LCD_BITMAP
15
16/* define this if you can flip your LCD */
17#define HAVE_LCD_FLIP
18
19/* define this if you can invert the colours on your LCD */
20#define HAVE_LCD_INVERT
21
22/* define this if you have access to the quickscreen */
23#define HAVE_QUICKSCREEN
24/* define this if you have access to the pitchscreen */
25#define HAVE_PITCHSCREEN
26/* define this if you have the button bar */
27#define HAVE_BUTTONBAR
28
29/* define this if you would like tagcache to build on this target */
30#define HAVE_TAGCACHE
31
32/* LCD dimensions */
33#define LCD_WIDTH 112
34#define LCD_HEIGHT 64
35#define LCD_DEPTH 1
36
37#define LCD_PIXEL_ASPECT_WIDTH 4
38#define LCD_PIXEL_ASPECT_HEIGHT 5
39
40#define LCD_PIXELFORMAT VERTICAL_PACKING
41
42/* Display colours, for screenshots and sim (0xRRGGBB) */
43#define LCD_DARKCOLOR 0x000000
44#define LCD_BRIGHTCOLOR 0x5a915a
45#define LCD_BL_DARKCOLOR 0x000000
46#define LCD_BL_BRIGHTCOLOR 0x7ee57e
47
48/* define this if you have a Recorder style 10-key keyboard */
49#define CONFIG_KEYPAD RECORDER_PAD
50
51/* Define this to enable morse code input */
52#define HAVE_MORSE_INPUT
53
54/* define this if you have a real-time clock */
55#define CONFIG_RTC RTC_M41ST84W
56
57/* FM recorders can wake up from RTC alarm */
58#define HAVE_RTC_ALARM
59
60/* define this if you have RTC RAM available for settings */
61#define HAVE_RTC_RAM
62
63/* Define this if you have a software controlled poweroff */
64#define HAVE_SW_POWEROFF
65
66/* The number of bytes reserved for loadable plugins */
67#define PLUGIN_BUFFER_SIZE 0x8000
68
69#ifndef BOOTLOADER
70/* Define this if you have an FM Radio */
71#define CONFIG_TUNER S1A0903X01
72#endif
73
74#define AB_REPEAT_ENABLE 1
75
76/* Define this if you have a MAS3587F */
77#define CONFIG_CODEC MAS3587F
78
79/* Define this for LCD backlight available */
80#define HAVE_BACKLIGHT
81
82/* define this if you have a disk storage, i.e. something
83 that needs spinups and can cause skips when shaked */
84#define HAVE_DISK_STORAGE
85
86#define CONFIG_I2C I2C_PLAYREC
87
88#define BATTERY_CAPACITY_DEFAULT 2200 /* default battery capacity */
89#define BATTERY_CAPACITY_MIN 2200 /* min. capacity selectable */
90#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
91#define BATTERY_CAPACITY_INC 50 /* capacity increment */
92#define BATTERY_TYPES_COUNT 1 /* only one type */
93
94#define CURRENT_NORMAL 145 /* usual current in mA */
95#define CURRENT_RECORD 35 /* additional recording current */
96#define CURRENT_USB 500 /* usual current in mA in USB mode */
97
98/* Hardware controlled charging with monitoring */
99#define CONFIG_CHARGING CHARGING_MONITOR
100
101/* define this if the unit can be powered or charged via USB */
102#define HAVE_USB_POWER
103
104/* Define this if you have a SH7034 */
105#define CONFIG_CPU SH7034
106
107/* Define this if you have a FM Recorder key system */
108#define HAVE_FMADC
109
110/* Define this if battery voltage can only be measured with ATA powered */
111#define NEED_ATA_POWER_BATT_MEASURE
112
113/* Define this to the CPU frequency */
114#define CPU_FREQ 11059200
115
116/* Offset ( in the firmware file's header ) to the file length */
117#define FIRMWARE_OFFSET_FILE_LENGTH 20
118
119/* Offset ( in the firmware file's header ) to the file CRC */
120#define FIRMWARE_OFFSET_FILE_CRC 6
121
122/* Offset ( in the firmware file's header ) to the real data */
123#define FIRMWARE_OFFSET_FILE_DATA 24
124
125/* The start address index for ROM builds */
126/* #define ROM_START 0x14010 for behind original Archos */
127#define ROM_START 0x7010 /* for behind BootBox */
128
129/* Software controlled LED */
130#define CONFIG_LED LED_REAL
131
132#define CONFIG_LCD LCD_SSD1815
133
134#define BOOTFILE_EXT "ajz"
135#define BOOTFILE "ajbrec." BOOTFILE_EXT
136#define BOOTDIR "/"
137
138#define HAVE_LCD_CONTRAST
139
140#define MIN_CONTRAST_SETTING 5
141#define MAX_CONTRAST_SETTING 63
142
diff --git a/firmware/export/config/archosondiofm.h b/firmware/export/config/archosondiofm.h
new file mode 100644
index 0000000000..b14f113244
--- /dev/null
+++ b/firmware/export/config/archosondiofm.h
@@ -0,0 +1,139 @@
1/* define this if you have recording possibility */
2#define HAVE_RECORDING
3
4#define MODEL_NAME "Ondio FM"
5
6/* Define bitmask of input sources - recordable bitmask can be defined
7 explicitly if different */
8#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
9
10/* define this if you have a bitmap LCD display */
11#define HAVE_LCD_BITMAP
12
13/* define this if you can flip your LCD */
14#define HAVE_LCD_FLIP
15
16/* define this if you can invert the colours on your LCD */
17#define HAVE_LCD_INVERT
18
19/* define this if you would like tagcache to build on this target */
20#define HAVE_TAGCACHE
21
22/* LCD dimensions */
23#define LCD_WIDTH 112
24#define LCD_HEIGHT 64
25#define LCD_DEPTH 1
26
27#define LCD_PIXEL_ASPECT_WIDTH 4
28#define LCD_PIXEL_ASPECT_HEIGHT 5
29
30#define LCD_PIXELFORMAT VERTICAL_PACKING
31
32/* Display colours, for screenshots and sim (0xRRGGBB) */
33#define LCD_DARKCOLOR 0x000000
34#define LCD_BRIGHTCOLOR 0x5a915a
35#define LCD_BL_DARKCOLOR 0x000000
36#define LCD_BL_BRIGHTCOLOR 0x82b4fa
37
38/* define this if you have an Ondio style 6-key keyboard */
39#define CONFIG_KEYPAD ONDIO_PAD
40
41#define AB_REPEAT_ENABLE 1
42#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
43
44/* define this if you have access to the pitchscreen */
45#define HAVE_PITCHSCREEN
46
47/* Define this if you have a software controlled poweroff */
48#define HAVE_SW_POWEROFF
49
50/* The number of bytes reserved for loadable plugins */
51#define PLUGIN_BUFFER_SIZE 0x8000
52
53#ifndef BOOTLOADER
54/* Define this if you have an FM Radio */
55#define CONFIG_TUNER (S1A0903X01 | TEA5767) /* to be decided at runtime */
56#define CONFIG_TUNER_XTAL 13000000
57#endif
58
59/* Define this if you have a MAS3587F */
60#define CONFIG_CODEC MAS3587F
61
62/* define this if you have a flash memory storage */
63#define HAVE_FLASH_STORAGE
64
65#define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */
66#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
67#define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */
68#define BATTERY_CAPACITY_INC 50 /* capacity increment */
69#define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */
70
71/* define this if the unit should not shut down on low battery. */
72#define NO_LOW_BATTERY_SHUTDOWN
73
74/* define this if the unit can be powered or charged via USB */
75#define HAVE_USB_POWER
76
77/* define current usage levels */
78#define CURRENT_NORMAL 95 /* average, nearly proportional to 1/U */
79#define CURRENT_USB 1 /* host powered in USB mode; avoid zero-div */
80#define CURRENT_BACKLIGHT 0 /* no backlight */
81
82/* Define this if you have a SH7034 */
83#define CONFIG_CPU SH7034
84
85/* Define this to the CPU frequency */
86#define CPU_FREQ 12000000
87
88/* Define this for different I2C pinout */
89#define CONFIG_I2C I2C_ONDIO
90
91/* Offset ( in the firmware file's header ) to the file length */
92#define FIRMWARE_OFFSET_FILE_LENGTH 20
93
94/* Offset ( in the firmware file's header ) to the file CRC */
95#define FIRMWARE_OFFSET_FILE_CRC 6
96
97/* Offset ( in the firmware file's header ) to the real data */
98#define FIRMWARE_OFFSET_FILE_DATA 24
99
100/* Define this if the tuner is switched on by software */
101#define HAVE_TUNER_PWR_CTRL
102
103/* The start address index for ROM builds */
104/* #define ROM_START 0x16010 for behind original Archos */
105#define ROM_START 0x7010 /* for behind BootBox */
106
107/* Define this if the display is mounted upside down */
108#define HAVE_DISPLAY_FLIPPED
109
110/* Define this for different ADC channel assignment */
111#define HAVE_ONDIO_ADC
112
113/* Define this for MMC support instead of ATA harddisk */
114#define CONFIG_STORAGE STORAGE_MMC
115
116/* Define this to support mounting FAT16 partitions */
117#define HAVE_FAT16SUPPORT
118
119/* Define this if the MAS SIBI line can be controlled via PB8 */
120#define HAVE_MAS_SIBI_CONTROL
121
122/* define this if more than one device/partition can be used */
123#define HAVE_MULTIDRIVE
124#define NUM_DRIVES 2
125
126/* define this if media can be exchanged on the fly */
127#define HAVE_HOTSWAP
128
129#define CONFIG_LCD LCD_SSD1815
130
131#define BOOTFILE_EXT "ajz"
132#define BOOTFILE "ajbrec." BOOTFILE_EXT
133#define BOOTDIR "/"
134
135#define HAVE_LCD_CONTRAST
136
137#define MIN_CONTRAST_SETTING 5
138#define MAX_CONTRAST_SETTING 63
139
diff --git a/firmware/export/config/archosondiosp.h b/firmware/export/config/archosondiosp.h
new file mode 100644
index 0000000000..452b47b78e
--- /dev/null
+++ b/firmware/export/config/archosondiosp.h
@@ -0,0 +1,123 @@
1/* define this if you have a bitmap LCD display */
2#define HAVE_LCD_BITMAP
3
4#define MODEL_NAME "Ondio SP"
5
6/* define this if you can flip your LCD */
7#define HAVE_LCD_FLIP
8
9/* define this if you can invert the colours on your LCD */
10#define HAVE_LCD_INVERT
11
12/* define this if you would like tagcache to build on this target */
13#define HAVE_TAGCACHE
14
15/* LCD dimensions */
16#define LCD_WIDTH 112
17#define LCD_HEIGHT 64
18#define LCD_DEPTH 1
19
20#define LCD_PIXEL_ASPECT_WIDTH 4
21#define LCD_PIXEL_ASPECT_HEIGHT 5
22
23#define LCD_PIXELFORMAT VERTICAL_PACKING
24
25/* Display colours, for screenshots and sim (0xRRGGBB) */
26#define LCD_DARKCOLOR 0x000000
27#define LCD_BRIGHTCOLOR 0x5a915a
28#define LCD_BL_DARKCOLOR 0x000000
29#define LCD_BL_BRIGHTCOLOR 0x82b4fa
30
31/* define this if you have an Ondio style 6-key keyboard */
32#define CONFIG_KEYPAD ONDIO_PAD
33
34#define AB_REPEAT_ENABLE 1
35#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
36
37/* define this if you have access to the pitchscreen */
38#define HAVE_PITCHSCREEN
39
40/* Define this if you have a software controlled poweroff */
41#define HAVE_SW_POWEROFF
42
43/* The number of bytes reserved for loadable plugins */
44#define PLUGIN_BUFFER_SIZE 0x8000
45
46/* Define this if you have a MAS3539F */
47#define CONFIG_CODEC MAS3539F
48
49/* define this if you have a flash memory storage */
50#define HAVE_FLASH_STORAGE
51
52#define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */
53#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
54#define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable */
55#define BATTERY_CAPACITY_INC 50 /* capacity increment */
56#define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */
57
58/* define this if the unit should not shut down on low battery. */
59#define NO_LOW_BATTERY_SHUTDOWN
60
61/* define this if the unit can be powered or charged via USB */
62#define HAVE_USB_POWER
63
64/* define current usage levels */
65#define CURRENT_NORMAL 95 /* average, nearly proportional to 1/U */
66#define CURRENT_USB 1 /* host powered in USB mode; avoid zero-div */
67#define CURRENT_BACKLIGHT 0 /* no backlight */
68
69/* Define this if you have a SH7034 */
70#define CONFIG_CPU SH7034
71
72/* Define this to the CPU frequency */
73#define CPU_FREQ 12000000
74
75/* Offset ( in the firmware file's header ) to the file length */
76#define FIRMWARE_OFFSET_FILE_LENGTH 20
77
78/* Offset ( in the firmware file's header ) to the file CRC */
79#define FIRMWARE_OFFSET_FILE_CRC 6
80
81/* Offset ( in the firmware file's header ) to the real data */
82#define FIRMWARE_OFFSET_FILE_DATA 24
83
84/* The start address index for ROM builds */
85/* #define ROM_START 0x12010 for behind original Archos */
86#define ROM_START 0x7010 /* for behind BootBox */
87
88/* Define this if the display is mounted upside down */
89#define HAVE_DISPLAY_FLIPPED
90
91/* Define this for different I2C pinout */
92#define CONFIG_I2C I2C_ONDIO
93
94/* Define this for different ADC channel assignment */
95#define HAVE_ONDIO_ADC
96
97/* Define this for MMC support instead of ATA harddisk */
98#define CONFIG_STORAGE STORAGE_MMC
99
100/* Define this to support mounting FAT16 partitions */
101#define HAVE_FAT16SUPPORT
102
103/* Define this if the MAS SIBI line can be controlled via PB8 */
104#define HAVE_MAS_SIBI_CONTROL
105
106/* define this if more than one device/partition can be used */
107#define HAVE_MULTIDRIVE
108#define NUM_DRIVES 2
109
110/* define this if media can be exchanged on the fly */
111#define HAVE_HOTSWAP
112
113#define CONFIG_LCD LCD_SSD1815
114
115#define BOOTFILE_EXT "ajz"
116#define BOOTFILE "ajbrec." BOOTFILE_EXT
117#define BOOTDIR "/"
118
119#define HAVE_LCD_CONTRAST
120
121#define MIN_CONTRAST_SETTING 5
122#define MAX_CONTRAST_SETTING 63
123
diff --git a/firmware/export/config/archosplayer.h b/firmware/export/config/archosplayer.h
new file mode 100644
index 0000000000..c60ee6a071
--- /dev/null
+++ b/firmware/export/config/archosplayer.h
@@ -0,0 +1,105 @@
1/* define this if you use an ATA controller */
2#define CONFIG_STORAGE STORAGE_ATA
3
4#define MODEL_NAME "Archos Player/Studio"
5
6/* define this if you have a charcell LCD display */
7#define HAVE_LCD_CHARCELLS
8
9/* define this if you would like tagcache to build on this target */
10#define HAVE_TAGCACHE
11
12#define LCD_WIDTH 11
13#define LCD_HEIGHT 2
14#define LCD_DEPTH 1
15#define SIM_LCD_WIDTH 132 /* pixels */
16#define SIM_LCD_HEIGHT 64 /* pixels */
17
18/* Display colours, for screenshots and sim (0xRRGGBB) */
19#define LCD_DARKCOLOR 0x000000
20#define LCD_BRIGHTCOLOR 0x5a915a
21#define LCD_BL_DARKCOLOR 0x000000
22#define LCD_BL_BRIGHTCOLOR 0x7ee57e
23
24/* define this if you have the Player's keyboard */
25#define CONFIG_KEYPAD PLAYER_PAD
26
27#define AB_REPEAT_ENABLE 1
28#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
29
30/* The number of bytes reserved for loadable plugins */
31#define PLUGIN_BUFFER_SIZE 0x8000
32
33/* Define this if you have a MAS3507D */
34#define CONFIG_CODEC MAS3507D
35
36/* Define this if you have a DAC3550A */
37#define HAVE_DAC3550A
38
39/* define this if you have a disk storage, i.e. something
40 that needs spinups and can cause skips when shaked */
41#define HAVE_DISK_STORAGE
42
43/* Define this for LCD backlight available */
44#define HAVE_BACKLIGHT
45
46#define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
47#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
48#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
49#define BATTERY_CAPACITY_INC 50 /* capacity increment */
50#define BATTERY_TYPES_COUNT 1 /* only one type */
51
52#define CURRENT_NORMAL 145 /* usual current in mA */
53#define CURRENT_USB 500 /* usual current in mA in USB mode */
54
55/* define this if the unit should not shut down on low battery. */
56#define NO_LOW_BATTERY_SHUTDOWN
57
58/* Hardware controlled charging */
59#define CONFIG_CHARGING CHARGING_SIMPLE
60
61/* Define this if you have a SH7034 */
62#define CONFIG_CPU SH7034
63
64/* Define this if you control ata power player style
65 (with PB4, new player only) */
66#define ATA_POWER_PLAYERSTYLE
67
68/* Define this to the CPU frequency */
69#define CPU_FREQ 12000000 /* cycle time ~83.3ns */
70
71/* Define this if you must discharge the data line by driving it low
72 and then set it to input to see if it stays low or goes high */
73#define HAVE_I2C_LOW_FIRST
74
75#define CONFIG_I2C I2C_PLAYREC
76
77/* Offset ( in the firmware file's header ) to the file length */
78#define FIRMWARE_OFFSET_FILE_LENGTH 0
79
80/* Offset ( in the firmware file's header ) to the file CRC */
81#define FIRMWARE_OFFSET_FILE_CRC 4
82
83/* Offset ( in the firmware file's header ) to the real data */
84#define FIRMWARE_OFFSET_FILE_DATA 6
85
86/* The start address index for ROM builds */
87#define ROM_START 0x7010 /* for behind BootBox */
88
89/* Software controlled LED */
90#define CONFIG_LED LED_REAL
91
92#define CONFIG_LCD LCD_SSD1801
93
94#define BOOTFILE_EXT "mod"
95#define BOOTFILE "archos." BOOTFILE_EXT
96#define BOOTDIR "/"
97
98#define HAVE_LCD_CONTRAST
99
100#define MIN_CONTRAST_SETTING 5
101#define MAX_CONTRAST_SETTING 31
102#define DEFAULT_CONTRAST_SETTING 30
103
104#define HAVE_SERIAL
105
diff --git a/firmware/export/config/archosrecorder.h b/firmware/export/config/archosrecorder.h
new file mode 100644
index 0000000000..ef9f523c49
--- /dev/null
+++ b/firmware/export/config/archosrecorder.h
@@ -0,0 +1,132 @@
1/* define this if you use an ATA controller */
2#define CONFIG_STORAGE STORAGE_ATA
3
4#define MODEL_NAME "Archos Recorder"
5
6/* define this if you have recording possibility */
7#define HAVE_RECORDING
8
9/* Define bitmask of input sources - recordable bitmask can be defined
10 explicitly if different */
11#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF)
12
13/* define this if you have a bitmap LCD display */
14#define HAVE_LCD_BITMAP
15
16/* define this if you can flip your LCD */
17#define HAVE_LCD_FLIP
18
19/* define this if you can invert the colours on your LCD */
20#define HAVE_LCD_INVERT
21
22/* define this if you have access to the quickscreen */
23#define HAVE_QUICKSCREEN
24/* define this if you have access to the pitchscreen */
25#define HAVE_PITCHSCREEN
26/* define this if you have the button bar */
27#define HAVE_BUTTONBAR
28
29/* define this if you would like tagcache to build on this target */
30#define HAVE_TAGCACHE
31
32/* LCD dimensions */
33#define LCD_WIDTH 112
34#define LCD_HEIGHT 64
35#define LCD_DEPTH 1
36
37#define LCD_PIXEL_ASPECT_WIDTH 4
38#define LCD_PIXEL_ASPECT_HEIGHT 5
39
40#define LCD_PIXELFORMAT VERTICAL_PACKING
41
42/* Display colours, for screenshots and sim (0xRRGGBB) */
43#define LCD_DARKCOLOR 0x000000
44#define LCD_BRIGHTCOLOR 0x5a915a
45#define LCD_BL_DARKCOLOR 0x000000
46#define LCD_BL_BRIGHTCOLOR 0x7ee57e
47
48/* define this if you have the Recorder's 10-key keyboard */
49#define CONFIG_KEYPAD RECORDER_PAD
50
51/* Define this to enable morse code input */
52#define HAVE_MORSE_INPUT
53
54/* define this if you have a real-time clock */
55#define CONFIG_RTC RTC_M41ST84W
56
57/* define this if you have RTC RAM available for settings */
58#define HAVE_RTC_RAM
59
60/* The number of bytes reserved for loadable plugins */
61#define PLUGIN_BUFFER_SIZE 0x8000
62
63#define AB_REPEAT_ENABLE 1
64
65/* Define this if you have a MAS3587F */
66#define CONFIG_CODEC MAS3587F
67
68/* define this if you have a disk storage, i.e. something
69 that needs spinups and can cause skips when shaked */
70#define HAVE_DISK_STORAGE
71
72/* Define this for LCD backlight available */
73#define HAVE_BACKLIGHT
74
75#define CONFIG_I2C I2C_PLAYREC
76
77#define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
78#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
79#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
80#define BATTERY_CAPACITY_INC 50 /* capacity increment */
81#define BATTERY_TYPES_COUNT 1 /* only one type */
82
83#define CURRENT_NORMAL 145 /* usual current in mA */
84#define CURRENT_RECORD 35 /* additional recording current */
85#define CURRENT_USB 500 /* usual current in mA in USB mode */
86
87/* define this if the unit should not shut down on low battery. */
88#define NO_LOW_BATTERY_SHUTDOWN
89
90/* Software controlled charging */
91#define CONFIG_CHARGING CHARGING_TARGET
92
93/* Define this if you have a SH7034 */
94#define CONFIG_CPU SH7034
95
96/* Define this if you have ATA power-off control */
97#define HAVE_ATA_POWER_OFF
98
99/* Define this to the CPU frequency */
100#define CPU_FREQ 11059200
101
102/* Offset ( in the firmware file's header ) to the file length */
103#define FIRMWARE_OFFSET_FILE_LENGTH 0
104
105/* Offset ( in the firmware file's header ) to the file CRC */
106#define FIRMWARE_OFFSET_FILE_CRC 4
107
108/* Offset ( in the firmware file's header ) to the real data */
109#define FIRMWARE_OFFSET_FILE_DATA 6
110
111/* The start address index for ROM builds */
112/* #define ROM_START 0x11010 for behind original Archos */
113#define ROM_START 0x7010 /* for behind BootBox */
114
115/* Software controlled LED */
116#define CONFIG_LED LED_REAL
117
118/* Define this for S/PDIF output available */
119#define HAVE_SPDIF_OUT
120
121#define CONFIG_LCD LCD_SSD1815
122
123#define BOOTFILE_EXT "ajz"
124#define BOOTFILE "ajbrec." BOOTFILE_EXT
125#define BOOTDIR "/"
126
127#define HAVE_LCD_CONTRAST
128
129#define MIN_CONTRAST_SETTING 5
130#define MAX_CONTRAST_SETTING 63
131
132#define HAVE_SERIAL
diff --git a/firmware/export/config/archosrecorderv2.h b/firmware/export/config/archosrecorderv2.h
new file mode 100644
index 0000000000..c530fa5815
--- /dev/null
+++ b/firmware/export/config/archosrecorderv2.h
@@ -0,0 +1,142 @@
1/* define this if you use an ATA controller */
2#define CONFIG_STORAGE STORAGE_ATA
3
4#define MODEL_NAME "Archos Recorder v2"
5
6/* define this if you have recording possibility */
7#define HAVE_RECORDING
8
9/* Define bitmask of input sources - recordable bitmask can be defined
10 explicitly if different */
11#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF)
12
13/* define this if you have a bitmap LCD display */
14#define HAVE_LCD_BITMAP
15
16/* define this if you can flip your LCD */
17#define HAVE_LCD_FLIP
18
19/* define this if you can invert the colours on your LCD */
20#define HAVE_LCD_INVERT
21
22/* define this if you have access to the quickscreen */
23#define HAVE_QUICKSCREEN
24/* define this if you have access to the pitchscreen */
25#define HAVE_PITCHSCREEN
26/* define this if you have the button bar */
27#define HAVE_BUTTONBAR
28
29/* define this if you would like tagcache to build on this target */
30#define HAVE_TAGCACHE
31
32/* LCD dimensions */
33#define LCD_WIDTH 112
34#define LCD_HEIGHT 64
35#define LCD_DEPTH 1
36
37#define LCD_PIXEL_ASPECT_WIDTH 4
38#define LCD_PIXEL_ASPECT_HEIGHT 5
39
40#define LCD_PIXELFORMAT VERTICAL_PACKING
41
42/* Display colours, for screenshots and sim (0xRRGGBB) */
43#define LCD_DARKCOLOR 0x000000
44#define LCD_BRIGHTCOLOR 0x5a915a
45#define LCD_BL_DARKCOLOR 0x000000
46#define LCD_BL_BRIGHTCOLOR 0x7ee57e
47
48/* define this if you have a Recorder style 10-key keyboard */
49#define CONFIG_KEYPAD RECORDER_PAD
50
51/* Define this to enable morse code input */
52#define HAVE_MORSE_INPUT
53
54/* define this if you have a real-time clock */
55#define CONFIG_RTC RTC_M41ST84W
56
57/* FM recorders can wake up from RTC alarm */
58#define HAVE_RTC_ALARM
59
60/* define this if you have RTC RAM available for settings */
61#define HAVE_RTC_RAM
62
63/* Define this if you have a software controlled poweroff */
64#define HAVE_SW_POWEROFF
65
66/* The number of bytes reserved for loadable plugins */
67#define PLUGIN_BUFFER_SIZE 0x8000
68
69#define AB_REPEAT_ENABLE 1
70
71/* Define this if you have a MAS3587F */
72#define CONFIG_CODEC MAS3587F
73
74/* define this if you have a disk storage, i.e. something
75 that needs spinups and can cause skips when shaked */
76#define HAVE_DISK_STORAGE
77
78/* Define this for LCD backlight available */
79#define HAVE_BACKLIGHT
80
81#define CONFIG_I2C I2C_PLAYREC
82
83#define BATTERY_CAPACITY_DEFAULT 2200 /* default battery capacity */
84#define BATTERY_CAPACITY_MIN 2200 /* min. capacity selectable */
85#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
86#define BATTERY_CAPACITY_INC 50 /* capacity increment */
87#define BATTERY_TYPES_COUNT 1 /* only one type */
88
89#define CURRENT_NORMAL 145 /* usual current in mA */
90#define CURRENT_RECORD 35 /* additional recording current */
91#define CURRENT_USB 500 /* usual current in mA in USB mode */
92
93/* Hardware controlled charging with monitoring */
94#define CONFIG_CHARGING CHARGING_MONITOR
95
96/* define this if the unit can be powered or charged via USB */
97#define HAVE_USB_POWER
98
99/* Define this if you have a SH7034 */
100#define CONFIG_CPU SH7034
101
102/* Define this if you have a FM Recorder key system */
103#define HAVE_FMADC
104
105/* Define this if battery voltage can only be measured with ATA powered */
106#define NEED_ATA_POWER_BATT_MEASURE
107
108/* Define this to the CPU frequency */
109#define CPU_FREQ 11059200
110
111/* Offset ( in the firmware file's header ) to the file length */
112#define FIRMWARE_OFFSET_FILE_LENGTH 20
113
114/* Offset ( in the firmware file's header ) to the file CRC */
115#define FIRMWARE_OFFSET_FILE_CRC 6
116
117/* Offset ( in the firmware file's header ) to the real data */
118#define FIRMWARE_OFFSET_FILE_DATA 24
119
120#ifndef BOOTLOADER
121/* Define this if you have an FM Radio */
122#define CONFIG_TUNER S1A0903X01
123#endif
124
125/* The start address index for ROM builds */
126/* #define ROM_START 0x12010 for behind original Archos */
127#define ROM_START 0x7010 /* for behind BootBox */
128
129/* Software controlled LED */
130#define CONFIG_LED LED_REAL
131
132#define CONFIG_LCD LCD_SSD1815
133
134#define BOOTFILE_EXT "ajz"
135#define BOOTFILE "ajbrec." BOOTFILE_EXT
136#define BOOTDIR "/"
137
138#define HAVE_LCD_CONTRAST
139
140#define MIN_CONTRAST_SETTING 5
141#define MAX_CONTRAST_SETTING 63
142
diff --git a/firmware/export/config/cowond2.h b/firmware/export/config/cowond2.h
new file mode 100644
index 0000000000..88c7ce5b8f
--- /dev/null
+++ b/firmware/export/config/cowond2.h
@@ -0,0 +1,171 @@
1/*
2 * This config file is for the Cowon D2
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 24
8
9#define MODEL_NAME "Cowon D2"
10
11#if 0
12#define HAVE_USBSTACK
13#define USE_ROCKBOX_USB
14#define USB_VENDOR_ID 0x0e21
15#define USB_PRODUCT_ID 0x0800
16#endif
17
18
19/* Produce a dual-boot bootloader.bin for mktccboot */
20#define TCCBOOT
21
22/* define this if you have recording possibility */
23//#define HAVE_RECORDING
24
25/* Define bitmask of input sources - recordable bitmask can be defined
26 explicitly if different */
27#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
28
29/* define this if you have a bitmap LCD display */
30#define HAVE_LCD_BITMAP
31
32/* define this if you have a colour LCD */
33#define HAVE_LCD_COLOR
34
35/* define this if you can flip your LCD */
36/* #define HAVE_LCD_FLIP */
37
38/* define this if you can invert the colours on your LCD */
39/* #define HAVE_LCD_INVERT */
40
41/* define this if you want album art for this target */
42#define HAVE_ALBUMART
43
44/* define this to enable bitmap scaling */
45#define HAVE_BMP_SCALING
46
47/* define this to enable JPEG decoding */
48#define HAVE_JPEG
49
50/* define this if you have access to the quickscreen */
51#define HAVE_QUICKSCREEN
52/* define this if you have access to the pitchscreen */
53#define HAVE_PITCHSCREEN
54
55/* define this if you would like tagcache to build on this target */
56#define HAVE_TAGCACHE
57
58/* FM Tuner */
59#define CONFIG_TUNER LV24020LP
60#define HAVE_TUNER_PWR_CTRL
61
62/* define this if you have a flash memory storage */
63#define HAVE_FLASH_STORAGE
64
65#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
66#define HAVE_MULTIDRIVE
67#define HAVE_HOTSWAP
68#define NUM_DRIVES 2
69
70#define CONFIG_NAND NAND_TCC
71
72/* Some (2Gb?) D2s seem to be FAT16 formatted */
73#define HAVE_FAT16SUPPORT
74
75/* LCD dimensions */
76#define LCD_WIDTH 320
77#define LCD_HEIGHT 240
78#define LCD_DEPTH 16
79#define LCD_PIXELFORMAT 565
80
81/* define this if you have LCD enable function */
82#define HAVE_LCD_ENABLE
83
84/* define this to indicate your device's keypad */
85#define CONFIG_KEYPAD COWOND2_PAD
86#define HAVE_TOUCHSCREEN
87#define HAVE_BUTTON_DATA
88
89/* The D2 has either a PCF50606 or PCF50635, RTC_D2 handles both */
90#define CONFIG_RTC RTC_D2
91
92/* define this if you have RTC RAM available for settings */
93//#define HAVE_RTC_RAM
94
95/* Define this if you have a software controlled poweroff */
96#define HAVE_SW_POWEROFF
97
98/* Reduce Tremor's ICODE usage */
99#define ICODE_ATTR_TREMOR_NOT_MDCT
100
101/* The number of bytes reserved for loadable codecs */
102#define CODEC_SIZE 0x100000
103
104/* The number of bytes reserved for loadable plugins */
105#define PLUGIN_BUFFER_SIZE 0x80000
106
107#define AB_REPEAT_ENABLE 1
108
109/* Define this if you do software codec */
110#define CONFIG_CODEC SWCODEC
111
112/* The D2 uses a WM8985 codec */
113#define HAVE_WM8985
114
115/* Use WM8985 EQ1 & EQ5 as hardware tone controls */
116/* #define HAVE_SW_TONE_CONTROLS */
117
118/* Define this for LCD backlight available */
119#define HAVE_BACKLIGHT
120/* Enable LCD brightness control */
121#define HAVE_BACKLIGHT_BRIGHTNESS
122/* Which backlight fading type? */
123#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
124
125/* Main LCD backlight brightness range and defaults */
126#define MIN_BRIGHTNESS_SETTING 1
127#define MAX_BRIGHTNESS_SETTING 14
128#define DEFAULT_BRIGHTNESS_SETTING 8
129
130#define CONFIG_I2C I2C_TCC780X
131
132#define BATTERY_CAPACITY_DEFAULT 1600 /* default battery capacity */
133#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
134#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
135#define BATTERY_CAPACITY_INC 50 /* capacity increment */
136#define BATTERY_TYPES_COUNT 1 /* only one type */
137
138/* Hardware controlled charging */
139#define CONFIG_CHARGING CHARGING_SIMPLE
140
141/* Define this if the unit can be powered or charged via USB */
142#define HAVE_USB_POWER
143
144/* Define current usage levels. */
145#define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */
146#define CURRENT_BACKLIGHT 30 /* TBD */
147#define CURRENT_RECORD 0 /* no recording yet */
148
149/* Define this if you have a TCC7801 */
150#define CONFIG_CPU TCC7801
151
152/* Define this to the CPU frequency */
153#define CPU_FREQ 48000000
154
155/* Define this if you have adjustable CPU frequency */
156#define HAVE_ADJUSTABLE_CPU_FREQ
157
158#define INCLUDE_TIMEOUT_API
159
160/* Offset ( in the firmware file's header ) to the file CRC */
161#define FIRMWARE_OFFSET_FILE_CRC 0
162
163/* Offset ( in the firmware file's header ) to the real data */
164#define FIRMWARE_OFFSET_FILE_DATA 8
165
166#define CONFIG_LCD LCD_COWOND2
167
168#define BOOTFILE_EXT "d2"
169#define BOOTFILE "rockbox." BOOTFILE_EXT
170#define BOOTDIR "/.rockbox"
171
diff --git a/firmware/export/config/creativezv.h b/firmware/export/config/creativezv.h
new file mode 100644
index 0000000000..eff5a506c0
--- /dev/null
+++ b/firmware/export/config/creativezv.h
@@ -0,0 +1,167 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2008 by Maurus Cuelenaere
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23 * This config file is for the Creative Zen Vision
24 */
25#define TARGET_TREE /* this target is using the target tree system */
26
27#define CONFIG_SDRAM_START 0x00900000
28
29#define CREATIVE_ZV 1
30
31#define MODEL_NAME "Creative Zen Vision"
32
33/* This makes it part of the Creative Zen Vision family :) */
34#define CREATIVE_ZVx 1
35
36/* For Rolo and boot loader */
37#define MODEL_NUMBER 28
38
39/* define this if you use an ATA controller */
40#define CONFIG_STORAGE STORAGE_ATA
41
42/* define this if you have a bitmap LCD display */
43#define HAVE_LCD_BITMAP
44
45/* define this if you have a colour LCD */
46#define HAVE_LCD_COLOR
47
48/* define this if you have access to the quickscreen */
49#define HAVE_QUICKSCREEN
50
51/* define this if you have access to the pitchscreen */
52#define HAVE_PITCHSCREEN
53
54/* define this if you would like tagcache to build on this target */
55#define HAVE_TAGCACHE
56
57/* define this if the target has volume keys which can be used in the lists */
58//#define HAVE_VOLUME_IN_LIST
59
60/* LCD dimensions */
61#define CONFIG_LCD LCD_CREATIVEZVM
62
63/* choose the lcd orientation. both work */
64#define CONFIG_ORIENTATION SCREEN_PORTRAIT
65
66#define LCD_WIDTH 640
67#define LCD_HEIGHT 480
68
69#define LCD_DEPTH 16 /* 65k colours */
70#define LCD_PIXELFORMAT RGB565 /* rgb565 */
71
72/* Define this if your LCD can be enabled/disabled */
73#define HAVE_LCD_ENABLE
74
75#define CONFIG_KEYPAD CREATIVEZV_PAD
76#define HAVE_HEADPHONE_DETECTION
77//#define HAVE_TOUCHPAD
78
79/* Define this to enable morse code input */
80#define HAVE_MORSE_INPUT
81
82/* Define this if you do software codec */
83#define CONFIG_CODEC SWCODEC
84
85/* define this if you have a real-time clock */
86//#define CONFIG_RTC RTC_RX5X348AB
87
88/* define this if you have a disk storage, i.e. something
89 that needs spinups and can cause skips when shaked */
90#define HAVE_DISK_STORAGE
91
92/* Define this for LCD backlight available */
93//#define HAVE_BACKLIGHT
94
95//#define HAVE_BACKLIGHT_BRIGHTNESS
96
97/* Main LCD backlight brightness range and defaults */
98//#define MIN_BRIGHTNESS_SETTING 0
99//#define MAX_BRIGHTNESS_SETTING 127
100//#define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */
101//#define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */
102
103/* Define this if you have a software controlled poweroff */
104//#define HAVE_SW_POWEROFF
105//TODO: enable this back
106
107/* The number of bytes reserved for loadable codecs */
108#define CODEC_SIZE 0x100000
109
110/* The number of bytes reserved for loadable plugins */
111#define PLUGIN_BUFFER_SIZE 0x100000
112
113/* Define this if you have the TLV320 audio codec -> controlled by the DSP */
114#define HAVE_TLV320
115
116#define CONFIG_I2C I2C_DM320
117
118/* TLV320 has no tone controls, so we use the software ones */
119#define HAVE_SW_TONE_CONTROLS
120
121/*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
122 SAMPR_CAP_11)*/
123
124#define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
125#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
126#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
127#define BATTERY_CAPACITY_INC 100 /* capacity increment */
128#define BATTERY_TYPES_COUNT 1 /* only one type */
129
130/* Hardware controlled charging with monitoring */
131//#define CONFIG_CHARGING CHARGING_MONITOR
132
133/* Define this if you have a TI TMS320DM320 */
134#define CONFIG_CPU DM320
135
136/* define this if the hardware can be powered off while charging */
137#define HAVE_POWEROFF_WHILE_CHARGING
138
139/* The size of the flash ROM */
140#define FLASH_SIZE 0x400000
141
142/* Define this to the CPU frequency */
143#define CPU_FREQ 16934400
144
145/* Define this if you have ATA power-off control */
146#define HAVE_ATA_POWER_OFF
147
148/* Offset ( in the firmware file's header ) to the file CRC */
149#define FIRMWARE_OFFSET_FILE_CRC 0
150
151/* Offset ( in the firmware file's header ) to the real data */
152#define FIRMWARE_OFFSET_FILE_DATA 8
153
154/* Define this if you have adjustable CPU frequency */
155/* #define HAVE_ADJUSTABLE_CPU_FREQ */
156
157#define BOOTFILE_EXT "zv"
158#define BOOTFILE "rockbox." BOOTFILE_EXT
159#define BOOTDIR "/.rockbox"
160
161#define CONFIG_USBOTG USBOTG_ISP1583
162#define HAVE_USBSTACK
163#define USE_ROCKBOX_USB
164#define USB_VENDOR_ID 0x041e
165#define USB_PRODUCT_ID 0x4133
166#define USB_NUM_ENDPOINTS 7
167
diff --git a/firmware/export/config/gigabeatfx.h b/firmware/export/config/gigabeatfx.h
new file mode 100644
index 0000000000..363312a415
--- /dev/null
+++ b/firmware/export/config/gigabeatfx.h
@@ -0,0 +1,188 @@
1/*
2 * This config file is for toshiba Gigabeat F
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define TOSHIBA_GIGABEAT_F 1
7
8#define MODEL_NAME "Toshiba Gigabeat F"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 18
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have a bitmap LCD display */
17#define HAVE_LCD_BITMAP
18
19/* define this if you have a colour LCD */
20#define HAVE_LCD_COLOR
21
22/* define this if you want album art for this target */
23#define HAVE_ALBUMART
24
25/* define this to enable bitmap scaling */
26#define HAVE_BMP_SCALING
27
28/* define this to enable JPEG decoding */
29#define HAVE_JPEG
30
31/* define this if you have access to the quickscreen */
32#define HAVE_QUICKSCREEN
33
34/* define this if you have access to the pitchscreen */
35#define HAVE_PITCHSCREEN
36
37/* define this if you would like tagcache to build on this target */
38#define HAVE_TAGCACHE
39
40/* define this if the target has volume keys which can be used in the lists */
41#define HAVE_VOLUME_IN_LIST
42
43/* LCD dimensions */
44#define LCD_WIDTH 240
45#define LCD_HEIGHT 320
46#define LCD_DEPTH 16 /* 65k colours */
47#define LCD_PIXELFORMAT RGB565 /* rgb565 */
48
49#ifndef BOOTLOADER
50/* Define this if your LCD can be enabled/disabled */
51#define HAVE_LCD_ENABLE
52
53/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
54 should be defined as well. */
55#define HAVE_LCD_SLEEP
56/* We don't use a setting but a fixed delay after the backlight has
57 * turned off */
58#define LCD_SLEEP_TIMEOUT (5*HZ)
59
60#define HAVE_TOUCHPAD_SENSITIVITY_SETTING
61
62#define HAVE_HARDWARE_BEEP
63
64#endif /* BOOTLOADER */
65
66#define CONFIG_KEYPAD GIGABEAT_PAD
67
68/* Define this to enable morse code input */
69#define HAVE_MORSE_INPUT
70
71/* Define this if you do software codec */
72#define CONFIG_CODEC SWCODEC
73
74/* define this if you have a real-time clock */
75#define CONFIG_RTC RTC_S3C2440
76
77/* define this if you have a disk storage, i.e. something
78 that needs spinups and can cause skips when shaked */
79#define HAVE_DISK_STORAGE
80
81/* Define this for LCD backlight available */
82#define HAVE_BACKLIGHT
83
84#define HAVE_BUTTON_LIGHT
85
86#define HAVE_BACKLIGHT_BRIGHTNESS
87
88#define HAVE_BUTTONLIGHT_BRIGHTNESS
89
90/* Main LCD backlight brightness range and defaults */
91#define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
92#define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
93#define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
94
95/* Define this if you have a software controlled poweroff */
96#define HAVE_SW_POWEROFF
97
98/* The number of bytes reserved for loadable codecs */
99#define CODEC_SIZE 0x100000
100
101/* The number of bytes reserved for loadable plugins */
102#define PLUGIN_BUFFER_SIZE 0x80000
103
104#define AB_REPEAT_ENABLE 1
105
106/* Define this if you have the WM8975 audio codec */
107#define HAVE_WM8751
108
109/* Define this if you want to use the adaptive bass capibility of the 8751 */
110/* #define USE_ADAPTIVE_BASS */
111
112#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
113 SAMPR_CAP_11)
114
115/* All exact rates for 16.9344MHz clock */
116#define CODEC_SRCTRL_11025HZ (0x19 << 1)
117#define CODEC_SRCTRL_22050HZ (0x1b << 1)
118#define CODEC_SRCTRL_44100HZ (0x11 << 1)
119#define CODEC_SRCTRL_88200HZ (0x1f << 1)
120
121#define HAVE_HEADPHONE_DETECTION
122
123#define BATTERY_CAPACITY_DEFAULT 830 /* default battery capacity */
124#define BATTERY_CAPACITY_MIN 830 /* min. capacity selectable */
125#define BATTERY_CAPACITY_MAX 830 /* max. capacity selectable */
126#define BATTERY_CAPACITY_INC 25 /* capacity increment */
127#define BATTERY_TYPES_COUNT 1 /* only one type */
128
129/* Hardware controlled charging with monitoring */
130#define CONFIG_CHARGING CHARGING_MONITOR
131
132/* define current usage levels */
133#define CURRENT_NORMAL 46 /* 18 hours from an 830 mah battery*/
134#define CURRENT_BACKLIGHT 30 /* seems reasonable */
135#define CURRENT_RECORD 0 /* no recording on the gigabeat F/X */
136
137/* define this if the unit can be powered or charged via USB */
138#define HAVE_USB_POWER
139
140/* define this if the unit has a battery switch or battery can be removed
141 * when running */
142#define HAVE_BATTERY_SWITCH
143
144#define HAVE_LCD_FLIP
145
146/* Define this if your LCD can set contrast */
147#define HAVE_LCD_CONTRAST
148
149#define MIN_CONTRAST_SETTING 0
150#define MAX_CONTRAST_SETTING 63
151#define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
152
153/* LCD invert - does not currently work */
154/* #define HAVE_LCD_INVERT */
155
156/* Define this if you have a Motorola SCF5249 */
157#define CONFIG_CPU S3C2440
158
159/* Define this if you want to use coldfire's i2c interface */
160#define CONFIG_I2C I2C_S3C2440
161
162/* define this if the hardware can be powered off while charging */
163#define HAVE_POWEROFF_WHILE_CHARGING
164
165/* The size of the flash ROM */
166#define FLASH_SIZE 0x400000
167
168/* Define this to the CPU frequency */
169#define CPU_FREQ 16934400
170
171/* Define this if you have ATA power-off control */
172#define HAVE_ATA_POWER_OFF
173
174#define CONFIG_LCD LCD_GIGABEAT
175
176/* Offset ( in the firmware file's header ) to the file CRC */
177#define FIRMWARE_OFFSET_FILE_CRC 0
178
179/* Offset ( in the firmware file's header ) to the real data */
180#define FIRMWARE_OFFSET_FILE_DATA 8
181
182/* Define this if you have adjustable CPU frequency */
183/* #define HAVE_ADJUSTABLE_CPU_FREQ */
184
185#define BOOTFILE_EXT "gigabeat"
186#define BOOTFILE "rockbox." BOOTFILE_EXT
187#define BOOTDIR "/.rockbox"
188
diff --git a/firmware/export/config/gigabeats.h b/firmware/export/config/gigabeats.h
new file mode 100644
index 0000000000..7f55797a07
--- /dev/null
+++ b/firmware/export/config/gigabeats.h
@@ -0,0 +1,216 @@
1/*
2 * This config file is for toshiba Gigabeat S
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7#define TOSHIBA_GIGABEAT_S 1
8
9#define MODEL_NAME "Toshiba Gigabeat S"
10
11/* For Rolo and boot loader */
12#define MODEL_NUMBER 21
13
14/* define this if you use an ATA controller */
15#define CONFIG_STORAGE STORAGE_ATA
16
17/* define this if you have a bitmap LCD display */
18#define HAVE_LCD_BITMAP
19
20/* define this if you have a colour LCD */
21#define HAVE_LCD_COLOR
22
23/* define this if you want album art for this target */
24#define HAVE_ALBUMART
25
26/* define this to enable bitmap scaling */
27#define HAVE_BMP_SCALING
28
29/* define this to enable JPEG decoding */
30#define HAVE_JPEG
31
32/* define this if you have access to the quickscreen */
33#define HAVE_QUICKSCREEN
34
35/* define this if you have access to the pitchscreen */
36#define HAVE_PITCHSCREEN
37
38/* define this if you would like tagcache to build on this target */
39#define HAVE_TAGCACHE
40
41/* define this if the target has volume keys which can be used in the lists */
42#define HAVE_VOLUME_IN_LIST
43
44/* LCD dimensions */
45#define LCD_WIDTH 240
46#define LCD_HEIGHT 320
47#define LCD_DEPTH 16 /* 65k colours */
48#define LCD_PIXELFORMAT RGB565 /* rgb565 */
49
50#define CONFIG_KEYPAD GIGABEAT_S_PAD
51
52/* Define this to enable morse code input */
53#define HAVE_MORSE_INPUT
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_MC13783
60
61/* Define if the device can wake from an RTC alarm */
62#define HAVE_RTC_ALARM
63
64/* Define this for LCD backlight available */
65#define HAVE_BACKLIGHT
66
67/* define this if you have a disk storage, i.e. something
68 that needs spinups and can cause skips when shaked */
69#define HAVE_DISK_STORAGE
70
71/* Define this if you have a software controlled poweroff */
72#define HAVE_SW_POWEROFF
73
74/* The number of bytes reserved for loadable codecs */
75#define CODEC_SIZE 0x100000
76
77/* The number of bytes reserved for loadable plugins */
78#define PLUGIN_BUFFER_SIZE 0x80000
79
80/* Define this if you have a SI4700 fm radio tuner */
81#define CONFIG_TUNER SI4700
82
83/* Define this if you have the WM8978 audio codec */
84#define HAVE_WM8978
85
86/* Define bitmask of input sources - recordable bitmask can be defined
87 explicitly if different */
88#define INPUT_SRC_CAPS SRC_CAP_FMRADIO
89
90/* define the bitmask of hardware sample rates */
91#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
92 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
93 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
94
95/* define the bitmask of recording sample rates */
96#define REC_SAMPR_CAPS HW_SAMPR_CAPS /* Same as playback */
97
98/* define default recording levels */
99#define DEFAULT_REC_LEFT_GAIN 0
100#define DEFAULT_REC_RIGHT_GAIN 0
101
102/* Define this if you have recording capability */
103#define HAVE_RECORDING
104
105/* Define this if your LCD can be put to sleep. */
106#define HAVE_LCD_SLEEP
107/* We don't use a setting but a fixed delay after the backlight has
108 * turned off */
109#define LCD_SLEEP_TIMEOUT (2*HZ)
110
111/* Define this if your LCD can be enabled/disabled */
112#define HAVE_LCD_ENABLE
113
114#ifndef BOOTLOADER
115
116#define HAVE_BACKLIGHT_BRIGHTNESS
117
118/* Main LCD backlight brightness range and defaults */
119#define MIN_BRIGHTNESS_SETTING 1
120#define MAX_BRIGHTNESS_SETTING 24
121#define DEFAULT_BRIGHTNESS_SETTING 12
122
123/* Implementation-defined fading type with bool settings */
124#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_TARGET
125
126#define HAVE_HEADPHONE_DETECTION
127#endif /* BOOTLOADER */
128
129#define CONFIG_CPU IMX31L
130
131/* Define this if you want to use imx31l's i2c interface */
132#define CONFIG_I2C I2C_IMX31L
133
134/* Define the bitmask of modules used */
135#define SPI_MODULE_MASK (USE_CSPI2_MODULE)
136#define I2C_MODULE_MASK (USE_I2C1_MODULE | USE_I2C2_MODULE)
137#define GPIO_EVENT_MASK (USE_GPIO1_EVENTS)
138
139/* Define this if target has an additional number of threads specific to it */
140#define TARGET_EXTRA_THREADS 2
141
142/* Type of mobile power - check this out */
143#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
144#define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
145#define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
146#define BATTERY_CAPACITY_INC 25 /* capacity increment */
147#define BATTERY_TYPES_COUNT 1 /* only one type */
148
149/* TODO: have a proper status displayed in the bootloader and have it
150 * work! */
151/* Charing implemented in a target-specific algorithm */
152#define CONFIG_CHARGING CHARGING_TARGET
153
154/* define this if the hardware can be powered off while charging */
155#define HAVE_POWEROFF_WHILE_CHARGING
156
157/* The size of the flash ROM */
158#define FLASH_SIZE 0x200000
159
160/* Define this to the CPU frequency */
161/* TODO */
162#define CPU_FREQ 264000000 /* Set by retailOS loader */
163
164/* define this if the unit can be powered or charged via USB */
165#define HAVE_USB_POWER
166#define USBPOWER_BUTTON BUTTON_MENU
167#define USBPOWER_BTN_IGNORE BUTTON_POWER
168
169/* define this if the unit has a battery switch or battery can be removed
170 * when running */
171#define HAVE_BATTERY_SWITCH
172
173/* USB On-the-go */
174#define CONFIG_USBOTG USBOTG_ARC
175
176/* enable these for the usb stack */
177#define USE_ROCKBOX_USB
178#define HAVE_USBSTACK
179/* usb stack and driver settings */
180#define USB_PORTSCX_PHY_TYPE PORTSCX_PTS_ULPI
181#define USB_VENDOR_ID 0x0930
182#define USB_PRODUCT_ID 0x0010
183#define HAVE_USB_HID_MOUSE
184
185/* Define this if you have ATA power-off control */
186#define HAVE_ATA_POWER_OFF
187
188/* Define this to add support for ATA DMA */
189#define HAVE_ATA_DMA
190
191#define CONFIG_LCD LCD_GIGABEAT
192
193/* Offset ( in the firmware file's header ) to the file CRC */
194#define FIRMWARE_OFFSET_FILE_CRC 0
195
196/* Offset ( in the firmware file's header ) to the real data */
197#define FIRMWARE_OFFSET_FILE_DATA 8
198
199//#define HAVE_SERIAL
200#define HAVE_VOLUME_IN_LIST
201
202/*Remove Comments from UART_INT to enable the UART interrupts,*/
203/*otherwise iterrupts will be disabled. For now we will test */
204/*UART state by polling the registers, and if necessary update this */
205/*method by using the interrupts instead*/
206//#define UART_INT
207
208/* Define this if you have adjustable CPU frequency */
209/* #define HAVE_ADJUSTABLE_CPU_FREQ */
210
211#define HAVE_PCM_DMA_ADDRESS
212
213#define BOOTFILE_EXT "gigabeat"
214#define BOOTFILE "rockbox." BOOTFILE_EXT
215#define BOOTDIR "/.rockbox"
216
diff --git a/firmware/export/config/gogearhdd1630.h b/firmware/export/config/gogearhdd1630.h
new file mode 100644
index 0000000000..c9a3b035ca
--- /dev/null
+++ b/firmware/export/config/gogearhdd1630.h
@@ -0,0 +1,202 @@
1/*
2 * This config file is for the Philips GoGear HDD16x0/HDD63x0
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 31
9#define MODEL_NAME "Philips GoGear HDD16x0"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13
14/* define this if you have recording possibility */
15#define HAVE_RECORDING
16
17/* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
20
21/* define the bitmask of hardware sample rates */
22#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
23 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
24
25/* define the bitmask of recording sample rates */
26#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
27 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
28
29/* define this if you have a bitmap LCD display */
30#define HAVE_LCD_BITMAP
31
32/* define this if you have a colour LCD */
33#define HAVE_LCD_COLOR
34
35/* define this if you want album art for this target */
36#define HAVE_ALBUMART
37
38/* define this to enable bitmap scaling */
39#define HAVE_BMP_SCALING
40
41/* define this to enable JPEG decoding */
42#define HAVE_JPEG
43
44/* define this if you have access to the quickscreen */
45#define HAVE_QUICKSCREEN
46
47/* define this if you have access to the pitchscreen */
48#define HAVE_PITCHSCREEN
49
50/* define this if you would like tagcache to build on this target */
51#define HAVE_TAGCACHE
52
53/* LCD dimensions */
54#define LCD_WIDTH 128
55#define LCD_HEIGHT 128
56#define LCD_DEPTH 16 /* 65536 colours */
57#define LCD_PIXELFORMAT RGB565 /* rgb565 byte-swapped */
58
59#ifndef BOOTLOADER
60/* Define this if your LCD can be enabled/disabled */
61/* #define HAVE_LCD_ENABLE */
62
63/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
64 * should be defined as well.
65 * We can currently put the lcd to sleep but it won't wake up properly */
66/* #define HAVE_LCD_SLEEP */
67/* #define HAVE_LCD_SLEEP_SETTING */
68#endif
69
70/* define this if you can flip your LCD */
71#define HAVE_LCD_FLIP
72
73/* define this if you can invert the colours on your LCD */
74#define HAVE_LCD_INVERT
75
76/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
77
78#define CONFIG_KEYPAD PHILIPS_HDD1630_PAD
79
80/* Define this to enable morse code input */
81#define HAVE_MORSE_INPUT
82
83/* define this if the target has volume keys which can be used in the lists */
84#define HAVE_VOLUME_IN_LIST
85
86/* Define this if you do software codec */
87#define CONFIG_CODEC SWCODEC
88
89/* define this if you have a real-time clock. The HDD16x0 has a PCF8563 RTC,
90 but it's register compatible with the E8564. */
91#ifndef BOOTLOADER
92#define CONFIG_RTC RTC_E8564
93#define HAVE_RTC_ALARM
94#endif
95
96/* Define this if you have a software controlled poweroff */
97#define HAVE_SW_POWEROFF
98
99/* The number of bytes reserved for loadable codecs */
100#define CODEC_SIZE 0x100000
101
102/* The number of bytes reserved for loadable plugins */
103#define PLUGIN_BUFFER_SIZE 0x80000
104
105/* Define this if you have the WM8731 audio codec */
106#define HAVE_WM8731
107
108/* WM8731 has no tone controls, so we use the software ones */
109#define HAVE_SW_TONE_CONTROLS
110
111/* TODO: #define AB_REPEAT_ENABLE 1 */
112
113/* FM Tuner */
114#define CONFIG_TUNER TEA5767
115#define CONFIG_TUNER_XTAL 32768
116
117/* define this if you have a disk storage, i.e. something
118 that needs spinups and can cause skips when shaked */
119#define HAVE_DISK_STORAGE
120
121/* Define this for LCD backlight available */
122#define HAVE_BACKLIGHT
123#define HAVE_BACKLIGHT_BRIGHTNESS
124/* #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING */
125
126/* Main LCD backlight brightness range and defaults */
127#define MIN_BRIGHTNESS_SETTING 1
128#define MAX_BRIGHTNESS_SETTING 16
129#define DEFAULT_BRIGHTNESS_SETTING 13 /* match OF brightness */
130
131/* define this if you have a light associated with the buttons */
132#define HAVE_BUTTON_LIGHT
133#define HAVE_BUTTONLIGHT_BRIGHTNESS
134
135#define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
136#define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
137#define BATTERY_CAPACITY_MAX 630 /* max. capacity selectable */
138#define BATTERY_CAPACITY_INC 0 /* capacity increment */
139#define BATTERY_TYPES_COUNT 1 /* only one type */
140
141/* Hardware controlled charging */
142#define CONFIG_CHARGING CHARGING_SIMPLE
143
144/* define this if the unit can be powered or charged via USB */
145#define HAVE_USB_POWER
146
147/* Define this if you have a PortalPlayer PP5020 */
148#define CONFIG_CPU PP5022
149
150/* Define this if you want to use the PP5020 i2c interface */
151#define CONFIG_I2C I2C_PP5020
152
153/* define this if the hardware can be powered off while charging */
154#define HAVE_POWEROFF_WHILE_CHARGING
155
156/* The start address index for ROM builds */
157#define ROM_START 0x00000000
158
159/* The size of the flash ROM */
160#define FLASH_SIZE 0x100000
161
162/* Define this to the CPU frequency */
163#define CPU_FREQ 75000000
164
165/* Type of LCD */
166#define CONFIG_LCD LCD_HDD1630
167
168/* Define this if your LCD can set contrast */
169#define HAVE_LCD_CONTRAST
170
171#define MIN_CONTRAST_SETTING 0
172#define MAX_CONTRAST_SETTING 127
173#define DEFAULT_CONTRAST_SETTING 63 /* Match boot contrast */
174
175/* We're able to shut off power to the HDD */
176#define HAVE_ATA_POWER_OFF
177
178/* Offset ( in the firmware file's header ) to the file CRC and data. These are
179 only used when loading the old format rockbox.e200 file */
180#define FIRMWARE_OFFSET_FILE_CRC 0x0
181#define FIRMWARE_OFFSET_FILE_DATA 0x8
182
183/* USB On-the-go */
184#define CONFIG_USBOTG USBOTG_ARC
185
186/* enable these for the experimental usb stack */
187#define HAVE_USBSTACK
188#define USE_ROCKBOX_USB
189#define USB_VENDOR_ID 0x0471
190#define USB_PRODUCT_ID 0x014C
191#define HAVE_USB_HID_MOUSE
192
193/* Define this if you have adjustable CPU frequency */
194#define HAVE_ADJUSTABLE_CPU_FREQ
195
196#define MI4_FORMAT
197#define BOOTFILE_EXT "mi4"
198#define BOOTFILE "rockbox." BOOTFILE_EXT
199#define BOOTDIR "/.rockbox"
200
201#define ICODE_ATTR_TREMOR_NOT_MDCT
202
diff --git a/firmware/export/config/gogearsa9200.h b/firmware/export/config/gogearsa9200.h
new file mode 100644
index 0000000000..d9b9462880
--- /dev/null
+++ b/firmware/export/config/gogearsa9200.h
@@ -0,0 +1,196 @@
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 34
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 to enable bitmap scaling */
22#define HAVE_BMP_SCALING
23
24/* define this to enable JPEG decoding */
25#define HAVE_JPEG
26
27/* define this if you have a light associated with the buttons */
28#define HAVE_BUTTON_LIGHT
29
30/* define this if you have access to the quickscreen */
31#define HAVE_QUICKSCREEN
32
33/* define this if you have access to the pitchscreen */
34#define HAVE_PITCHSCREEN
35
36/* define this if you would like tagcache to build on this target */
37#define HAVE_TAGCACHE
38
39/* LCD dimensions */
40#define LCD_WIDTH 128
41#define LCD_HEIGHT 160
42#define LCD_DEPTH 16 /* 65536 colours */
43#define LCD_PIXELFORMAT RGB565 /* rgb565 */
44
45#ifndef BOOTLOADER
46/* define this if you have LCD enable function */
47#define HAVE_LCD_ENABLE
48
49/* Define this if your LCD can be put to sleep.
50 HAVE_LCD_ENABLE should be defined as well. */
51#define HAVE_LCD_SLEEP
52#define HAVE_LCD_SLEEP_SETTING
53#endif
54
55/* define this if you can flip your LCD */
56#define HAVE_LCD_FLIP
57
58/* define this if you can invert the colours on your LCD */
59#define HAVE_LCD_INVERT
60
61/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
62
63#define CONFIG_KEYPAD PHILIPS_SA9200_PAD
64
65/* Define this to enable morse code input */
66#define HAVE_MORSE_INPUT
67
68/* define this if the target has volume keys which can be used in the lists */
69#define HAVE_VOLUME_IN_LIST
70
71/* Define this if you do software codec */
72#define CONFIG_CODEC SWCODEC
73
74/* There is no hardware tone control */
75#define HAVE_SW_TONE_CONTROLS
76
77/* The PP5024 has a built-in AustriaMicrosystems AS3514 */
78#define HAVE_AS3514
79
80/* define this if you have a real-time clock */
81#ifndef BOOTLOADER
82#define CONFIG_RTC RTC_AS3514
83#endif
84
85/* Define this if you have a software controlled poweroff */
86#define HAVE_SW_POWEROFF
87
88/* Some Sansa E200s seem to be FAT16 formatted */
89#define HAVE_FAT16SUPPORT
90
91/* The number of bytes reserved for loadable codecs */
92#define CODEC_SIZE 0x100000
93
94/* The number of bytes reserved for loadable plugins */
95#define PLUGIN_BUFFER_SIZE 0x80000
96
97#define AB_REPEAT_ENABLE 1
98
99/* Define this for LCD backlight available */
100#define HAVE_BACKLIGHT
101#define HAVE_BACKLIGHT_BRIGHTNESS
102
103/* Main LCD backlight brightness range and defaults */
104#define MIN_BRIGHTNESS_SETTING 1
105#define MAX_BRIGHTNESS_SETTING 12
106#define DEFAULT_BRIGHTNESS_SETTING 6
107
108/* Which backlight fading type? */
109#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
110
111/* define this if you have a light associated with the buttons */
112#define HAVE_BUTTON_LIGHT
113/* Can't control the brightness on all the buttons */
114/* #define HAVE_BUTTONLIGHT_BRIGHTNESS */
115
116/* define this if you have a flash memory storage */
117#define HAVE_FLASH_STORAGE
118
119/* define this if the flash memory uses the SecureDigital Memory Card protocol */
120#define CONFIG_STORAGE STORAGE_SD
121
122#define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
123#define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
124#define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
125#define BATTERY_CAPACITY_INC 0 /* capacity increment */
126#define BATTERY_TYPES_COUNT 1 /* only one type */
127
128/* Charging implemented in a target-specific algorithm */
129#define CONFIG_CHARGING CHARGING_TARGET
130#define HAVE_POWEROFF_WHILE_CHARGING
131
132/* define current usage levels (copied from the e200v1 )*/
133#define CURRENT_NORMAL 30 /* Toni's measurements in Nov 2008 */
134#define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
135#define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
136
137/* define this if the unit can be powered or charged via USB */
138#define HAVE_USB_POWER
139
140/* Define this if you have a PortalPlayer PP5024 */
141#define CONFIG_CPU PP5024
142
143/* Define this if you want to use the PP5024 i2c interface */
144#define CONFIG_I2C I2C_PP5024
145
146/* define this if the hardware can be powered off while charging */
147/* Sansa can't be powered off while charging */
148/* #define HAVE_POWEROFF_WHILE_CHARGING */
149
150/* The start address index for ROM builds */
151#define ROM_START 0x00000000
152
153/* Define this to the CPU frequency */
154#define CPU_FREQ 75000000
155
156/* Type of LCD */
157#define CONFIG_LCD LCD_SA9200
158
159/* Define this if your LCD can set contrast */
160#define HAVE_LCD_CONTRAST
161
162#define MIN_CONTRAST_SETTING 0
163#define MAX_CONTRAST_SETTING 31
164#define DEFAULT_CONTRAST_SETTING 22 /* Match boot contrast */
165
166/* USB On-the-go */
167#define CONFIG_USBOTG USBOTG_ARC
168
169/* enable these for the experimental usb stack */
170#define HAVE_USBSTACK
171#define USE_ROCKBOX_USB
172#define USB_VENDOR_ID 0x0471
173#define USB_PRODUCT_ID 0x014f
174#define HAVE_USB_HID_MOUSE
175
176/* WARNING! Enable Rockbox USB mass storage. */
177#ifndef BOOTLOADER
178#define USE_ROCKBOX_USB
179#endif
180
181/* Define this if you have adjustable CPU frequency */
182#define HAVE_ADJUSTABLE_CPU_FREQ
183
184#define MI4_FORMAT
185#define BOOTFILE_EXT "mi4"
186#define BOOTFILE "rockbox." BOOTFILE_EXT
187#define BOOTDIR "/.rockbox"
188
189/* These values are unused, but need to be defined */
190#define FIRMWARE_OFFSET_FILE_CRC 0x0
191#define FIRMWARE_OFFSET_FILE_DATA 0x8
192
193#define ICODE_ATTR_TREMOR_NOT_MDCT
194
195#define INCLUDE_TIMEOUT_API
196
diff --git a/firmware/export/config/iaudio7.h b/firmware/export/config/iaudio7.h
new file mode 100644
index 0000000000..44a6f84b0a
--- /dev/null
+++ b/firmware/export/config/iaudio7.h
@@ -0,0 +1,162 @@
1/*
2 * This config file is for the Iaudio7 series
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 32
8#define MODEL_NAME "Cowon iAudio7"
9
10/* define this if you have recording possibility */
11#define HAVE_RECORDING
12
13/* Define bitmask of input sources - recordable bitmask can be defined
14 explicitly if different */
15#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
16
17/* FM Tuner */
18#define CONFIG_TUNER LV24020LP
19#define HAVE_TUNER_PWR_CTRL
20
21/* Define this for FM radio input available */
22#define HAVE_FMRADIO_IN
23
24/* define hardware samples rate caps mask */
25#define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
26
27/* define the bitmask of recording sample rates */
28#define REC_SAMPR_CAPS (SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
29
30/* define this if you have a bitmap LCD display */
31#define HAVE_LCD_BITMAP
32
33/* define this if you have a colour LCD */
34#define HAVE_LCD_COLOR
35
36/* define this if you can flip your LCD */
37//#define HAVE_LCD_FLIP
38
39/* define this if you can invert the colours on your LCD */
40//#define HAVE_LCD_INVERT
41
42/* define this if you want album art for this target */
43#define HAVE_ALBUMART
44
45/* define this to enable bitmap scaling */
46#define HAVE_BMP_SCALING
47
48/* define this to enable JPEG decoding */
49#define HAVE_JPEG
50
51/* define this if you have access to the quickscreen */
52#define HAVE_QUICKSCREEN
53
54/* define this if you have access to the pitchscreen */
55#define HAVE_PITCHSCREEN
56
57/* define this if you have LCD enable function */
58#define HAVE_LCD_ENABLE
59
60/* define this if you would like tagcache to build on this target */
61#define HAVE_TAGCACHE
62
63#define HAVE_FAT16SUPPORT
64
65#if 0 && !defined(SIMULATOR) /* Enable for USB driver test */
66#define HAVE_USBSTACK
67#define USB_VENDOR_ID 0x0e21
68#define USB_PRODUCT_ID 0x0750
69#endif
70
71/* define this if you have a flash memory storage */
72#define HAVE_FLASH_STORAGE
73
74#define CONFIG_STORAGE STORAGE_NAND
75
76#define CONFIG_NAND NAND_TCC
77
78/* LCD dimensions */
79#define LCD_WIDTH 160
80#define LCD_HEIGHT 128
81/* 16bits for now... */
82#define LCD_DEPTH 16 /* 262144 colours */
83#define LCD_PIXELFORMAT RGB565 /*rgb565*/
84
85/*#define LCD_PIXELFORMAT VERTICAL_PACKING*/
86
87/* define this to indicate your device's keypad */
88#define CONFIG_KEYPAD IAUDIO67_PAD
89
90/* #define HAVE_BUTTON_DATA */
91
92/* define this if you have a real-time clock */
93#define CONFIG_RTC RTC_PCF50606
94
95/* define this if you have RTC RAM available for settings */
96//#define HAVE_RTC_RAM
97
98/* Define this if you have a software controlled poweroff */
99#define HAVE_SW_POWEROFF
100
101/* Reduce Tremor's ICODE usage */
102#define ICODE_ATTR_TREMOR_NOT_MDCT
103
104/* The number of bytes reserved for loadable codecs */
105#define CODEC_SIZE 0x100000
106
107/* The number of bytes reserved for loadable plugins */
108#define PLUGIN_BUFFER_SIZE 0x80000
109
110#define AB_REPEAT_ENABLE 1
111
112/* Define this if you do software codec */
113#define CONFIG_CODEC SWCODEC
114
115/* The iaudio7 uses built-in WM8731 codec */
116#define HAVE_WM8731
117/* Codec is slave on serial bus */
118#define CODEC_SLAVE
119
120/* WM8731 has no tone controls, so we use the software ones */
121#define HAVE_SW_TONE_CONTROLS
122
123/* Define this for LCD backlight available */
124#define HAVE_BACKLIGHT
125
126#define CONFIG_I2C I2C_TCC77X
127
128#define BATTERY_CAPACITY_DEFAULT 540 /* default battery capacity */
129#define BATTERY_CAPACITY_MIN 540 /* min. capacity selectable */
130#define BATTERY_CAPACITY_MAX 540 /* max. capacity selectable */
131#define BATTERY_CAPACITY_INC 50 /* capacity increment */
132#define BATTERY_TYPES_COUNT 1 /* only one type */
133
134#define CONFIG_CHARGING CHARGING_SIMPLE
135
136/* Define this if you have a TCC770 */
137#define CONFIG_CPU TCC770
138
139/* Define this if you have ATA power-off control */
140#define HAVE_ATA_POWER_OFF
141
142/* Define this to the CPU frequency */
143#define CPU_FREQ 120000000
144
145/* Offset ( in the firmware file's header ) to the file CRC */
146#define FIRMWARE_OFFSET_FILE_CRC 0
147
148/* Offset ( in the firmware file's header ) to the real data */
149#define FIRMWARE_OFFSET_FILE_DATA 8
150
151#define CONFIG_LCD LCD_IAUDIO67
152
153#define BOOTFILE_EXT "iaudio"
154#define BOOTFILE "rockbox." BOOTFILE_EXT
155#define BOOTDIR "/.rockbox"
156
157#ifdef BOOTLOADER
158#define TCCBOOT
159#endif
160
161#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
162
diff --git a/firmware/export/config/iaudiom3.h b/firmware/export/config/iaudiom3.h
new file mode 100644
index 0000000000..99c4605be0
--- /dev/null
+++ b/firmware/export/config/iaudiom3.h
@@ -0,0 +1,171 @@
1/*
2 * This config file is for iAudio M3
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 25
8
9#define MODEL_NAME "iAudio M3"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13
14/* define this if you have recording possibility */
15#define HAVE_RECORDING
16
17/* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
20
21/* define the bitmask of hardware sample rates */
22#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
23
24/* define the bitmask of recording sample rates */
25#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
26
27/* define this if you have a bitmap LCD display */
28#define HAVE_LCD_BITMAP
29
30/* define this if you want album art for this target */
31#define HAVE_ALBUMART
32
33/* define this to enable bitmap scaling */
34#define HAVE_BMP_SCALING
35
36/* define this to enable JPEG decoding */
37#define HAVE_JPEG
38
39/* define this if you can flip your LCD */
40#define HAVE_LCD_FLIP
41
42/* define this if you can invert the colours on your LCD */
43#define HAVE_LCD_INVERT
44
45/* define this if you have access to the quickscreen */
46#define HAVE_QUICKSCREEN
47
48/* define this if you have access to the pitchscreen */
49#define HAVE_PITCHSCREEN
50
51/* define this if you would like tagcache to build on this target */
52#define HAVE_TAGCACHE
53
54/* LCD dimensions */
55#define LCD_WIDTH 128
56#define LCD_HEIGHT 96
57#define LCD_DEPTH 2
58
59#define LCD_PIXELFORMAT VERTICAL_INTERLEAVED
60
61/* Display colours, for screenshots and sim (0xRRGGBB) */
62#define LCD_DARKCOLOR 0x000000
63#define LCD_BRIGHTCOLOR 0x5a915a
64#define LCD_BL_DARKCOLOR 0x000000
65#define LCD_BL_BRIGHTCOLOR 0x82b4fa
66
67/* define this if only the remote has an LCD */
68#define HAVE_REMOTE_LCD_AS_MAIN
69
70#define CONFIG_KEYPAD IAUDIO_M3_PAD
71
72#define AB_REPEAT_ENABLE 1
73#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
74
75/* Define this if you do software codec */
76#define CONFIG_CODEC SWCODEC
77
78/* define this if you have a real-time clock */
79/* #define CONFIG_RTC FIXME: most probably none */
80
81#define CONFIG_LCD LCD_TL0350A
82
83/* Define this for LCD backlight available */
84#define HAVE_BACKLIGHT
85
86/* define this if you have a disk storage, i.e. something
87 that needs spinups and can cause skips when shaked */
88#define HAVE_DISK_STORAGE
89
90/* Define this if you have a software controlled poweroff */
91#define HAVE_SW_POWEROFF
92
93/* The number of bytes reserved for loadable codecs */
94#define CODEC_SIZE 0x100000
95
96/* The number of bytes reserved for loadable plugins */
97#define PLUGIN_BUFFER_SIZE 0x80000
98
99/* FM Tuner */
100#define CONFIG_TUNER TEA5767
101#define CONFIG_TUNER_XTAL 32768
102
103#define HAVE_TLV320
104
105/* TLV320 has no tone controls, so we use the software ones */
106#define HAVE_SW_TONE_CONTROLS
107
108#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
109#define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
110#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
111#define BATTERY_CAPACITY_INC 50 /* capacity increment */
112#define BATTERY_TYPES_COUNT 1 /* only one type */
113
114/* Hardware controlled charging? FIXME */
115#define CONFIG_CHARGING CHARGING_SIMPLE
116
117/* define current usage levels */
118#define CURRENT_REMOTE 8 /* additional current when remote connected */
119
120/* Define this if your LCD can set contrast */
121#define HAVE_LCD_CONTRAST
122
123/* Define this if you have a Motorola SCF5249 */
124#define CONFIG_CPU MCF5249
125
126/* Define this if you want to use coldfire's i2c interface */
127#define CONFIG_I2C I2C_COLDFIRE
128
129/* define this if the hardware can be powered off while charging */
130#define HAVE_POWEROFF_WHILE_CHARGING
131
132/* The size of the flash ROM */
133#define FLASH_SIZE 0x400000
134
135/* Define this to the CPU frequency */
136#define CPU_FREQ 11289600
137
138/* Define this if you have ATA power-off control */
139#define HAVE_ATA_POWER_OFF
140
141/* FIXME: implement hardware LED handling */
142/* #define CONFIG_LED LED_REAL */
143
144/* Offset ( in the firmware file's header ) to the file CRC */
145#define FIRMWARE_OFFSET_FILE_CRC 0
146
147/* Offset ( in the firmware file's header ) to the real data */
148#define FIRMWARE_OFFSET_FILE_DATA 8
149
150/* Define this if you have adjustable CPU frequency */
151#define HAVE_ADJUSTABLE_CPU_FREQ
152
153#define BOOTFILE_EXT "iaudio"
154#define BOOTFILE "rockbox." BOOTFILE_EXT
155#define BOOTDIR "/.rockbox"
156
157#define BOOTLOADER_ENTRYPOINT 0x001F0000
158#define FLASH_ENTRYPOINT 0x00001000
159#define FLASH_MAGIC 0xfbfbfbf1
160
161/* Define this for FM radio input available */
162#define HAVE_FMRADIO_IN
163
164/** Port-specific settings **/
165
166/* Main LCD contrast range and defaults */
167#define MIN_CONTRAST_SETTING 10
168#define MAX_CONTRAST_SETTING 35
169#define DEFAULT_CONTRAST_SETTING 24
170
171#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
diff --git a/firmware/export/config/iaudiom5.h b/firmware/export/config/iaudiom5.h
new file mode 100644
index 0000000000..03add43dbf
--- /dev/null
+++ b/firmware/export/config/iaudiom5.h
@@ -0,0 +1,192 @@
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 MODEL_NAME "iAudio M5"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13
14/* define this if you have recording possibility */
15#define HAVE_RECORDING
16
17/* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19#ifdef HAVE_FMRADIO_IN /* FM modded M5 */
20#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
21#else /* stock M5 */
22#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
23#endif
24
25/* define the bitmask of hardware sample rates */
26#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
27
28/* define the bitmask of recording sample rates */
29#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
30
31/* define this if you have a bitmap LCD display */
32#define HAVE_LCD_BITMAP
33
34/* define this if you want album art for this target */
35#define HAVE_ALBUMART
36
37/* define this to enable bitmap scaling */
38#define HAVE_BMP_SCALING
39
40/* define this to enable JPEG decoding */
41#define HAVE_JPEG
42
43/* define this if you can flip your LCD */
44#define HAVE_LCD_FLIP
45
46/* define this if you can invert the colours on your LCD */
47#define HAVE_LCD_INVERT
48
49/* define this if you have access to the quickscreen */
50#define HAVE_QUICKSCREEN
51
52/* define this if you have access to the pitchscreen */
53#define HAVE_PITCHSCREEN
54
55/* define this if you would like tagcache to build on this target */
56#define HAVE_TAGCACHE
57
58/* LCD dimensions */
59#define LCD_WIDTH 160
60#define LCD_HEIGHT 128
61#define LCD_DEPTH 2
62
63#define LCD_PIXELFORMAT VERTICAL_PACKING
64
65/* Display colours, for screenshots and sim (0xRRGGBB) */
66#define LCD_DARKCOLOR 0x000000
67#define LCD_BRIGHTCOLOR 0x648764
68#define LCD_BL_DARKCOLOR 0x000000
69#define LCD_BL_BRIGHTCOLOR 0xdfd8ff
70
71/* remote LCD */
72#define LCD_REMOTE_WIDTH 128
73#define LCD_REMOTE_HEIGHT 96
74#define LCD_REMOTE_DEPTH 2
75
76#define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
77
78/* Remote display colours, for screenshots and sim (0xRRGGBB) */
79#define LCD_REMOTE_DARKCOLOR 0x000000
80#define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
81#define LCD_REMOTE_BL_DARKCOLOR 0x000000
82#define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
83
84#define CONFIG_KEYPAD IAUDIO_X5M5_PAD
85
86/* Define this to enable morse code input */
87#define HAVE_MORSE_INPUT
88
89#define AB_REPEAT_ENABLE 1
90#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
91
92/* Define this if you do software codec */
93#define CONFIG_CODEC SWCODEC
94
95/* define this if you have a real-time clock */
96#define CONFIG_RTC RTC_PCF50606
97
98/* Define this if you have an remote lcd */
99#define HAVE_REMOTE_LCD
100
101#define CONFIG_LCD LCD_S1D15E06
102
103/* Define this for LCD backlight available */
104#define HAVE_BACKLIGHT
105
106/* define this if you have a disk storage, i.e. something
107 that needs spinups and can cause skips when shaked */
108#define HAVE_DISK_STORAGE
109
110/* Define this if you have a software controlled poweroff */
111#define HAVE_SW_POWEROFF
112
113/* The number of bytes reserved for loadable codecs */
114#define CODEC_SIZE 0x100000
115
116/* The number of bytes reserved for loadable plugins */
117#define PLUGIN_BUFFER_SIZE 0x80000
118
119#ifdef HAVE_FMRADIO_IN /* FM modded M5 */
120/* FM Tuner */
121#define CONFIG_TUNER TEA5767
122#define CONFIG_TUNER_XTAL 32768
123#endif
124
125#define HAVE_TLV320
126
127/* TLV320 has no tone controls, so we use the software ones */
128#define HAVE_SW_TONE_CONTROLS
129
130#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
131#define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
132#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
133#define BATTERY_CAPACITY_INC 50 /* capacity increment */
134#define BATTERY_TYPES_COUNT 1 /* only one type */
135
136/* Hardware controlled charging? FIXME */
137#define CONFIG_CHARGING CHARGING_SIMPLE
138
139/* define current usage levels */
140#define CURRENT_REMOTE 8 /* additional current when remote connected */
141
142/* Define this if your LCD can set contrast */
143#define HAVE_LCD_CONTRAST
144
145/* Define this if you have a Motorola SCF5250 */
146#define CONFIG_CPU MCF5250
147
148/* Define this if you want to use coldfire's i2c interface */
149#define CONFIG_I2C I2C_COLDFIRE
150
151/* define this if the hardware can be powered off while charging */
152#define HAVE_POWEROFF_WHILE_CHARGING
153
154/* The size of the flash ROM */
155#define FLASH_SIZE 0x400000
156
157/* Define this to the CPU frequency */
158#define CPU_FREQ 11289600
159
160/* Define this if you have ATA power-off control */
161#define HAVE_ATA_POWER_OFF
162
163/* Offset ( in the firmware file's header ) to the file CRC */
164#define FIRMWARE_OFFSET_FILE_CRC 0
165
166/* Offset ( in the firmware file's header ) to the real data */
167#define FIRMWARE_OFFSET_FILE_DATA 8
168
169/* Define this if you have adjustable CPU frequency */
170#define HAVE_ADJUSTABLE_CPU_FREQ
171
172#define BOOTFILE_EXT "iaudio"
173#define BOOTFILE "rockbox." BOOTFILE_EXT
174#define BOOTDIR "/.rockbox"
175
176#define BOOTLOADER_ENTRYPOINT 0x001F0000
177#define FLASH_ENTRYPOINT 0x00001000
178#define FLASH_MAGIC 0xfbfbfbf1
179
180/** Port-specific settings **/
181
182/* Main LCD contrast range and defaults */
183#define MIN_CONTRAST_SETTING 24
184#define MAX_CONTRAST_SETTING 63
185#define DEFAULT_CONTRAST_SETTING 40
186
187/* Remote LCD contrast range and defaults */
188#define MIN_REMOTE_CONTRAST_SETTING 10
189#define MAX_REMOTE_CONTRAST_SETTING 35
190#define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */
191
192#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
diff --git a/firmware/export/config/iaudiox5.h b/firmware/export/config/iaudiox5.h
new file mode 100644
index 0000000000..bafe51f12d
--- /dev/null
+++ b/firmware/export/config/iaudiox5.h
@@ -0,0 +1,205 @@
1/*
2 * This config file is for iAudio X5
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 10
8
9#define MODEL_NAME "iAudio X5"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13
14/* define this if you have recording possibility */
15#define HAVE_RECORDING
16
17/* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
20
21/* define the bitmask of hardware sample rates */
22#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
23
24/* define the bitmask of recording sample rates */
25#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
26
27/* define this if you have a bitmap LCD display */
28#define HAVE_LCD_BITMAP
29
30/* define this if you can flip your LCD */
31#define HAVE_LCD_FLIP
32
33/* define this if you have a colour LCD */
34#define HAVE_LCD_COLOR
35
36/* define this if you want album art for this target */
37#define HAVE_ALBUMART
38
39/* define this to enable bitmap scaling */
40#define HAVE_BMP_SCALING
41
42/* define this to enable JPEG decoding */
43#define HAVE_JPEG
44
45/* define this if you can invert the colours on your LCD */
46#define HAVE_LCD_INVERT
47
48/* define this if you have access to the quickscreen */
49#define HAVE_QUICKSCREEN
50
51/* define this if you have access to the pitchscreen */
52#define HAVE_PITCHSCREEN
53
54/* define this if you would like tagcache to build on this target */
55#define HAVE_TAGCACHE
56
57/* LCD dimensions */
58#define LCD_WIDTH 160
59#define LCD_HEIGHT 128
60#define LCD_DEPTH 16 /* pseudo 262.144 colors */
61#define LCD_PIXELFORMAT RGB565 /* rgb565 */
62
63/* remote LCD */
64#define LCD_REMOTE_WIDTH 128
65#define LCD_REMOTE_HEIGHT 96
66#define LCD_REMOTE_DEPTH 2
67
68#define LCD_REMOTE_PIXELFORMAT VERTICAL_INTERLEAVED
69
70/* Remote display colours, for screenshots and sim (0xRRGGBB) */
71#define LCD_REMOTE_DARKCOLOR 0x000000
72#define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
73#define LCD_REMOTE_BL_DARKCOLOR 0x000000
74#define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
75
76#ifndef BOOTLOADER
77/* Define this if your LCD can be enabled/disabled */
78#define HAVE_LCD_ENABLE
79
80/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
81 should be defined as well. */
82#define HAVE_LCD_SLEEP
83#define HAVE_LCD_SLEEP_SETTING
84#endif
85
86#define CONFIG_KEYPAD IAUDIO_X5M5_PAD
87
88/* Define this to enable morse code input */
89#define HAVE_MORSE_INPUT
90
91#define AB_REPEAT_ENABLE 1
92#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
93
94/* Define this if you do software codec */
95#define CONFIG_CODEC SWCODEC
96
97/* define this if you have a real-time clock */
98#define CONFIG_RTC RTC_PCF50606
99
100/* Define this if you have an remote lcd */
101#define HAVE_REMOTE_LCD
102
103#define CONFIG_LCD LCD_X5
104
105/* Define this for LCD backlight available */
106#define HAVE_BACKLIGHT
107#define HAVE_BACKLIGHT_BRIGHTNESS
108/* Which backlight fading type? */
109#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
110
111/* define this if you have a disk storage, i.e. something
112 that needs spinups and can cause skips when shaked */
113#define HAVE_DISK_STORAGE
114
115/* Define this if you have a software controlled poweroff */
116#define HAVE_SW_POWEROFF
117
118/* The number of bytes reserved for loadable codecs */
119#define CODEC_SIZE 0x100000
120
121/* The number of bytes reserved for loadable plugins */
122#define PLUGIN_BUFFER_SIZE 0x80000
123
124/* FM Tuner */
125#define CONFIG_TUNER TEA5767
126#define CONFIG_TUNER_XTAL 32768
127
128#define HAVE_TLV320
129
130/* TLV320 has no tone controls, so we use the software ones */
131#define HAVE_SW_TONE_CONTROLS
132
133#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
134#define BATTERY_CAPACITY_MIN 950 /* min. capacity selectable */
135#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
136#define BATTERY_CAPACITY_INC 50 /* capacity increment */
137#define BATTERY_TYPES_COUNT 1 /* only one type */
138
139/* Hardware controlled charging? FIXME */
140#define CONFIG_CHARGING CHARGING_SIMPLE
141
142/* define current usage levels */
143#define CURRENT_REMOTE 8 /* additional current when remote connected */
144
145/* Define this if your LCD can set contrast */
146#define HAVE_LCD_CONTRAST
147
148/* Define this if you have a Motorola SCF5250 */
149#define CONFIG_CPU MCF5250
150
151/* Define this if you want to use coldfire's i2c interface */
152#define CONFIG_I2C I2C_COLDFIRE
153
154/* define this if the hardware can be powered off while charging */
155#define HAVE_POWEROFF_WHILE_CHARGING
156
157/* The size of the flash ROM */
158#define FLASH_SIZE 0x400000
159
160/* Define this to the CPU frequency */
161#define CPU_FREQ 11289600
162
163/* Define this if you have ATA power-off control */
164#define HAVE_ATA_POWER_OFF
165
166/* Offset ( in the firmware file's header ) to the file CRC */
167#define FIRMWARE_OFFSET_FILE_CRC 0
168
169/* Offset ( in the firmware file's header ) to the real data */
170#define FIRMWARE_OFFSET_FILE_DATA 8
171
172/* USB On-the-go */
173#define CONFIG_USBOTG USBOTG_M5636
174
175/* Define this if you have adjustable CPU frequency */
176#define HAVE_ADJUSTABLE_CPU_FREQ
177
178#define BOOTFILE_EXT "iaudio"
179#define BOOTFILE "rockbox." BOOTFILE_EXT
180#define BOOTDIR "/.rockbox"
181
182#define BOOTLOADER_ENTRYPOINT 0x001F0000
183#define FLASH_ENTRYPOINT 0x00001000
184#define FLASH_MAGIC 0xfbfbfbf1
185
186/* Define this for FM radio input available */
187#define HAVE_FMRADIO_IN
188
189/** Port-specific settings **/
190
191/* Main LCD contrast range and defaults */
192#define MIN_CONTRAST_SETTING 1
193#define MAX_CONTRAST_SETTING 30
194#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
195
196/* Main LCD backlight brightness range and defaults */
197/* PCF50506 can output 0%-100% duty cycle but D305A expects %15-100%. */
198#define MIN_BRIGHTNESS_SETTING 1 /* 15/16 (93.75%) */
199#define MAX_BRIGHTNESS_SETTING 13 /* 3/16 (18.75%) */
200#define DEFAULT_BRIGHTNESS_SETTING 8 /* 8/16 (50.00%) = x5 boot default */
201
202/* Remote LCD contrast range and defaults */
203#define MIN_REMOTE_CONTRAST_SETTING 10
204#define MAX_REMOTE_CONTRAST_SETTING 35
205#define DEFAULT_REMOTE_CONTRAST_SETTING 24 /* Match boot contrast */
diff --git a/firmware/export/config/ipod1g2g.h b/firmware/export/config/ipod1g2g.h
new file mode 100644
index 0000000000..cde745e874
--- /dev/null
+++ b/firmware/export/config/ipod1g2g.h
@@ -0,0 +1,171 @@
1/*
2 * This config file is for the Apple iPod 1g and 2g
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define IPOD_ARCH 1
7
8#define MODEL_NAME "Apple iPod 1g/2g"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 19
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have recording possibility
17#define HAVE_RECORDING */
18
19/* define the bitmask of hardware sample rates */
20#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
21 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
22
23/* define the bitmask of recording sample rates
24#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
25 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
26
27/* define this if you have a bitmap LCD display */
28#define HAVE_LCD_BITMAP
29
30/* define this if you want album art for this target */
31#define HAVE_ALBUMART
32
33/* define this to enable bitmap scaling */
34#define HAVE_BMP_SCALING
35
36/* define this to enable JPEG decoding */
37#define HAVE_JPEG
38
39/* define this if you can invert the colours on your LCD */
40#define HAVE_LCD_INVERT
41
42/* define this if the LCD needs to be shutdown */
43#define HAVE_LCD_SHUTDOWN
44
45/* define this if you have access to the quickscreen */
46#define HAVE_QUICKSCREEN
47/* define this if you have access to the pitchscreen */
48#define HAVE_PITCHSCREEN
49
50/* define this if you would like tagcache to build on this target */
51#define HAVE_TAGCACHE
52
53/* LCD dimensions */
54#define LCD_WIDTH 160
55#define LCD_HEIGHT 128
56#define LCD_DEPTH 2 /* 4 colours - 2bpp */
57
58#define LCD_PIXELFORMAT HORIZONTAL_PACKING
59
60/* Display colours, for screenshots and sim (0xRRGGBB) */
61#define LCD_DARKCOLOR 0x000000
62#define LCD_BRIGHTCOLOR 0x648764
63#define LCD_BL_DARKCOLOR 0x000000
64#define LCD_BL_BRIGHTCOLOR 0xdfd8ff
65
66/* define this if you can flip your LCD */
67#define HAVE_LCD_FLIP
68
69#define HAVE_LCD_CONTRAST
70
71/* LCD contrast */
72#define MIN_CONTRAST_SETTING 5
73#define MAX_CONTRAST_SETTING 63
74#define DEFAULT_CONTRAST_SETTING 30 /* Match boot contrast */
75
76#define CONFIG_KEYPAD IPOD_1G2G_PAD
77
78#define HAVE_SCROLLWHEEL
79
80/* Define this to enable morse code input */
81#define HAVE_MORSE_INPUT
82
83/* Define this if you do software codec */
84#define CONFIG_CODEC SWCODEC
85
86/* Define this if you have a software controlled poweroff */
87#define HAVE_SW_POWEROFF
88
89/* The number of bytes reserved for loadable codecs */
90#define CODEC_SIZE 0x100000
91
92/* The number of bytes reserved for loadable plugins */
93#define PLUGIN_BUFFER_SIZE 0x80000
94
95/* Define this if you have the WM8731L audio codec */
96#define HAVE_WM8721
97
98/* define this if you have a disk storage, i.e. something
99 that needs spinups and can cause skips when shaked */
100#define HAVE_DISK_STORAGE
101
102/* WM8721 has no tone controls, so we use the software ones */
103#define HAVE_SW_TONE_CONTROLS
104
105/* Define this for LCD backlight available */
106#define HAVE_BACKLIGHT
107
108/* Define this if the backlight unverts LCD appearance */
109#define HAVE_BACKLIGHT_INVERSION
110
111/* Define this if you can detect headphones */
112#define HAVE_HEADPHONE_DETECTION
113
114#define BATTERY_CAPACITY_DEFAULT 1200 /* default battery capacity */
115#define BATTERY_CAPACITY_MIN 1200 /* min. capacity selectable */
116#define BATTERY_CAPACITY_MAX 1900 /* max. capacity selectable */
117#define BATTERY_CAPACITY_INC 50 /* capacity increment */
118#define BATTERY_TYPES_COUNT 1 /* only one type */
119
120/* Hardware controlled charging? FIXME */
121//#define CONFIG_CHARGING CHARGING_SIMPLE
122
123/* FIXME: Don't shutdown on low battery until we have proper suspend. */
124#define NO_LOW_BATTERY_SHUTDOWN
125
126/* Define this if you have a PortalPlayer PP5002 */
127#define CONFIG_CPU PP5002
128
129/* We're able to shut off power to the HDD */
130#define HAVE_ATA_POWER_OFF
131
132/* Define this if you want to use the PP5002 i2c interface */
133#define CONFIG_I2C I2C_PP5002
134
135/* define this if the hardware can be powered off while charging */
136//#define HAVE_POWEROFF_WHILE_CHARGING
137
138/* The start address index for ROM builds */
139#define ROM_START 0x00000000
140
141/* The size of the flash ROM */
142#define FLASH_SIZE 0x100000
143
144/* Define this to the CPU frequency */
145#define CPU_FREQ 11289600
146
147#define CONFIG_LCD LCD_IPOD2BPP
148
149/* Offset ( in the firmware file's header ) to the file length */
150#define FIRMWARE_OFFSET_FILE_LENGTH 0
151
152/* Offset ( in the firmware file's header ) to the file CRC */
153#define FIRMWARE_OFFSET_FILE_CRC 0
154
155/* Offset ( in the firmware file's header ) to the real data */
156#define FIRMWARE_OFFSET_FILE_DATA 8
157
158#define USB_HANDLED_BY_OF
159/* actually firewire only, but handled like USB */
160
161/* Define this if you have adjustable CPU frequency */
162#define HAVE_ADJUSTABLE_CPU_FREQ
163
164#define BOOTFILE_EXT "ipod"
165#define BOOTFILE "rockbox." BOOTFILE_EXT
166#define BOOTDIR "/.rockbox"
167
168#define ICODE_ATTR_TREMOR_NOT_MDCT
169
170#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
171
diff --git a/firmware/export/config/ipod3g.h b/firmware/export/config/ipod3g.h
new file mode 100644
index 0000000000..e82cc92f56
--- /dev/null
+++ b/firmware/export/config/ipod3g.h
@@ -0,0 +1,175 @@
1/*
2 * This config file is for the Apple iPod 3g
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7#define IPOD_ARCH 1
8
9#define MODEL_NAME "Apple iPod 3g"
10
11/* For Rolo and boot loader */
12#define MODEL_NUMBER 7
13
14/* define this if you use an ATA controller */
15#define CONFIG_STORAGE STORAGE_ATA
16
17/* define this if you have recording possibility */
18/*#define HAVE_RECORDING*/
19
20/* define the bitmask of hardware sample rates */
21#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
22 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
23
24/* define the bitmask of recording sample rates
25#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
26 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
27
28/* define this if you have a bitmap LCD display */
29#define HAVE_LCD_BITMAP
30
31/* define this if you want album art for this target */
32#define HAVE_ALBUMART
33
34/* define this to enable bitmap scaling */
35#define HAVE_BMP_SCALING
36
37/* define this to enable JPEG decoding */
38#define HAVE_JPEG
39
40/* define this if you can invert the colours on your LCD */
41#define HAVE_LCD_INVERT
42
43/* define this if the LCD needs to be shutdown */
44#define HAVE_LCD_SHUTDOWN
45
46/* define this if you have access to the quickscreen */
47#define HAVE_QUICKSCREEN
48/* define this if you have access to the pitchscreen */
49#define HAVE_PITCHSCREEN
50
51/* define this if you would like tagcache to build on this target */
52#define HAVE_TAGCACHE
53
54/* LCD dimensions */
55#define LCD_WIDTH 160
56#define LCD_HEIGHT 128
57#define LCD_DEPTH 2 /* 4 colours - 2bpp */
58
59#define LCD_PIXELFORMAT HORIZONTAL_PACKING
60
61/* Display colours, for screenshots and sim (0xRRGGBB) */
62#define LCD_DARKCOLOR 0x000000
63#define LCD_BRIGHTCOLOR 0x5a915a
64#define LCD_BL_DARKCOLOR 0x000000
65#define LCD_BL_BRIGHTCOLOR 0xadd8e6
66
67/* define this if you can flip your LCD */
68#define HAVE_LCD_FLIP
69
70#define HAVE_LCD_CONTRAST
71
72/* LCD contrast */
73#define MIN_CONTRAST_SETTING 5
74#define MAX_CONTRAST_SETTING 63
75#define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
76
77#define CONFIG_KEYPAD IPOD_3G_PAD
78
79#define HAVE_SCROLLWHEEL
80
81/* Define this to enable morse code input */
82#define HAVE_MORSE_INPUT
83
84/* Define this if you do software codec */
85#define CONFIG_CODEC SWCODEC
86
87/* define this if you have a real-time clock */
88#define CONFIG_RTC RTC_PCF50605
89
90/* Define if the device can wake from an RTC alarm */
91#define HAVE_RTC_ALARM
92
93/* Define this if you can switch on/off the accessory power supply */
94#define HAVE_ACCESSORY_SUPPLY
95
96/* Define this if you have a software controlled poweroff */
97#define HAVE_SW_POWEROFF
98
99/* The number of bytes reserved for loadable codecs */
100#define CODEC_SIZE 0x100000
101
102/* The number of bytes reserved for loadable plugins */
103#define PLUGIN_BUFFER_SIZE 0x80000
104
105/* Define this if you have the WM8731L audio codec */
106#define HAVE_WM8731
107
108/* WM8731 has no tone controls, so we use the software ones */
109#define HAVE_SW_TONE_CONTROLS
110
111/* define this if you have a disk storage, i.e. something
112 that needs spinups and can cause skips when shaked */
113#define HAVE_DISK_STORAGE
114
115/* Define this for LCD backlight available */
116#define HAVE_BACKLIGHT
117
118/* Define this if you can detect headphones */
119#define HAVE_HEADPHONE_DETECTION
120
121#define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
122#define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
123#define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
124#define BATTERY_CAPACITY_INC 10 /* capacity increment */
125#define BATTERY_TYPES_COUNT 1 /* only one type */
126
127/* Hardware controlled charging? FIXME */
128#define CONFIG_CHARGING CHARGING_SIMPLE
129
130/* Define this if you have a PortalPlayer PP5002 */
131#define CONFIG_CPU PP5002
132
133/* We're able to shut off power to the HDD */
134#define HAVE_ATA_POWER_OFF
135
136/* Define this if you want to use the PP5002 i2c interface */
137#define CONFIG_I2C I2C_PP5002
138
139/* define this if the hardware can be powered off while charging */
140//#define HAVE_POWEROFF_WHILE_CHARGING
141
142/* The start address index for ROM builds */
143#define ROM_START 0x00000000
144
145/* The size of the flash ROM */
146#define FLASH_SIZE 0x100000
147
148/* Define this to the CPU frequency */
149#define CPU_FREQ 11289600
150
151#define CONFIG_LCD LCD_IPOD2BPP
152
153/* Offset ( in the firmware file's header ) to the file length */
154#define FIRMWARE_OFFSET_FILE_LENGTH 0
155
156/* Offset ( in the firmware file's header ) to the file CRC */
157#define FIRMWARE_OFFSET_FILE_CRC 0
158
159/* Offset ( in the firmware file's header ) to the real data */
160#define FIRMWARE_OFFSET_FILE_DATA 8
161
162#define USB_HANDLED_BY_OF
163/* actually both firewire and USB, USB isn't handled yet */
164
165/* Define this if you have adjustable CPU frequency */
166#define HAVE_ADJUSTABLE_CPU_FREQ
167
168#define BOOTFILE_EXT "ipod"
169#define BOOTFILE "rockbox." BOOTFILE_EXT
170#define BOOTDIR "/.rockbox"
171
172#define ICODE_ATTR_TREMOR_NOT_MDCT
173
174#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
175
diff --git a/firmware/export/config/ipod4g.h b/firmware/export/config/ipod4g.h
new file mode 100644
index 0000000000..e6bdc35bd8
--- /dev/null
+++ b/firmware/export/config/ipod4g.h
@@ -0,0 +1,209 @@
1/*
2 * This config file is for the Apple iPod 4g Grayscale
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define IPOD_ARCH 1
7
8#define MODEL_NAME "Apple iPod 4g Grayscale"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 8
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have recording possibility */
17#define HAVE_RECORDING
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
22
23/* define the bitmask of hardware sample rates */
24#define HW_SAMPR_CAPS (SAMPR_CAP_44)
25
26/* define the bitmask of recording sample rates */
27#define REC_SAMPR_CAPS (SAMPR_CAP_44)
28
29/* define this if you have a bitmap LCD display */
30#define HAVE_LCD_BITMAP
31
32/* define this if you want album art for this target */
33#define HAVE_ALBUMART
34
35/* define this to enable bitmap scaling */
36#define HAVE_BMP_SCALING
37
38/* define this to enable JPEG decoding */
39#define HAVE_JPEG
40
41/* define this if you can invert the colours on your LCD */
42#define HAVE_LCD_INVERT
43
44/* define this if the LCD needs to be shutdown */
45#define HAVE_LCD_SHUTDOWN
46
47/* define this if you have access to the quickscreen */
48#define HAVE_QUICKSCREEN
49/* define this if you have access to the pitchscreen */
50#define HAVE_PITCHSCREEN
51
52/* define this if you would like tagcache to build on this target */
53#define HAVE_TAGCACHE
54
55/* LCD dimensions */
56#define LCD_WIDTH 160
57#define LCD_HEIGHT 128
58#define LCD_DEPTH 2 /* 4 colours - 2bpp */
59#define LCD_PIXELFORMAT HORIZONTAL_PACKING
60
61/* Display colours, for screenshots and sim (0xRRGGBB) */
62#define LCD_DARKCOLOR 0x000000
63#define LCD_BRIGHTCOLOR 0x5a915a
64#define LCD_BL_DARKCOLOR 0x000000
65#define LCD_BL_BRIGHTCOLOR 0xadd8e6
66
67#define HAVE_LCD_CONTRAST
68
69/* LCD contrast */
70#define MIN_CONTRAST_SETTING 5
71#define MAX_CONTRAST_SETTING 63
72#define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
73
74/* define this if you can flip your LCD */
75#define HAVE_LCD_FLIP
76
77#define CONFIG_KEYPAD IPOD_4G_PAD
78
79/* Define this to enable morse code input */
80#define HAVE_MORSE_INPUT
81
82/* Define this if you do software codec */
83#define CONFIG_CODEC SWCODEC
84
85/* define this if you have a real-time clock */
86#define CONFIG_RTC RTC_PCF50605
87
88/* Define if the device can wake from an RTC alarm */
89#define HAVE_RTC_ALARM
90
91/* Define this if you can switch on/off the accessory power supply */
92#define HAVE_ACCESSORY_SUPPLY
93
94/* Define this if you have a software controlled poweroff */
95#define HAVE_SW_POWEROFF
96
97/* The number of bytes reserved for loadable codecs */
98#define CODEC_SIZE 0x100000
99
100/* The number of bytes reserved for loadable plugins */
101#define PLUGIN_BUFFER_SIZE 0x80000
102
103/* Define this if you have the WM8975 audio codec */
104#define HAVE_WM8975
105
106#define AB_REPEAT_ENABLE 1
107#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
108
109/* define this if you have a disk storage, i.e. something
110 that needs spinups and can cause skips when shaked */
111#define HAVE_DISK_STORAGE
112
113/* Define this for LCD backlight available */
114#define HAVE_BACKLIGHT
115
116/* define this if the unit uses a scrollwheel for navigation */
117#define HAVE_SCROLLWHEEL
118/* define to activate advanced wheel acceleration code */
119#define HAVE_WHEEL_ACCELERATION
120/* define from which rotation speed [degree/sec] on the acceleration starts */
121#define WHEEL_ACCEL_START 270
122/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
123#define WHEEL_ACCELERATION 3
124
125/* Define this if you can detect headphones */
126#define HAVE_HEADPHONE_DETECTION
127
128#define BATTERY_CAPACITY_DEFAULT 630 /* default battery capacity */
129#define BATTERY_CAPACITY_MIN 630 /* min. capacity selectable */
130#define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
131#define BATTERY_CAPACITY_INC 10 /* capacity increment */
132#define BATTERY_TYPES_COUNT 1 /* only one type */
133
134/* Hardware controlled charging? */
135#define CONFIG_CHARGING CHARGING_MONITOR
136
137/* define this if the unit can be powered or charged via USB */
138#define HAVE_USB_POWER
139
140/* define current usage levels */
141#define CURRENT_NORMAL 100 /* MP3: ~10.5h out of 1100mAh battery */
142#define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
143#if defined(HAVE_RECORDING)
144#define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
145#endif
146
147/* Define Apple remote tuner */
148#define CONFIG_TUNER IPOD_REMOTE_TUNER
149#define HAVE_RDS_CAP
150
151/* Define this if you have a PortalPlayer PP5020 */
152#define CONFIG_CPU PP5020
153
154/* Define this if you want to use the PP5020 i2c interface */
155#define CONFIG_I2C I2C_PP5020
156
157/* We're able to shut off power to the HDD */
158#define HAVE_ATA_POWER_OFF
159
160/* define this if the hardware can be powered off while charging */
161//#define HAVE_POWEROFF_WHILE_CHARGING
162
163/* The start address index for ROM builds */
164#define ROM_START 0x00000000
165
166/* The size of the flash ROM */
167#define FLASH_SIZE 0x100000
168
169/* Define this to the CPU frequency */
170#define CPU_FREQ 11289600
171
172#define CONFIG_LCD LCD_IPOD2BPP
173
174/* Offset ( in the firmware file's header ) to the file length */
175#define FIRMWARE_OFFSET_FILE_LENGTH 0
176
177/* Offset ( in the firmware file's header ) to the file CRC */
178#define FIRMWARE_OFFSET_FILE_CRC 0
179
180/* Offset ( in the firmware file's header ) to the real data */
181#define FIRMWARE_OFFSET_FILE_DATA 8
182
183/* USB On-the-go */
184#define CONFIG_USBOTG USBOTG_ARC
185
186/* enable these for the experimental usb stack */
187#define HAVE_USBSTACK
188#define USE_ROCKBOX_USB
189#define USB_VENDOR_ID 0x05ac
190#define USB_PRODUCT_ID 0x1203
191#define HAVE_USB_HID_MOUSE
192
193/* Define this if you have adjustable CPU frequency */
194#define HAVE_ADJUSTABLE_CPU_FREQ
195
196/* Define this if you can read an absolute wheel position */
197#define HAVE_WHEEL_POSITION
198
199#define BOOTFILE_EXT "ipod"
200#define BOOTFILE "rockbox." BOOTFILE_EXT
201#define BOOTDIR "/.rockbox"
202
203#define ICODE_ATTR_TREMOR_NOT_MDCT
204
205#define IPOD_ACCESSORY_PROTOCOL
206#define HAVE_SERIAL
207
208#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
209
diff --git a/firmware/export/config/ipodcolor.h b/firmware/export/config/ipodcolor.h
new file mode 100644
index 0000000000..0f1de4fdba
--- /dev/null
+++ b/firmware/export/config/ipodcolor.h
@@ -0,0 +1,184 @@
1/*
2 * This config file is for the Apple iPod Color/Photo
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define IPOD_ARCH 1
7
8#define MODEL_NAME "Apple iPod Color/Photo"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 3
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have recording possibility */
17#define HAVE_RECORDING
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
22
23/* define the bitmask of hardware sample rates */
24#define HW_SAMPR_CAPS (SAMPR_CAP_44)
25
26/* define the bitmask of recording sample rates */
27#define REC_SAMPR_CAPS (SAMPR_CAP_44)
28
29/* define this if you have a bitmap LCD display */
30#define HAVE_LCD_BITMAP
31
32/* define this if you have a colour LCD */
33#define HAVE_LCD_COLOR
34
35/* define this if you want album art for this target */
36#define HAVE_ALBUMART
37
38/* define this to enable bitmap scaling */
39#define HAVE_BMP_SCALING
40
41/* define this to enable JPEG decoding */
42#define HAVE_JPEG
43
44/* define this if you have access to the quickscreen */
45#define HAVE_QUICKSCREEN
46/* define this if you have access to the pitchscreen */
47#define HAVE_PITCHSCREEN
48
49/* define this if you would like tagcache to build on this target */
50#define HAVE_TAGCACHE
51
52/* LCD dimensions */
53#define LCD_WIDTH 220
54#define LCD_HEIGHT 176
55#define LCD_DEPTH 16 /* 65536 colours */
56#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
57
58/* LCD stays visible without backlight - simulator hint */
59#define HAVE_TRANSFLECTIVE_LCD
60
61#define CONFIG_KEYPAD IPOD_4G_PAD
62
63/* Define this to enable morse code input */
64#define HAVE_MORSE_INPUT
65
66/* Define this if you do software codec */
67#define CONFIG_CODEC SWCODEC
68
69/* define this if you have a real-time clock */
70#define CONFIG_RTC RTC_PCF50605
71
72/* Define if the device can wake from an RTC alarm */
73#define HAVE_RTC_ALARM
74
75/* Define this if you can switch on/off the accessory power supply */
76#define HAVE_ACCESSORY_SUPPLY
77
78/* Define this if you have a software controlled poweroff */
79#define HAVE_SW_POWEROFF
80
81/* The number of bytes reserved for loadable codecs */
82#define CODEC_SIZE 0x100000
83
84/* The number of bytes reserved for loadable plugins */
85#define PLUGIN_BUFFER_SIZE 0x80000
86
87/* Define this if you have the WM8975 audio codec */
88#define HAVE_WM8975
89
90#define AB_REPEAT_ENABLE 1
91#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
92
93/* define this if you have a disk storage, i.e. something
94 that needs spinups and can cause skips when shaked */
95#define HAVE_DISK_STORAGE
96
97/* Define this for LCD backlight available */
98#define HAVE_BACKLIGHT
99
100/* define this if the unit uses a scrollwheel for navigation */
101#define HAVE_SCROLLWHEEL
102/* define to activate advanced wheel acceleration code */
103#define HAVE_WHEEL_ACCELERATION
104/* define from which rotation speed [degree/sec] on the acceleration starts */
105#define WHEEL_ACCEL_START 270
106/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
107#define WHEEL_ACCELERATION 3
108
109/* Define this if you can detect headphones */
110#define HAVE_HEADPHONE_DETECTION
111
112#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
113#define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
114#define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
115#define BATTERY_CAPACITY_INC 10 /* capacity increment */
116#define BATTERY_TYPES_COUNT 1 /* only one type */
117
118/* Hardware controlled charging? */
119#define CONFIG_CHARGING CHARGING_MONITOR
120
121/* define this if the unit can be powered or charged via USB */
122#define HAVE_USB_POWER
123
124/* Define Apple remote tuner */
125#define CONFIG_TUNER IPOD_REMOTE_TUNER
126#define HAVE_RDS_CAP
127
128/* Define this if you have a PortalPlayer PP5020 */
129#define CONFIG_CPU PP5020
130
131/* Define this if you want to use the PP5020 i2c interface */
132#define CONFIG_I2C I2C_PP5020
133
134/* We're able to shut off power to the HDD */
135#define HAVE_ATA_POWER_OFF
136
137/* define this if the hardware can be powered off while charging */
138//#define HAVE_POWEROFF_WHILE_CHARGING
139
140/* The start address index for ROM builds */
141#define ROM_START 0x00000000
142
143/* The size of the flash ROM */
144#define FLASH_SIZE 0x100000
145
146/* Define this to the CPU frequency */
147#define CPU_FREQ 11289600
148
149#define CONFIG_LCD LCD_IPODCOLOR
150
151/* Offset ( in the firmware file's header ) to the file length */
152#define FIRMWARE_OFFSET_FILE_LENGTH 0
153
154/* Offset ( in the firmware file's header ) to the file CRC */
155#define FIRMWARE_OFFSET_FILE_CRC 0
156
157/* Offset ( in the firmware file's header ) to the real data */
158#define FIRMWARE_OFFSET_FILE_DATA 8
159
160/* USB On-the-go */
161#define CONFIG_USBOTG USBOTG_ARC
162
163/* enable these for the experimental usb stack */
164#define HAVE_USBSTACK
165#define USE_ROCKBOX_USB
166#define USB_VENDOR_ID 0x05ac
167#define USB_PRODUCT_ID 0x1204
168#define HAVE_USB_HID_MOUSE
169
170/* Define this if you have adjustable CPU frequency */
171#define HAVE_ADJUSTABLE_CPU_FREQ
172
173/* Define this if you can read an absolute wheel position */
174#define HAVE_WHEEL_POSITION
175
176#define BOOTFILE_EXT "ipod"
177#define BOOTFILE "rockbox." BOOTFILE_EXT
178#define BOOTDIR "/.rockbox"
179
180#define ICODE_ATTR_TREMOR_NOT_MDCT
181
182#define IPOD_ACCESSORY_PROTOCOL
183#define HAVE_SERIAL
184
diff --git a/firmware/export/config/ipodmini1g.h b/firmware/export/config/ipodmini1g.h
new file mode 100644
index 0000000000..129829ffbb
--- /dev/null
+++ b/firmware/export/config/ipodmini1g.h
@@ -0,0 +1,195 @@
1/*
2 * This config file is for the Apple iPod Mini (1st Gen)
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define IPOD_ARCH 1
7
8#define MODEL_NAME "Apple iPod Mini 1g"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 9
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have recording possibility */
17/*#define HAVE_RECORDING*/
18
19/* define the bitmask of hardware sample rates */
20#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
21 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
22
23/* define the bitmask of recording sample rates
24#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
25 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
26
27/* define this if you have a bitmap LCD display */
28#define HAVE_LCD_BITMAP
29
30/* define this if you want album art for this target */
31#define HAVE_ALBUMART
32
33/* define this to enable bitmap scaling */
34#define HAVE_BMP_SCALING
35
36/* define this to enable JPEG decoding */
37#define HAVE_JPEG
38
39/* define this if you can invert the colours on your LCD */
40#define HAVE_LCD_INVERT
41
42/* define this if the LCD needs to be shutdown */
43#define HAVE_LCD_SHUTDOWN
44
45/* define this if you have access to the quickscreen */
46#define HAVE_QUICKSCREEN
47/* define this if you have access to the pitchscreen */
48#define HAVE_PITCHSCREEN
49
50/* define this if you would like tagcache to build on this target */
51#define HAVE_TAGCACHE
52
53/* LCD dimensions */
54#define LCD_WIDTH 138
55#define LCD_HEIGHT 110
56#define LCD_DEPTH 2 /* 4 colours - 2bpp */
57
58#define LCD_PIXELFORMAT HORIZONTAL_PACKING
59
60/* Display colours, for screenshots and sim (0xRRGGBB) */
61#define LCD_DARKCOLOR 0x000000
62#define LCD_BRIGHTCOLOR 0x648764
63#define LCD_BL_DARKCOLOR 0x000000
64#define LCD_BL_BRIGHTCOLOR 0xdfd8ff
65
66#define HAVE_LCD_CONTRAST
67
68/* LCD contrast */
69#define MIN_CONTRAST_SETTING 5
70#define MAX_CONTRAST_SETTING 63
71#define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
72
73/* define this if you can flip your LCD */
74#define HAVE_LCD_FLIP
75
76#define CONFIG_KEYPAD IPOD_4G_PAD
77
78#define HAVE_SCROLLWHEEL
79
80/* Define this to enable morse code input */
81#define HAVE_MORSE_INPUT
82
83/* Define this if you do software codec */
84#define CONFIG_CODEC SWCODEC
85
86/* define this if you have a real-time clock */
87#define CONFIG_RTC RTC_PCF50605
88
89/* Define if the device can wake from an RTC alarm */
90#define HAVE_RTC_ALARM
91
92/* Define this if you can switch on/off the accessory power supply */
93#define HAVE_ACCESSORY_SUPPLY
94
95/* Define this if you have a software controlled poweroff */
96#define HAVE_SW_POWEROFF
97
98/* The number of bytes reserved for loadable codecs */
99#define CODEC_SIZE 0x100000
100
101/* The number of bytes reserved for loadable plugins */
102#define PLUGIN_BUFFER_SIZE 0x80000
103
104/* Define this if you have the WM8721 audio codec */
105#define HAVE_WM8731
106
107/* WM8721 has no tone controls, so we use the software ones */
108#define HAVE_SW_TONE_CONTROLS
109
110#define AB_REPEAT_ENABLE 1
111#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
112
113/* define this if you have a disk storage, i.e. something
114 that needs spinups and can cause skips when shaked */
115#define HAVE_DISK_STORAGE
116
117/* Define this for LCD backlight available */
118#define HAVE_BACKLIGHT
119
120/* We can fade the backlight by using PWM */
121#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
122
123/* Define this if you can detect headphones */
124#define HAVE_HEADPHONE_DETECTION
125
126#define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
127#define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
128#define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
129#define BATTERY_CAPACITY_INC 10 /* capacity increment */
130#define BATTERY_TYPES_COUNT 1 /* only one type */
131
132/* define current usage levels */
133#define CURRENT_NORMAL 50 /* PP5024 uses ~40mA, so add some for disk */
134#define CURRENT_BACKLIGHT 20 /* FIXME: This needs to be measured */
135#define CURRENT_RECORD 110 /* FIXME: Needs to be measured */
136
137/* Hardware controlled charging? */
138#define CONFIG_CHARGING CHARGING_MONITOR
139
140/* define this if the unit can be powered or charged via USB */
141#define HAVE_USB_POWER
142
143/* Define this if you have a PortalPlayer PP5020 */
144#define CONFIG_CPU PP5020
145
146/* Define this if you want to use the PP5020 i2c interface */
147#define CONFIG_I2C I2C_PP5020
148
149/* We're able to shut off power to the HDD */
150#define HAVE_ATA_POWER_OFF
151
152/* define this if the hardware can be powered off while charging */
153//#define HAVE_POWEROFF_WHILE_CHARGING
154
155/* The start address index for ROM builds */
156#define ROM_START 0x00000000
157
158/* The size of the flash ROM */
159#define FLASH_SIZE 0x100000
160
161/* Define this to the CPU frequency */
162#define CPU_FREQ 11289600
163
164#define CONFIG_LCD LCD_IPODMINI
165
166/* Offset ( in the firmware file's header ) to the file length */
167#define FIRMWARE_OFFSET_FILE_LENGTH 0
168
169/* Offset ( in the firmware file's header ) to the file CRC */
170#define FIRMWARE_OFFSET_FILE_CRC 0
171
172/* Offset ( in the firmware file's header ) to the real data */
173#define FIRMWARE_OFFSET_FILE_DATA 8
174
175/* USB On-the-go */
176#define CONFIG_USBOTG USBOTG_ARC
177
178/* enable these for the experimental usb stack */
179#define HAVE_USBSTACK
180#define USE_ROCKBOX_USB
181#define USB_VENDOR_ID 0x05ac
182#define USB_PRODUCT_ID 0x1205
183#define HAVE_USB_HID_MOUSE
184
185/* Define this if you have adjustable CPU frequency */
186#define HAVE_ADJUSTABLE_CPU_FREQ
187
188#define BOOTFILE_EXT "ipod"
189#define BOOTFILE "rockbox." BOOTFILE_EXT
190#define BOOTDIR "/.rockbox"
191
192#define ICODE_ATTR_TREMOR_NOT_MDCT
193
194#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
195
diff --git a/firmware/export/config/ipodmini2g.h b/firmware/export/config/ipodmini2g.h
new file mode 100644
index 0000000000..8087269485
--- /dev/null
+++ b/firmware/export/config/ipodmini2g.h
@@ -0,0 +1,205 @@
1/*
2 * This config file is for the Apple iPod Mini 2nd Gen
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define IPOD_ARCH 1
7
8#define MODEL_NAME "Apple iPod Mini 2g"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 11
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have recording possibility */
17/*#define HAVE_RECORDING*/
18
19/* define the bitmask of hardware sample rates */
20#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
21 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
22
23/* define the bitmask of recording sample rates
24#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
25 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
26
27/* define this if you have a bitmap LCD display */
28#define HAVE_LCD_BITMAP
29
30/* define this if you want album art for this target */
31#define HAVE_ALBUMART
32
33/* define this to enable bitmap scaling */
34#define HAVE_BMP_SCALING
35
36/* define this to enable JPEG decoding */
37#define HAVE_JPEG
38
39/* define this if you can invert the colours on your LCD */
40#define HAVE_LCD_INVERT
41
42/* define this if the LCD needs to be shutdown */
43#define HAVE_LCD_SHUTDOWN
44
45/* define this if you have access to the quickscreen */
46#define HAVE_QUICKSCREEN
47/* define this if you have access to the pitchscreen */
48#define HAVE_PITCHSCREEN
49
50/* define this if you would like tagcache to build on this target */
51#define HAVE_TAGCACHE
52
53/* LCD dimensions */
54#define LCD_WIDTH 138
55#define LCD_HEIGHT 110
56#define LCD_DEPTH 2 /* 4 colours - 2bpp */
57
58#define LCD_PIXELFORMAT HORIZONTAL_PACKING
59
60/* Display colours, for screenshots and sim (0xRRGGBB) */
61#define LCD_DARKCOLOR 0x000000
62#define LCD_BRIGHTCOLOR 0x648764
63#define LCD_BL_DARKCOLOR 0x000000
64#define LCD_BL_BRIGHTCOLOR 0xdfd8ff
65
66#define HAVE_LCD_CONTRAST
67
68/* LCD contrast */
69#define MIN_CONTRAST_SETTING 5
70#define MAX_CONTRAST_SETTING 63
71#define DEFAULT_CONTRAST_SETTING 40 /* Match boot contrast */
72
73/* define this if you can flip your LCD */
74#define HAVE_LCD_FLIP
75
76#define CONFIG_KEYPAD IPOD_4G_PAD
77
78/* Define this to enable morse code input */
79#define HAVE_MORSE_INPUT
80
81/* Define this if you do software codec */
82#define CONFIG_CODEC SWCODEC
83
84/* define this if you have a real-time clock */
85#define CONFIG_RTC RTC_PCF50605
86
87/* Define if the device can wake from an RTC alarm */
88#define HAVE_RTC_ALARM
89
90/* Define this if you can switch on/off the accessory power supply */
91#define HAVE_ACCESSORY_SUPPLY
92
93/* Define this if you have a software controlled poweroff */
94#define HAVE_SW_POWEROFF
95
96/* The number of bytes reserved for loadable codecs */
97#define CODEC_SIZE 0x100000
98
99/* The number of bytes reserved for loadable plugins */
100#define PLUGIN_BUFFER_SIZE 0x80000
101
102/* Define this if you have the WM8711 audio codec */
103#define HAVE_WM8711
104
105/* WM8721 has no tone controls, so we use the software ones */
106#define HAVE_SW_TONE_CONTROLS
107
108#define AB_REPEAT_ENABLE 1
109#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
110
111/* define this if you have a disk storage, i.e. something
112 that needs spinups and can cause skips when shaked */
113#define HAVE_DISK_STORAGE
114
115/* Define this for LCD backlight available */
116#define HAVE_BACKLIGHT
117
118/* We can fade the backlight by using PWM */
119#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
120
121/* define this if the unit uses a scrollwheel for navigation */
122#define HAVE_SCROLLWHEEL
123/* define to activate advanced wheel acceleration code */
124#define HAVE_WHEEL_ACCELERATION
125/* define from which rotation speed [degree/sec] on the acceleration starts */
126#define WHEEL_ACCEL_START 270
127/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
128#define WHEEL_ACCELERATION 3
129
130/* Define this if you can detect headphones */
131#define HAVE_HEADPHONE_DETECTION
132
133#define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
134#define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
135#define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
136#define BATTERY_CAPACITY_INC 50 /* capacity increment */
137#define BATTERY_TYPES_COUNT 1 /* only one type */
138
139/* define current usage levels */
140#define CURRENT_NORMAL 50 /* PP5024 uses ~40mA, so add some for disk */
141#define CURRENT_BACKLIGHT 20 /* FIXME: This needs to be measured */
142#define CURRENT_RECORD 110 /* FIXME: Needs to be measured */
143
144/* Hardware controlled charging? */
145#define CONFIG_CHARGING CHARGING_MONITOR
146
147/* define this if the unit can be powered or charged via USB */
148#define HAVE_USB_POWER
149
150/* Define this if you have a PortalPlayer PP5022 */
151#define CONFIG_CPU PP5022
152
153/* Define this if you want to use the PP5020 i2c interface */
154#define CONFIG_I2C I2C_PP5020
155
156/* We're able to shut off power to the HDD */
157#define HAVE_ATA_POWER_OFF
158
159/* define this if the hardware can be powered off while charging */
160//#define HAVE_POWEROFF_WHILE_CHARGING
161
162/* The start address index for ROM builds */
163#define ROM_START 0x00000000
164
165/* The size of the flash ROM */
166#define FLASH_SIZE 0x100000
167
168/* Define this to the CPU frequency */
169#define CPU_FREQ 11289600
170
171#define CONFIG_LCD LCD_IPODMINI
172
173/* Offset ( in the firmware file's header ) to the file length */
174#define FIRMWARE_OFFSET_FILE_LENGTH 0
175
176/* Offset ( in the firmware file's header ) to the file CRC */
177#define FIRMWARE_OFFSET_FILE_CRC 0
178
179/* Offset ( in the firmware file's header ) to the real data */
180#define FIRMWARE_OFFSET_FILE_DATA 8
181
182/* USB On-the-go */
183#define CONFIG_USBOTG USBOTG_ARC
184
185/* enable these for the experimental usb stack */
186#define HAVE_USBSTACK
187#define USE_ROCKBOX_USB
188#define USB_VENDOR_ID 0x05ac
189#define USB_PRODUCT_ID 0x1205
190#define HAVE_USB_HID_MOUSE
191
192/* Define this if you have adjustable CPU frequency */
193#define HAVE_ADJUSTABLE_CPU_FREQ
194
195/* Define this if you can read an absolute wheel position */
196#define HAVE_WHEEL_POSITION
197
198#define BOOTFILE_EXT "ipod"
199#define BOOTFILE "rockbox." BOOTFILE_EXT
200#define BOOTDIR "/.rockbox"
201
202#define ICODE_ATTR_TREMOR_NOT_MDCT
203
204#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
205
diff --git a/firmware/export/config/ipodnano1g.h b/firmware/export/config/ipodnano1g.h
new file mode 100644
index 0000000000..e1ec1afa86
--- /dev/null
+++ b/firmware/export/config/ipodnano1g.h
@@ -0,0 +1,194 @@
1/*
2 * This config file is for the Apple iPod Nano
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define IPOD_ARCH 1
7
8#define MODEL_NAME "Apple iPod Nano 1g"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 4
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have recording possibility */
17#define HAVE_RECORDING
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
22
23/* define the bitmask of hardware sample rates */
24#define HW_SAMPR_CAPS (SAMPR_CAP_44)
25
26/* define the bitmask of recording sample rates */
27#define REC_SAMPR_CAPS (SAMPR_CAP_44)
28
29/* define this if you have a bitmap LCD display */
30#define HAVE_LCD_BITMAP
31
32/* define this if you have a colour LCD */
33#define HAVE_LCD_COLOR
34
35/* define this if you want album art for this target */
36#define HAVE_ALBUMART
37
38/* define this to enable bitmap scaling */
39#define HAVE_BMP_SCALING
40
41/* define this to enable JPEG decoding */
42#define HAVE_JPEG
43
44/* define this if you have access to the quickscreen */
45#define HAVE_QUICKSCREEN
46/* define this if you have access to the pitchscreen */
47#define HAVE_PITCHSCREEN
48
49/* define this if you would like tagcache to build on this target */
50#define HAVE_TAGCACHE
51
52/* LCD dimensions */
53#define LCD_WIDTH 176
54#define LCD_HEIGHT 132
55#define LCD_DEPTH 16 /* 65536 colours */
56#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
57
58/* LCD stays visible without backlight - simulator hint */
59#define HAVE_TRANSFLECTIVE_LCD
60
61#define CONFIG_KEYPAD IPOD_4G_PAD
62
63/* Define this to enable morse code input */
64#define HAVE_MORSE_INPUT
65
66/* Define this if you do software codec */
67#define CONFIG_CODEC SWCODEC
68
69/* define this if you have a real-time clock */
70#define CONFIG_RTC RTC_PCF50605
71
72/* Define if the device can wake from an RTC alarm */
73#define HAVE_RTC_ALARM
74
75/* Define this if you can switch on/off the accessory power supply */
76#define HAVE_ACCESSORY_SUPPLY
77
78/* Define this if you have a software controlled poweroff */
79#define HAVE_SW_POWEROFF
80
81/* The number of bytes reserved for loadable codecs */
82#define CODEC_SIZE 0x100000
83
84/* The number of bytes reserved for loadable plugins */
85#define PLUGIN_BUFFER_SIZE 0x80000
86
87/* Define this if you have the WM8975 audio codec */
88#define HAVE_WM8975
89
90#define AB_REPEAT_ENABLE 1
91#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
92
93/* Define this for LCD backlight available */
94#define HAVE_BACKLIGHT
95#define HAVE_BACKLIGHT_BRIGHTNESS
96/* We can fade the backlight by using PWM */
97#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
98
99/* Main LCD backlight brightness range and defaults */
100#define MIN_BRIGHTNESS_SETTING 1
101#define MAX_BRIGHTNESS_SETTING 32
102#define DEFAULT_BRIGHTNESS_SETTING 16
103
104/* define this if the unit uses a scrollwheel for navigation */
105#define HAVE_SCROLLWHEEL
106/* define to activate advanced wheel acceleration code */
107#define HAVE_WHEEL_ACCELERATION
108/* define from which rotation speed [degree/sec] on the acceleration starts */
109#define WHEEL_ACCEL_START 270
110/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
111#define WHEEL_ACCELERATION 3
112
113/* Define this if you can detect headphones */
114#define HAVE_HEADPHONE_DETECTION
115
116/* define this if you have a flash memory storage */
117#define HAVE_FLASH_STORAGE
118
119#define BATTERY_CAPACITY_DEFAULT 300 /* default battery capacity */
120#define BATTERY_CAPACITY_MIN 200 /* min. capacity selectable */
121#define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */
122#define BATTERY_CAPACITY_INC 20 /* capacity increment */
123#define BATTERY_TYPES_COUNT 1 /* only one type */
124
125/* Hardware controlled charging? FIXME */
126//#define CONFIG_CHARGING CHARGING_SIMPLE
127
128/* define this if the unit can be powered or charged via USB */
129#define HAVE_USB_POWER
130
131#define CURRENT_NORMAL 32 /* MP3: ~9h playback out of 300mAh battery */
132#define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
133#if defined(HAVE_RECORDING)
134#define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
135#endif
136
137/* Define Apple remote tuner */
138#define CONFIG_TUNER IPOD_REMOTE_TUNER
139#define HAVE_RDS_CAP
140
141/* Define this if you have a PortalPlayer PP5022 */
142#define CONFIG_CPU PP5022
143
144/* Define this if you want to use the PP5020 i2c interface */
145#define CONFIG_I2C I2C_PP5020
146
147/* define this if the hardware can be powered off while charging */
148//#define HAVE_POWEROFF_WHILE_CHARGING
149
150/* The start address index for ROM builds */
151#define ROM_START 0x00000000
152
153/* The size of the flash ROM */
154#define FLASH_SIZE 0x100000
155
156/* Define this to the CPU frequency */
157#define CPU_FREQ 24000000
158
159#define CONFIG_LCD LCD_IPODNANO
160
161/* Offset ( in the firmware file's header ) to the file length */
162#define FIRMWARE_OFFSET_FILE_LENGTH 0
163
164/* Offset ( in the firmware file's header ) to the file CRC */
165#define FIRMWARE_OFFSET_FILE_CRC 0
166
167/* Offset ( in the firmware file's header ) to the real data */
168#define FIRMWARE_OFFSET_FILE_DATA 8
169
170/* USB On-the-go */
171#define CONFIG_USBOTG USBOTG_ARC
172
173/* enable these for the experimental usb stack */
174#define HAVE_USBSTACK
175#define USE_ROCKBOX_USB
176#define USB_VENDOR_ID 0x05ac
177#define USB_PRODUCT_ID 0x120a
178#define HAVE_USB_HID_MOUSE
179
180/* Define this if you have adjustable CPU frequency */
181#define HAVE_ADJUSTABLE_CPU_FREQ
182
183/* Define this if you can read an absolute wheel position */
184#define HAVE_WHEEL_POSITION
185
186#define BOOTFILE_EXT "ipod"
187#define BOOTFILE "rockbox." BOOTFILE_EXT
188#define BOOTDIR "/.rockbox"
189
190#define ICODE_ATTR_TREMOR_NOT_MDCT
191
192#define IPOD_ACCESSORY_PROTOCOL
193#define HAVE_SERIAL
194
diff --git a/firmware/export/config/ipodnano2g.h b/firmware/export/config/ipodnano2g.h
new file mode 100644
index 0000000000..be7129b690
--- /dev/null
+++ b/firmware/export/config/ipodnano2g.h
@@ -0,0 +1,213 @@
1/*
2 * This config file is for iPod Nano 2nd Generation
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define IPOD_ARCH 1
7
8/* For Rolo and boot loader */
9#define MODEL_NUMBER 62
10
11#define MODEL_NAME "Apple iPod Nano 2g"
12
13/* define this if you have recording possibility */
14//#define HAVE_RECORDING
15
16/* Define bitmask of input sources - recordable bitmask can be defined
17 explicitly if different */
18#define INPUT_SRC_CAPS (SRC_CAP_LINEIN)
19
20/* define the bitmask of hardware sample rates */
21#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
22
23/* define the bitmask of recording sample rates */
24#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
25
26/* define this if you have a bitmap LCD display */
27#define HAVE_LCD_BITMAP
28
29/* define this if you can flip your LCD */
30//#define HAVE_LCD_FLIP
31
32/* define this if you have a colour LCD */
33#define HAVE_LCD_COLOR
34
35/* define this if you want album art for this target */
36#define HAVE_ALBUMART
37
38/* define this to enable bitmap scaling */
39#define HAVE_BMP_SCALING
40
41/* define this to enable JPEG decoding */
42#define HAVE_JPEG
43
44/* define this if the LCD can shut down */
45#define HAVE_LCD_SHUTDOWN
46
47/* define this if you can invert the colours on your LCD */
48//#define HAVE_LCD_INVERT
49
50/* define this if you have access to the quickscreen */
51#define HAVE_QUICKSCREEN
52
53/* define this if you have access to the pitchscreen */
54#define HAVE_PITCHSCREEN
55
56/* define this if you would like tagcache to build on this target */
57#define HAVE_TAGCACHE
58
59/* define this if the unit uses a scrollwheel for navigation */
60#define HAVE_SCROLLWHEEL
61#define HAVE_WHEEL_ACCELERATION
62#define WHEEL_ACCEL_START 270
63#define WHEEL_ACCELERATION 3
64
65/* Define this if you can detect headphones */
66#define HAVE_HEADPHONE_DETECTION
67
68/* define this if you have a flash memory storage */
69#define HAVE_FLASH_STORAGE
70
71#define CONFIG_STORAGE STORAGE_NAND
72
73#define CONFIG_NAND NAND_SAMSUNG
74
75/* define this if at least one storage driver
76 needs to do cleanup on shutdown */
77#define HAVE_STORAGE_FLUSH
78
79/* The NAND flash has 2048-byte sectors, and is our only storage */
80#define SECTOR_SIZE 2048
81
82/* LCD dimensions */
83#define LCD_WIDTH 176
84#define LCD_HEIGHT 132
85#define LCD_DEPTH 16 /* pseudo 262.144 colors */
86#define LCD_PIXELFORMAT RGB565 /* rgb565 */
87
88/* Define this if your LCD can be enabled/disabled */
89//#define HAVE_LCD_ENABLE
90
91/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
92 should be defined as well. */
93//#define HAVE_LCD_SLEEP
94
95#define CONFIG_KEYPAD IPOD_4G_PAD
96
97//#define AB_REPEAT_ENABLE 1
98//#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
99
100/* Define this to enable morse code input */
101#define HAVE_MORSE_INPUT
102
103/* Define this if you do software codec */
104#define CONFIG_CODEC SWCODEC
105
106/* define this if you have a real-time clock */
107#define CONFIG_RTC RTC_NANO2G
108
109#define CONFIG_LCD LCD_NANO2G
110
111/* Define the type of audio codec */
112#define HAVE_WM8975
113
114#define HAVE_PCM_DMA_ADDRESS
115
116/* Define this for LCD backlight available */
117#define HAVE_BACKLIGHT
118#define HAVE_BACKLIGHT_BRIGHTNESS
119
120/* Define this if you have a software controlled poweroff */
121#define HAVE_SW_POWEROFF
122
123/* The number of bytes reserved for loadable codecs */
124#define CODEC_SIZE 0x100000
125
126/* The number of bytes reserved for loadable plugins */
127#define PLUGIN_BUFFER_SIZE 0x80000
128
129#define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity */
130#define BATTERY_CAPACITY_MIN 400 /* min. capacity selectable */
131#define BATTERY_CAPACITY_MAX 400 /* max. capacity selectable */
132#define BATTERY_CAPACITY_INC 50 /* capacity increment */
133#define BATTERY_TYPES_COUNT 1 /* only one type */
134
135/* Hardware controlled charging with monitoring */
136#define CONFIG_CHARGING CHARGING_MONITOR
137
138/* define this if the unit can be powered or charged via USB */
139#define HAVE_USB_POWER
140
141/* Define this if your LCD can set contrast */
142//#define HAVE_LCD_CONTRAST
143
144/* The exact type of CPU */
145#define CONFIG_CPU S5L8701
146
147/* I2C interface */
148#define CONFIG_I2C I2C_S5L8700
149
150#define HAVE_USB_CHARGING_ENABLE
151
152/* The size of the flash ROM */
153#define FLASH_SIZE 0x400000
154
155/* Define this to the CPU frequency */
156#define CPU_FREQ 191692800
157
158/* Define this if you have ATA power-off control */
159//#define HAVE_ATA_POWER_OFF
160
161/* Offset ( in the firmware file's header ) to the file CRC */
162#define FIRMWARE_OFFSET_FILE_CRC 0
163
164/* Offset ( in the firmware file's header ) to the real data */
165#define FIRMWARE_OFFSET_FILE_DATA 8
166
167/* USB On-the-go */
168//#define CONFIG_USBOTG USBOTG_M5636
169
170/* Define this if you can read an absolute wheel position */
171#define HAVE_WHEEL_POSITION
172
173/* Define this if you have adjustable CPU frequency */
174/* #define HAVE_ADJUSTABLE_CPU_FREQ - not yet */
175
176#define BOOTFILE_EXT "ipod"
177#define BOOTFILE "rockbox." BOOTFILE_EXT
178#define BOOTDIR "/.rockbox"
179
180/* Alternative bootfile extension - this is for encrypted images */
181#define BOOTFILE_EXT2 "ipodx"
182
183#if 0
184#define BOOTLOADER_ENTRYPOINT 0x001F0000
185#define FLASH_ENTRYPOINT 0x00001000
186#define FLASH_MAGIC 0xfbfbfbf1
187#endif
188
189/* Define this for FM radio input available */
190#define HAVE_FMRADIO_IN
191
192/** Port-specific settings **/
193
194#if 0
195/* Main LCD contrast range and defaults */
196#define MIN_CONTRAST_SETTING 1
197#define MAX_CONTRAST_SETTING 30
198#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
199#endif
200
201/* Main LCD backlight brightness range and defaults */
202#define MIN_BRIGHTNESS_SETTING 1
203#define MAX_BRIGHTNESS_SETTING 0x2e
204#define DEFAULT_BRIGHTNESS_SETTING 0x20
205
206/* USB defines */
207#define HAVE_USBSTACK
208#define CONFIG_USBOTG USBOTG_S3C6400X
209#define USB_VENDOR_ID 0x05AC
210#define USB_PRODUCT_ID 0x1260
211#define USB_NUM_ENDPOINTS 5
212#define USE_ROCKBOX_USB
213#define USB_DEVBSS_ATTR __attribute__((aligned(16)))
diff --git a/firmware/export/config/ipodvideo.h b/firmware/export/config/ipodvideo.h
new file mode 100644
index 0000000000..59ac6466e5
--- /dev/null
+++ b/firmware/export/config/ipodvideo.h
@@ -0,0 +1,226 @@
1/*
2 * This config file is for the Apple iPod Video
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define IPOD_ARCH 1
7
8#define MODEL_NAME "Apple iPod Video"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 5
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have recording possibility */
17#define HAVE_RECORDING
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
22
23/* define the bitmask of hardware sample rates */
24#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
25 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
26 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
27
28/* define the bitmask of recording sample rates */
29#define REC_SAMPR_CAPS HW_SAMPR_CAPS
30
31/* define this if you have a bitmap LCD display */
32#define HAVE_LCD_BITMAP
33
34/* define this if you have a colour LCD */
35#define HAVE_LCD_COLOR
36
37/* define this if you want album art for this target */
38#define HAVE_ALBUMART
39
40/* define this to enable bitmap scaling */
41#define HAVE_BMP_SCALING
42
43/* define this to enable JPEG decoding */
44#define HAVE_JPEG
45
46/* define this if you have access to the quickscreen */
47#define HAVE_QUICKSCREEN
48/* define this if you have access to the pitchscreen */
49#define HAVE_PITCHSCREEN
50
51/* define this if you would like tagcache to build on this target */
52#define HAVE_TAGCACHE
53
54/* LCD dimensions */
55#define LCD_WIDTH 320
56#define LCD_HEIGHT 240
57#define LCD_DEPTH 16 /* 65536 colours */
58#define LCD_PIXELFORMAT RGB565 /* rgb565 */
59
60/* LCD stays visible without backlight - simulator hint */
61#define HAVE_TRANSFLECTIVE_LCD
62
63#define CONFIG_KEYPAD IPOD_4G_PAD
64
65/* Define this to enable morse code input */
66#define HAVE_MORSE_INPUT
67
68/* Define this if you do software codec */
69#define CONFIG_CODEC SWCODEC
70
71/* define this if you have a real-time clock */
72#define CONFIG_RTC RTC_PCF50605
73
74/* Define if the device can wake from an RTC alarm */
75#define HAVE_RTC_ALARM
76
77/* Define this if you can switch on/off the accessory power supply */
78#define HAVE_ACCESSORY_SUPPLY
79
80/* Define this if you have a software controlled poweroff */
81#define HAVE_SW_POWEROFF
82
83/* The number of bytes reserved for loadable codecs */
84#define CODEC_SIZE 0x100000
85
86/* The number of bytes reserved for loadable plugins */
87#define PLUGIN_BUFFER_SIZE 0x80000
88
89/* Define this if you have the WM8758 audio codec */
90#define HAVE_WM8758
91
92#define AB_REPEAT_ENABLE 1
93#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
94
95/* define this if you have a disk storage, i.e. something
96 that needs spinups and can cause skips when shaked */
97#define HAVE_DISK_STORAGE
98
99/* Define this for LCD backlight available */
100#define HAVE_BACKLIGHT
101#define HAVE_BACKLIGHT_BRIGHTNESS
102
103#ifndef BOOTLOADER
104/* Support for LCD sleep/BCM shutdown */
105#define HAVE_LCD_SLEEP
106#define HAVE_LCD_SLEEP_SETTING
107/* The same code may also be used when shutting down the iPod */
108#define HAVE_LCD_SHUTDOWN
109#endif
110
111/* We can fade the backlight by using PWM */
112#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
113
114/* Main LCD backlight brightness range and defaults */
115#define MIN_BRIGHTNESS_SETTING 1
116#define MAX_BRIGHTNESS_SETTING 32
117#define DEFAULT_BRIGHTNESS_SETTING 16
118
119
120/* define this if the unit uses a scrollwheel for navigation */
121#define HAVE_SCROLLWHEEL
122/* define to activate advanced wheel acceleration code */
123#define HAVE_WHEEL_ACCELERATION
124/* define from which rotation speed [degree/sec] on the acceleration starts */
125#define WHEEL_ACCEL_START 270
126/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
127#define WHEEL_ACCELERATION 3
128
129/* Define this if you can detect headphones */
130#define HAVE_HEADPHONE_DETECTION
131
132/* Type of mobile power */
133#if (MEM==32) /* this is the 30GB-model */
134# define BATTERY_CAPACITY_DEFAULT 400 /* default battery capacity for the 30GB model */
135# define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */
136# define BATTERY_CAPACITY_MAX 800 /* max. capacity selectable */
137#else /* these are the 60/80GB-models */
138# define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity for the 60/80GB model */
139# define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
140# define BATTERY_CAPACITY_MAX 1000 /* max. capacity selectable */
141#endif
142#define BATTERY_CAPACITY_INC 50 /* capacity increment */
143#define BATTERY_TYPES_COUNT 1 /* only one type */
144
145/* Hardware controlled charging with monitoring */
146#define CONFIG_CHARGING CHARGING_MONITOR
147
148/* define this if the unit can be powered or charged via USB */
149#define HAVE_USB_POWER
150
151/* define current usage levels */
152#define CURRENT_NORMAL 35 /* MP3: ~11h out of 400mAh battery (30GB) or ~17h out of 600mAh (60GB) */
153#define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
154#if defined(HAVE_RECORDING)
155#define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
156#endif
157
158/* Define Apple remote tuner */
159#define CONFIG_TUNER IPOD_REMOTE_TUNER
160#define HAVE_RDS_CAP
161
162/* Define this if you have a PortalPlayer PP5022 */
163#define CONFIG_CPU PP5022
164
165/* Define this if you want to use the PP5020 i2c interface */
166#define CONFIG_I2C I2C_PP5020
167
168/* We're able to shut off power to the HDD */
169#define HAVE_ATA_POWER_OFF
170
171/* define this if the hardware can be powered off while charging */
172//#define HAVE_POWEROFF_WHILE_CHARGING
173
174/* The start address index for ROM builds */
175#define ROM_START 0x00000000
176
177/* The size of the flash ROM */
178#define FLASH_SIZE 0x100000
179
180/* Define this to the CPU frequency */
181#define CPU_FREQ 11289600
182
183#define CONFIG_LCD LCD_IPODVIDEO
184
185/* Offset ( in the firmware file's header ) to the file length */
186#define FIRMWARE_OFFSET_FILE_LENGTH 0
187
188/* Offset ( in the firmware file's header ) to the file CRC */
189#define FIRMWARE_OFFSET_FILE_CRC 0
190
191/* Offset ( in the firmware file's header ) to the real data */
192#define FIRMWARE_OFFSET_FILE_DATA 8
193
194/* USB On-the-go */
195#define CONFIG_USBOTG USBOTG_ARC
196
197/* enable these for the experimental usb stack */
198#define HAVE_USBSTACK
199#define USE_ROCKBOX_USB
200#define USB_VENDOR_ID 0x05ac
201#define USB_PRODUCT_ID 0x1209
202#define HAVE_USB_HID_MOUSE
203
204/* Define this if you have adjustable CPU frequency */
205#define HAVE_ADJUSTABLE_CPU_FREQ
206
207/* Define this if you can read an absolute wheel position */
208#define HAVE_WHEEL_POSITION
209
210/* define this if the device has larger sectors when accessed via USB */
211/* (only relevant in disk.c, fat.c now always supports large virtual sectors) */
212#define MAX_LOG_SECTOR_SIZE 2048
213
214/* define this if the hard drive uses large physical sectors (ATA-7 feature) */
215/* and doesn't handle them in the drive firmware */
216#define MAX_PHYS_SECTOR_SIZE 1024
217
218#define BOOTFILE_EXT "ipod"
219#define BOOTFILE "rockbox." BOOTFILE_EXT
220#define BOOTDIR "/.rockbox"
221
222#define ICODE_ATTR_TREMOR_NOT_MDCT
223
224#define IPOD_ACCESSORY_PROTOCOL
225#define HAVE_SERIAL
226
diff --git a/firmware/export/config/iriverh10.h b/firmware/export/config/iriverh10.h
new file mode 100644
index 0000000000..cde1b6075e
--- /dev/null
+++ b/firmware/export/config/iriverh10.h
@@ -0,0 +1,188 @@
1/*
2 * This config file is for the iriver H10 20Gb
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 13
9#define MODEL_NAME "iriver H10 20GB"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13
14/* define this if you have recording possibility */
15#define HAVE_RECORDING
16/* Define bitmask of input sources - recordable bitmask can be defined
17 explicitly if different */
18#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
19
20/* define the bitmask of hardware sample rates */
21#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
22 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
23
24/* define the bitmask of recording sample rates */
25#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
26 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
27
28/* define this if you have a bitmap LCD display */
29#define HAVE_LCD_BITMAP
30
31/* define this if you have a colour LCD */
32#define HAVE_LCD_COLOR
33
34/* define this if you want album art for this target */
35#define HAVE_ALBUMART
36
37/* define this to enable bitmap scaling */
38#define HAVE_BMP_SCALING
39
40/* define this to enable JPEG decoding */
41#define HAVE_JPEG
42
43/* define this if you have access to the quickscreen */
44#define HAVE_QUICKSCREEN
45
46/* define this if you have access to the pitchscreen */
47#define HAVE_PITCHSCREEN
48
49/* define this if you would like tagcache to build on this target */
50#define HAVE_TAGCACHE
51
52/* LCD dimensions */
53#define LCD_WIDTH 160
54#define LCD_HEIGHT 128
55#define LCD_DEPTH 16 /* 65536 colours */
56#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
57
58#ifndef BOOTLOADER
59/* Define this if your LCD can be enabled/disabled */
60#define HAVE_LCD_ENABLE
61
62/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
63 * should be defined as well.
64 * We can currently put the lcd to sleep but it won't wake up properly */
65#define HAVE_LCD_SLEEP
66#define HAVE_LCD_SLEEP_SETTING
67#endif
68
69/* define this if you can flip your LCD */
70#define HAVE_LCD_FLIP
71
72/* define this if you can invert the colours on your LCD */
73#define HAVE_LCD_INVERT
74
75/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
76
77#define CONFIG_KEYPAD IRIVER_H10_PAD
78
79/* Define this to enable morse code input */
80#define HAVE_MORSE_INPUT
81
82/* Define this if you do software codec */
83#define CONFIG_CODEC SWCODEC
84
85/* define this if you have a real-time clock */
86#ifndef BOOTLOADER
87#define CONFIG_RTC RTC_E8564
88#define HAVE_RTC_ALARM
89#endif
90
91/* define this if you have a disk storage, i.e. something
92 that needs spinups and can cause skips when shaked */
93#define HAVE_DISK_STORAGE
94
95/* Define this if you have a software controlled poweroff */
96#define HAVE_SW_POWEROFF
97
98/* The number of bytes reserved for loadable codecs */
99#define CODEC_SIZE 0x100000
100
101/* The number of bytes reserved for loadable plugins */
102#define PLUGIN_BUFFER_SIZE 0x80000
103
104/* Define this if you have the WM8731 audio codec */
105#define HAVE_WM8731
106
107/* WM8731 has no tone controls, so we use the software ones */
108#define HAVE_SW_TONE_CONTROLS
109
110#define AB_REPEAT_ENABLE 1
111
112/* FM Tuner */
113#define CONFIG_TUNER TEA5767
114#define CONFIG_TUNER_XTAL 32768
115
116/* Define this for LCD backlight available */
117#define HAVE_BACKLIGHT
118
119#define AB_REPEAT_ENABLE 1
120
121#define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
122#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
123#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
124#define BATTERY_CAPACITY_INC 50 /* capacity increment */
125#define BATTERY_TYPES_COUNT 1 /* only one type */
126
127/* Hardware controlled charging */
128#define CONFIG_CHARGING CHARGING_SIMPLE
129
130/* define this if the unit can be powered or charged via USB */
131#define HAVE_USB_POWER
132
133/* Define this if you have a PortalPlayer PP5020 */
134#define CONFIG_CPU PP5020
135
136/* Define this if you want to use the PP5020 i2c interface */
137#define CONFIG_I2C I2C_PP5020
138
139/* define this if the hardware can be powered off while charging */
140#define HAVE_POWEROFF_WHILE_CHARGING
141
142/* The start address index for ROM builds */
143#define ROM_START 0x00000000
144
145/* The size of the flash ROM */
146#define FLASH_SIZE 0x100000
147
148/* Define this to the CPU frequency */
149#define CPU_FREQ 75000000
150
151/* Type of LCD */
152#define CONFIG_LCD LCD_H10_20GB
153
154/* Define this if your LCD can set contrast */
155#define HAVE_LCD_CONTRAST
156
157#define MIN_CONTRAST_SETTING 0
158#define MAX_CONTRAST_SETTING 30
159#define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
160
161/* We're able to shut off power to the HDD */
162#define HAVE_ATA_POWER_OFF
163
164/* Offset ( in the firmware file's header ) to the file CRC and data. These are
165 only used when loading the old format rockbox.h10 file */
166#define FIRMWARE_OFFSET_FILE_CRC 0x0
167#define FIRMWARE_OFFSET_FILE_DATA 0x8
168
169/* USB On-the-go */
170#define CONFIG_USBOTG USBOTG_ARC
171
172/* enable these for the experimental usb stack */
173#define HAVE_USBSTACK
174#define USE_ROCKBOX_USB
175#define USB_VENDOR_ID 0x0B70
176#define USB_PRODUCT_ID 0x00BA
177#define HAVE_USB_HID_MOUSE
178
179/* Define this if you have adjustable CPU frequency */
180#define HAVE_ADJUSTABLE_CPU_FREQ
181
182#define MI4_FORMAT
183#define BOOTFILE_EXT "mi4"
184#define BOOTFILE "rockbox." BOOTFILE_EXT
185#define BOOTDIR "/.rockbox"
186
187#define ICODE_ATTR_TREMOR_NOT_MDCT
188
diff --git a/firmware/export/config/iriverh100.h b/firmware/export/config/iriverh100.h
new file mode 100644
index 0000000000..d01ee1f3f9
--- /dev/null
+++ b/firmware/export/config/iriverh100.h
@@ -0,0 +1,216 @@
1#define TARGET_TREE /* this target is using the target tree system */
2
3/*
4 * This config file is for iriver iHP-100, iHP-110, iHP-115
5 */
6#define IRIVER_H100_SERIES 1
7
8#define MODEL_NAME "iriver iHP-100 series"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 1
12
13/* define this if you use an ATA controller */
14#define CONFIG_STORAGE STORAGE_ATA
15
16/* define this if you have a bitmap LCD display */
17#define HAVE_LCD_BITMAP
18
19/* define this if you want album art for this target */
20#define HAVE_ALBUMART
21
22/* define this to enable bitmap scaling */
23#define HAVE_BMP_SCALING
24
25/* define this to enable JPEG decoding */
26#define HAVE_JPEG
27
28/* define this if you can flip your LCD */
29#define HAVE_LCD_FLIP
30
31/* define this if you can invert the colours on your LCD */
32#define HAVE_LCD_INVERT
33
34/* define this if you have access to the quickscreen */
35#define HAVE_QUICKSCREEN
36/* define this if you have access to the pitchscreen */
37#define HAVE_PITCHSCREEN
38
39/* define this if you would like tagcache to build on this target */
40#define HAVE_TAGCACHE
41
42/* LCD dimensions */
43#define LCD_WIDTH 160
44#define LCD_HEIGHT 128
45#define LCD_DEPTH 2
46
47#define LCD_PIXELFORMAT VERTICAL_PACKING
48
49/* Display colours, for screenshots and sim (0xRRGGBB) */
50#define LCD_DARKCOLOR 0x000000
51#define LCD_BRIGHTCOLOR 0x5a915a
52#define LCD_BL_DARKCOLOR 0x000000
53#define LCD_BL_BRIGHTCOLOR 0xadd8e6
54
55/* remote LCD */
56#define LCD_REMOTE_WIDTH 128
57#define LCD_REMOTE_HEIGHT 64
58#define LCD_REMOTE_DEPTH 1
59
60#define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
61
62/* Remote display colours, for screenshots and sim (0xRRGGBB) */
63#define LCD_REMOTE_DARKCOLOR 0x000000
64#define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
65#define LCD_REMOTE_BL_DARKCOLOR 0x000000
66#define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
67
68#define CONFIG_KEYPAD IRIVER_H100_PAD
69
70#define CONFIG_REMOTE_KEYPAD H100_REMOTE
71
72/* Define this to enable morse code input */
73#define HAVE_MORSE_INPUT
74
75/* Define this if you do software codec */
76#define CONFIG_CODEC SWCODEC
77
78/* Define this if you have an remote lcd */
79#define HAVE_REMOTE_LCD
80
81/* Define if we have a hardware defect that causes ticking on the audio line */
82#define HAVE_REMOTE_LCD_TICKING
83
84#define CONFIG_LCD LCD_S1D15E06
85
86/* define this if you have a disk storage, i.e. something
87 that needs spinups and can cause skips when shaked */
88#define HAVE_DISK_STORAGE
89
90/* Define this for LCD backlight available */
91#define HAVE_BACKLIGHT
92
93/* We can fade the backlight by using PWM */
94#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
95
96/* Define this if you have a software controlled poweroff */
97#define HAVE_SW_POWEROFF
98
99/* The number of bytes reserved for loadable codecs */
100#define CODEC_SIZE 0x100000
101
102/* The number of bytes reserved for loadable plugins */
103#define PLUGIN_BUFFER_SIZE 0x80000
104
105#define AB_REPEAT_ENABLE 1
106
107#define CONFIG_TUNER TEA5767
108#define CONFIG_TUNER_XTAL 32768
109
110#define HAVE_UDA1380
111
112/* define this if you have recording possibility */
113#define HAVE_RECORDING
114
115/* define hardware samples rate caps mask */
116#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
117
118/* define the bitmask of recording sample rates */
119#define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
120
121#define HAVE_AGC
122
123#define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
124#define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
125#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
126#define BATTERY_CAPACITY_INC 50 /* capacity increment */
127#define BATTERY_TYPES_COUNT 1 /* only one type */
128
129/* Hardware controlled charging */
130#define CONFIG_CHARGING CHARGING_SIMPLE
131
132/* define current usage levels */
133#define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery */
134#define CURRENT_BACKLIGHT 23 /* from IriverBattery twiki page */
135#define CURRENT_SPDIF_OUT 10 /* optical SPDIF output on */
136#define CURRENT_RECORD 105 /* additional current while recording */
137#define CURRENT_REMOTE 8 /* additional current when remote connected */
138
139/* Define this if you have a Motorola SCF5249 */
140#define CONFIG_CPU MCF5249
141
142/* Define this if you want to use coldfire's i2c interface */
143#define CONFIG_I2C I2C_COLDFIRE
144
145/* Define this if you can run rockbox from flash memory */
146/* In theory we can, but somebody needs to verify there are no issues. */
147#define HAVE_FLASHED_ROCKBOX
148
149/* define this if the hardware can be powered off while charging */
150#define HAVE_POWEROFF_WHILE_CHARGING
151
152/* The size of the flash ROM */
153#define FLASH_SIZE 0x200000
154
155/* Define this to the CPU frequency */
156#define CPU_FREQ 11289600
157
158/* Define this if you have ATA power-off control */
159#define HAVE_ATA_POWER_OFF
160
161/* Offset ( in the firmware file's header ) to the file CRC */
162#define FIRMWARE_OFFSET_FILE_CRC 0
163
164/* Offset ( in the firmware file's header ) to the real data */
165#define FIRMWARE_OFFSET_FILE_DATA 8
166
167#define HAVE_ATA_LED_CTRL
168
169/* Define this if you have adjustable CPU frequency */
170#define HAVE_ADJUSTABLE_CPU_FREQ
171
172#define BOOTFILE_EXT "iriver"
173#define BOOTFILE "rockbox." BOOTFILE_EXT
174#define BOOTDIR "/.rockbox"
175
176#define BOOTLOADER_ENTRYPOINT 0x001F0000
177#define FLASH_RAMIMAGE_ENTRY 0x00001000
178#define FLASH_ROMIMAGE_ENTRY 0x00100000
179#define FLASH_MAGIC 0xfbfbfbf2
180
181/* Define this if there is an EEPROM chip */
182#define HAVE_EEPROM
183
184/* Define this if the EEPROM chip is used */
185#define HAVE_EEPROM_SETTINGS
186
187/* Define bitmask of input sources - recordable bitmask can be defined
188 explicitly if different */
189#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \
190 SRC_CAP_FMRADIO | SRC_CAP_SPDIF)
191
192/* Define this for S/PDIF output available */
193#define HAVE_SPDIF_OUT
194
195/* Define this if you can control the S/PDIF power */
196#define HAVE_SPDIF_POWER
197#define SPDIF_POWER_INVERTED
198
199/* Define this for FM radio input available */
200#define HAVE_FMRADIO_IN
201
202/** Port-specific settings **/
203
204#define HAVE_LCD_CONTRAST
205
206/* Main LCD backlight brightness range and defaults */
207#define MIN_CONTRAST_SETTING 14 /* White screen a bit higher than this */
208#define MAX_CONTRAST_SETTING 63 /* Black screen a bit lower than this */
209#define DEFAULT_CONTRAST_SETTING 27
210
211/* Remote LCD contrast range and defaults */
212#define MIN_REMOTE_CONTRAST_SETTING 5
213#define MAX_REMOTE_CONTRAST_SETTING 63
214#define DEFAULT_REMOTE_CONTRAST_SETTING 42
215
216#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
diff --git a/firmware/export/config/iriverh10_5gb.h b/firmware/export/config/iriverh10_5gb.h
new file mode 100644
index 0000000000..e69f6c2b20
--- /dev/null
+++ b/firmware/export/config/iriverh10_5gb.h
@@ -0,0 +1,171 @@
1/*
2 * This config file is for the iriver H10 5/6Gb model
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 14
9#define MODEL_NAME "iriver H10 5/6GB"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13
14/* define this if you have recording possibility */
15#define HAVE_RECORDING
16/* Define bitmask of input sources - recordable bitmask can be defined
17 explicitly if different */
18#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
19
20/* define the bitmask of hardware sample rates */
21#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
22 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
23
24/* define the bitmask of recording sample rates */
25#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
26 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
27
28/* define this if you have a bitmap LCD display */
29#define HAVE_LCD_BITMAP
30
31/* define this if you have a colour LCD */
32#define HAVE_LCD_COLOR
33
34/* define this if you want album art for this target */
35#define HAVE_ALBUMART
36
37/* define this to enable bitmap scaling */
38#define HAVE_BMP_SCALING
39
40/* define this to enable JPEG decoding */
41#define HAVE_JPEG
42
43/* define this if you have access to the quickscreen */
44#define HAVE_QUICKSCREEN
45
46/* define this if you have access to the pitchscreen */
47#define HAVE_PITCHSCREEN
48
49/* define this if you would like tagcache to build on this target */
50#define HAVE_TAGCACHE
51
52/* LCD dimensions */
53#define LCD_WIDTH 128
54#define LCD_HEIGHT 128
55#define LCD_DEPTH 16 /* 65536 colours */
56#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
57
58/*#define IRAM_LCDFRAMEBUFFER IDATA_ATTR*//* put the lcd frame buffer in IRAM */
59
60#define CONFIG_KEYPAD IRIVER_H10_PAD
61
62/* Define this to enable morse code input */
63#define HAVE_MORSE_INPUT
64
65/* Define this if you do software codec */
66#define CONFIG_CODEC SWCODEC
67
68/* define this if you have a real-time clock */
69#ifndef BOOTLOADER
70#define CONFIG_RTC RTC_E8564
71#define HAVE_RTC_ALARM
72#endif
73
74/* Define this if you have a software controlled poweroff */
75#define HAVE_SW_POWEROFF
76
77/* The number of bytes reserved for loadable codecs */
78#define CODEC_SIZE 0x100000
79
80/* The number of bytes reserved for loadable plugins */
81#define PLUGIN_BUFFER_SIZE 0x80000
82
83/* Define this if you have the WM8731 audio codec */
84#define HAVE_WM8731
85
86/* WM8731 has no tone controls, so we use the software ones */
87#define HAVE_SW_TONE_CONTROLS
88
89#define AB_REPEAT_ENABLE 1
90
91/* FM Tuner */
92#define CONFIG_TUNER TEA5767
93#define CONFIG_TUNER_XTAL 32768
94
95/* define this if you have a disk storage, i.e. something
96 that needs spinups and can cause skips when shaked */
97#define HAVE_DISK_STORAGE
98
99/* Define this for LCD backlight available */
100#define HAVE_BACKLIGHT
101
102#define AB_REPEAT_ENABLE 1
103
104#define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */
105#define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
106#define BATTERY_CAPACITY_MAX 900 /* max. capacity selectable */
107#define BATTERY_CAPACITY_INC 10 /* capacity increment */
108#define BATTERY_TYPES_COUNT 1 /* only one type */
109
110/* Hardware controlled charging */
111#define CONFIG_CHARGING CHARGING_SIMPLE
112
113/* define this if the unit can be powered or charged via USB */
114#define HAVE_USB_POWER
115
116#ifndef SIMULATOR
117
118/* Define this if you have a PortalPlayer PP5020 */
119#define CONFIG_CPU PP5020
120
121/* Define this if you want to use the PP5020 i2c interface */
122#define CONFIG_I2C I2C_PP5020
123
124/* define this if the hardware can be powered off while charging */
125#define HAVE_POWEROFF_WHILE_CHARGING
126
127/* The start address index for ROM builds */
128#define ROM_START 0x00000000
129
130/* The size of the flash ROM */
131#define FLASH_SIZE 0x100000
132
133/* Define this to the CPU frequency */
134/* TODO: this is probably wrong */
135#define CPU_FREQ 75000000
136
137/* Type of LCD */
138#define CONFIG_LCD LCD_H10_5GB
139
140/* We're able to shut off power to the HDD */
141#define HAVE_ATA_POWER_OFF
142
143/* Offset ( in the firmware file's header ) to the file length */
144#define FIRMWARE_OFFSET_FILE_LENGTH 0x8
145
146/* Offset ( in the firmware file's header ) to the file CRC and data. These are
147 only used when loading the old format rockbox.h10 file */
148#define FIRMWARE_OFFSET_FILE_CRC 0x0
149#define FIRMWARE_OFFSET_FILE_DATA 0x8
150
151/* USB On-the-go */
152#define CONFIG_USBOTG USBOTG_ARC
153
154/* enable these for the experimental usb stack */
155#define HAVE_USBSTACK
156#define USE_ROCKBOX_USB
157#define USB_VENDOR_ID 0x0B70
158#define USB_PRODUCT_ID 0x00BA
159#define HAVE_USB_HID_MOUSE
160
161/* Define this if you have adjustable CPU frequency */
162#define HAVE_ADJUSTABLE_CPU_FREQ
163
164#define MI4_FORMAT
165#define BOOTFILE_EXT "mi4"
166#define BOOTFILE "rockbox." BOOTFILE_EXT
167#define BOOTDIR "/.rockbox"
168
169#define ICODE_ATTR_TREMOR_NOT_MDCT
170
171#endif
diff --git a/firmware/export/config/iriverh120.h b/firmware/export/config/iriverh120.h
new file mode 100644
index 0000000000..8751c121cc
--- /dev/null
+++ b/firmware/export/config/iriverh120.h
@@ -0,0 +1,217 @@
1#define TARGET_TREE /* this target is using the target tree system */
2/*
3 * This config file is for iriver H120 and H140
4 */
5#define IRIVER_H100_SERIES 1
6
7#define MODEL_NAME "iriver H120/H140"
8
9/* For Rolo and boot loader */
10#define MODEL_NUMBER 0
11
12/* define this if you use an ATA controller */
13#define CONFIG_STORAGE STORAGE_ATA
14
15/* define this if you have a bitmap LCD display */
16#define HAVE_LCD_BITMAP
17
18/* define this if you want album art for this target */
19#define HAVE_ALBUMART
20
21/* define this to enable bitmap scaling */
22#define HAVE_BMP_SCALING
23
24/* define this to enable JPEG decoding */
25#define HAVE_JPEG
26
27/* define this if you can flip your LCD */
28#define HAVE_LCD_FLIP
29
30/* define this if you can invert the colours on your LCD */
31#define HAVE_LCD_INVERT
32
33/* define this if you have access to the quickscreen */
34#define HAVE_QUICKSCREEN
35/* define this if you have access to the pitchscreen */
36#define HAVE_PITCHSCREEN
37
38/* define this if you would like tagcache to build on this target */
39#define HAVE_TAGCACHE
40
41/* LCD dimensions */
42#define LCD_WIDTH 160
43#define LCD_HEIGHT 128
44#define LCD_DEPTH 2
45
46#define LCD_PIXELFORMAT VERTICAL_PACKING
47
48/* Display colours, for screenshots and sim (0xRRGGBB) */
49#define LCD_DARKCOLOR 0x000000
50#define LCD_BRIGHTCOLOR 0x5a915a
51#define LCD_BL_DARKCOLOR 0x000000
52#define LCD_BL_BRIGHTCOLOR 0xadd8e6
53
54/* remote LCD */
55#define LCD_REMOTE_WIDTH 128
56#define LCD_REMOTE_HEIGHT 64
57#define LCD_REMOTE_DEPTH 1
58
59#define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
60
61/* Remote display colours, for screenshots and sim (0xRRGGBB) */
62#define LCD_REMOTE_DARKCOLOR 0x000000
63#define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
64#define LCD_REMOTE_BL_DARKCOLOR 0x000000
65#define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
66
67#define CONFIG_KEYPAD IRIVER_H100_PAD
68
69#define CONFIG_REMOTE_KEYPAD H100_REMOTE
70
71/* Define this to enable morse code input */
72#define HAVE_MORSE_INPUT
73
74/* Define this if you do software codec */
75#define CONFIG_CODEC SWCODEC
76
77/* define this if you have a disk storage, i.e. something
78 that needs spinups and can cause skips when shaked */
79#define HAVE_DISK_STORAGE
80
81/* Define this if you have an remote lcd */
82#define HAVE_REMOTE_LCD
83
84/* Define if we have a hardware defect that causes ticking on the audio line */
85#define HAVE_REMOTE_LCD_TICKING
86
87#define CONFIG_LCD LCD_S1D15E06
88
89/* Define this for LCD backlight available */
90#define HAVE_BACKLIGHT
91
92/* We can fade the backlight by using PWM */
93#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
94
95/* Define this if you have a software controlled poweroff */
96#define HAVE_SW_POWEROFF
97
98/* The number of bytes reserved for loadable codecs */
99#define CODEC_SIZE 0x100000
100
101/* The number of bytes reserved for loadable plugins */
102#define PLUGIN_BUFFER_SIZE 0x80000
103
104#define AB_REPEAT_ENABLE 1
105
106#define CONFIG_TUNER TEA5767
107#define CONFIG_TUNER_XTAL 32768
108
109#define HAVE_UDA1380
110
111/* define this if you have recording possibility */
112#define HAVE_RECORDING
113
114/* Define bitmask of input sources - recordable bitmask can be defined
115 explicitly if different */
116#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \
117 SRC_CAP_FMRADIO | SRC_CAP_SPDIF)
118
119/* define hardware samples rate caps mask */
120#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
121
122/* define the bitmask of recording sample rates */
123#define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
124
125#define HAVE_AGC
126
127#define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
128#define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
129#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
130#define BATTERY_CAPACITY_INC 50 /* capacity increment */
131#define BATTERY_TYPES_COUNT 1 /* only one type */
132
133/* Hardware controlled charging */
134#define CONFIG_CHARGING CHARGING_SIMPLE
135
136/* define current usage levels */
137#define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery */
138#define CURRENT_BACKLIGHT 23 /* from IriverBattery twiki page */
139#define CURRENT_SPDIF_OUT 10 /* optical SPDIF output on */
140#define CURRENT_RECORD 105 /* additional current while recording */
141#define CURRENT_REMOTE 8 /* additional current when remote connected */
142
143#ifndef SIMULATOR
144
145/* Define this if you have a Motorola SCF5249 */
146#define CONFIG_CPU MCF5249
147
148/* Define this if you want to use coldfire's i2c interface */
149#define CONFIG_I2C I2C_COLDFIRE
150
151/* Define this if you can run rockbox from flash memory */
152#define HAVE_FLASHED_ROCKBOX
153
154/* define this if the hardware can be powered off while charging */
155#define HAVE_POWEROFF_WHILE_CHARGING
156
157/* The size of the flash ROM */
158#define FLASH_SIZE 0x200000
159
160/* Define this to the CPU frequency */
161#define CPU_FREQ 11289600
162
163/* Define this if you have ATA power-off control */
164#define HAVE_ATA_POWER_OFF
165
166/* Offset ( in the firmware file's header ) to the file CRC */
167#define FIRMWARE_OFFSET_FILE_CRC 0
168
169/* Offset ( in the firmware file's header ) to the real data */
170#define FIRMWARE_OFFSET_FILE_DATA 8
171
172#define HAVE_ATA_LED_CTRL
173
174/* Define this if you have adjustable CPU frequency */
175#define HAVE_ADJUSTABLE_CPU_FREQ
176
177#define BOOTFILE_EXT "iriver"
178#define BOOTFILE "rockbox." BOOTFILE_EXT
179#define BOOTDIR "/.rockbox"
180
181#define BOOTLOADER_ENTRYPOINT 0x001F0000
182#define FLASH_RAMIMAGE_ENTRY 0x00001000
183#define FLASH_ROMIMAGE_ENTRY 0x00100000
184#define FLASH_MAGIC 0xfbfbfbf2
185
186/* Define this if there is an EEPROM chip */
187#define HAVE_EEPROM
188
189/* Define this if the EEPROM chip is used */
190#define HAVE_EEPROM_SETTINGS
191
192#endif /* !SIMULATOR */
193
194/* Define this for S/PDIF output available */
195#define HAVE_SPDIF_OUT
196
197/* Define this if you can control the S/PDIF power */
198#define HAVE_SPDIF_POWER
199
200/* Define this if you have a serial port */
201/*#define HAVE_SERIAL*/
202
203/** Port-specific settings **/
204
205#define HAVE_LCD_CONTRAST
206
207/* Main LCD backlight brightness range and defaults */
208#define MIN_CONTRAST_SETTING 14 /* White screen a bit higher than this */
209#define MAX_CONTRAST_SETTING 63 /* Black screen a bit lower than this */
210#define DEFAULT_CONTRAST_SETTING 27
211
212/* Remote LCD contrast range and defaults */
213#define MIN_REMOTE_CONTRAST_SETTING 5
214#define MAX_REMOTE_CONTRAST_SETTING 63
215#define DEFAULT_REMOTE_CONTRAST_SETTING 42
216
217#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
diff --git a/firmware/export/config/iriverh300.h b/firmware/export/config/iriverh300.h
new file mode 100644
index 0000000000..d2348397d2
--- /dev/null
+++ b/firmware/export/config/iriverh300.h
@@ -0,0 +1,204 @@
1#define TARGET_TREE /* this target is using the target tree system */
2/*
3 * This config file is for iriver H320, H340
4 */
5#define IRIVER_H300_SERIES 1
6
7#define MODEL_NAME "iriver H300 series"
8
9/* For Rolo and boot loader */
10#define MODEL_NUMBER 2
11
12/* define this if you use an ATA controller */
13#define CONFIG_STORAGE STORAGE_ATA
14
15/* define this if you have a bitmap LCD display */
16#define HAVE_LCD_BITMAP
17
18/* define this if you have a colour LCD */
19#define HAVE_LCD_COLOR
20
21/* define this if you want album art for this target */
22#define HAVE_ALBUMART
23
24/* define this to enable bitmap scaling */
25#define HAVE_BMP_SCALING
26
27/* define this to enable JPEG decoding */
28#define HAVE_JPEG
29
30/* define this if you can flip your LCD */
31#define HAVE_LCD_FLIP
32
33/* define this if you have access to the quickscreen */
34#define HAVE_QUICKSCREEN
35/* define this if you have access to the pitchscreen */
36#define HAVE_PITCHSCREEN
37
38/* define this if you would like tagcache to build on this target */
39#define HAVE_TAGCACHE
40
41/* LCD dimensions */
42#define LCD_WIDTH 220
43#define LCD_HEIGHT 176
44#define LCD_DEPTH 16 /* 65k colours */
45#define LCD_PIXELFORMAT RGB565 /* rgb565 */
46
47/* remote LCD */
48#define LCD_REMOTE_WIDTH 128
49#define LCD_REMOTE_HEIGHT 64
50#define LCD_REMOTE_DEPTH 1
51
52#define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
53
54/* Remote display colours, for screenshots and sim (0xRRGGBB) */
55#define LCD_REMOTE_DARKCOLOR 0x000000
56#define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
57#define LCD_REMOTE_BL_DARKCOLOR 0x000000
58#define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
59
60#define CONFIG_KEYPAD IRIVER_H300_PAD
61
62#define CONFIG_REMOTE_KEYPAD H300_REMOTE
63
64/* Define this to enable morse code input */
65#define HAVE_MORSE_INPUT
66
67/* Define this if you do software codec */
68#define CONFIG_CODEC SWCODEC
69
70/* define this if you have a real-time clock */
71#define CONFIG_RTC RTC_PCF50606
72
73/* define this if you have a disk storage, i.e. something
74 that needs spinups and can cause skips when shaked */
75#define HAVE_DISK_STORAGE
76
77/* Define this if you have an remote lcd */
78#define HAVE_REMOTE_LCD
79
80/* Define if we have a hardware defect that causes ticking on the audio line */
81#define HAVE_REMOTE_LCD_TICKING
82
83/* Define this for LCD backlight available */
84#define HAVE_BACKLIGHT
85#define HAVE_BACKLIGHT_BRIGHTNESS
86/* Which backlight fading type? */
87#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
88/* Define this if your LCD can be enabled/disabled */
89#define HAVE_LCD_ENABLE
90
91/* Define this if you have a software controlled poweroff */
92#define HAVE_SW_POWEROFF
93
94/* The number of bytes reserved for loadable codecs */
95#define CODEC_SIZE 0x100000
96
97/* The number of bytes reserved for loadable plugins */
98#define PLUGIN_BUFFER_SIZE 0x80000
99
100#define AB_REPEAT_ENABLE 1
101
102#define CONFIG_TUNER TEA5767
103#define CONFIG_TUNER_XTAL 32768
104
105#define HAVE_UDA1380
106
107/* define this if you have recording possibility */
108#define HAVE_RECORDING
109
110/* Define bitmask of input sources - recordable bitmask can be defined
111 explicitly if different */
112#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
113
114/* define hardware samples rate caps mask */
115#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
116
117/* define the bitmask of recording sample rates */
118#define REC_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
119
120#define HAVE_AGC
121
122#define BATTERY_CAPACITY_DEFAULT 1300 /* default battery capacity */
123#define BATTERY_CAPACITY_MIN 1300 /* min. capacity selectable */
124#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
125#define BATTERY_CAPACITY_INC 50 /* capacity increment */
126#define BATTERY_TYPES_COUNT 1 /* only one type */
127
128/* Hardware controlled charging with monitoring */
129#define CONFIG_CHARGING CHARGING_MONITOR
130
131/* define this if the unit can be powered or charged via USB */
132#define HAVE_USB_POWER
133
134/* define current usage levels */
135#define CURRENT_NORMAL 80 /* 16h playback on 1300mAh battery from IriverRuntime wiki page */
136#define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */
137#define CURRENT_RECORD 110 /* additional current while recording */
138#define CURRENT_MAX_CHG 650 /* maximum charging current */
139#define CURRENT_REMOTE 8 /* additional current when remote connected */
140
141/* define this if the unit can have USB charging disabled by user -
142 * if USB/MAIN power is discernable and hardware doesn't compel charging */
143#define HAVE_USB_CHARGING_ENABLE
144
145/* Define this if you have a Motorola SCF5249 */
146#define CONFIG_CPU MCF5249
147
148/* Define this if you want to use coldfire's i2c interface */
149#define CONFIG_I2C I2C_COLDFIRE
150
151/* The size of the flash ROM */
152#define FLASH_SIZE 0x400000
153
154/* Define this to the CPU frequency */
155#define CPU_FREQ 11289600
156
157/* Define this if you have ATA power-off control */
158#define HAVE_ATA_POWER_OFF
159
160#define CONFIG_LCD LCD_H300
161
162/* Offset ( in the firmware file's header ) to the file CRC */
163#define FIRMWARE_OFFSET_FILE_CRC 0
164
165/* Offset ( in the firmware file's header ) to the real data */
166#define FIRMWARE_OFFSET_FILE_DATA 8
167
168/* USB On-the-go */
169#define CONFIG_USBOTG USBOTG_ISP1362
170
171/* Define this if you have adjustable CPU frequency */
172#define HAVE_ADJUSTABLE_CPU_FREQ
173
174#define BOOTFILE_EXT "iriver"
175#define BOOTFILE "rockbox." BOOTFILE_EXT
176#define BOOTDIR "/.rockbox"
177
178#define BOOTLOADER_ENTRYPOINT 0x001F0000
179#define FLASH_ENTRYPOINT 0x00001000
180#define FLASH_MAGIC 0xfbfbfbf1
181
182/* Define this if there is an EEPROM chip */
183#define HAVE_EEPROM
184
185/* Define this for FM radio input available */
186#define HAVE_FMRADIO_IN
187
188/** Port-specific settings **/
189
190/* Main LCD contrast range and defaults */
191#define MIN_CONTRAST_SETTING 5
192#define MAX_CONTRAST_SETTING 63
193#define DEFAULT_CONTRAST_SETTING 40
194
195/* Main LCD backlight brightness range and defaults */
196/* accepts 0..15 but note that 0 and 1 give a black display on H300! */
197#define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */
198#define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */
199#define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */
200
201/* Remote LCD contrast range and defaults */
202#define MIN_REMOTE_CONTRAST_SETTING 5
203#define MAX_REMOTE_CONTRAST_SETTING 63
204#define DEFAULT_REMOTE_CONTRAST_SETTING 42
diff --git a/firmware/export/config/iriverifp7xx.h b/firmware/export/config/iriverifp7xx.h
new file mode 100644
index 0000000000..48a53f8c9d
--- /dev/null
+++ b/firmware/export/config/iriverifp7xx.h
@@ -0,0 +1,127 @@
1/*
2 * This config file is for iriver iFP-799
3 */
4#define TARGET_TREE
5
6#define IRIVER_IFP7XX_SERIES 1
7
8#define MODEL_NAME "iriver iFP-799"
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 6
12
13/* define this if you have recording possibility */
14/*#define HAVE_RECORDING*/
15
16/* define this if you have a bitmap LCD display */
17#define HAVE_LCD_BITMAP
18
19/* define this if you have a colour LCD */
20/* #define HAVE_LCD_COLOR */
21
22/* define this if you would like tagcache to build on this target */
23/* #define HAVE_TAGCACHE */
24
25/* LCD dimensions */
26#define LCD_WIDTH 128
27#define LCD_HEIGHT 64
28#define LCD_DEPTH 1
29
30#define LCD_PIXELFORMAT VERTICAL_PACKING
31
32/* Display colours, for screenshots and sim (0xRRGGBB) */
33#define LCD_DARKCOLOR 0x000000
34#define LCD_BRIGHTCOLOR 0x5e6854
35#define LCD_BL_DARKCOLOR 0x000000
36#define LCD_BL_BRIGHTCOLOR 0x3ca0e6
37
38#define CONFIG_KEYPAD IRIVER_IFP7XX_PAD
39
40#define CONFIG_STORAGE STORAGE_NAND
41
42#define CONFIG_NAND NAND_IFP7XX
43
44#define HAVE_FAT16SUPPORT
45
46/* Define this if you do software codec */
47#define CONFIG_CODEC SWCODEC
48
49/* Define this if you have a software controlled poweroff */
50#define HAVE_SW_POWEROFF
51
52/* The number of bytes reserved for loadable codecs */
53#define CODEC_SIZE 0x38000
54
55/* The number of bytes reserved for loadable plugins */
56#define PLUGIN_BUFFER_SIZE 0x10000
57
58/* Define this if you have the WM8975 audio codec */
59/* #define HAVE_WM8975 */
60
61#define HAVE_LCD_CONTRAST
62
63#define MIN_CONTRAST_SETTING 5
64#define MAX_CONTRAST_SETTING 63
65#define DEFAULT_CONTRAST_SETTING 40
66
67/* define this if you have a flash memory storage */
68#define HAVE_FLASH_STORAGE
69
70#define BATTERY_CAPACITY_DEFAULT 1000 /* default battery capacity */
71#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
72#define BATTERY_CAPACITY_MAX 2800 /* max. capacity selectable */
73#define BATTERY_CAPACITY_INC 50 /* capacity increment */
74#define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */
75
76/* define this if the unit should not shut down on low battery. */
77#define NO_LOW_BATTERY_SHUTDOWN
78
79/* Define this if you have a Philips PNX0101 */
80#define CONFIG_CPU PNX0101
81
82/* Define this if you want to use the PNX0101 i2c interface */
83#define CONFIG_I2C I2C_PNX0101
84
85/* The start address index for ROM builds */
86#define ROM_START 0x00000000
87
88/* Define this for LCD backlight available */
89#define HAVE_BACKLIGHT
90
91/* Define this to the CPU frequency */
92#define CPU_FREQ 48000000
93
94#define CONFIG_LCD LCD_IFP7XX
95
96/* Offset ( in the firmware file's header ) to the file length */
97#define FIRMWARE_OFFSET_FILE_LENGTH 0
98
99/* Offset ( in the firmware file's header ) to the file CRC */
100#define FIRMWARE_OFFSET_FILE_CRC 0
101
102/* Offset ( in the firmware file's header ) to the real data */
103#define FIRMWARE_OFFSET_FILE_DATA 8
104
105#define USB_ISP1582
106
107#define HAVE_GDB_API
108
109/* Define this if you have adjustable CPU frequency */
110#define HAVE_ADJUSTABLE_CPU_FREQ
111
112#define BOOTFILE_EXT "iriver"
113#define BOOTFILE "rockbox." BOOTFILE_EXT
114#define BOOTDIR "/.rockbox"
115
116#define IBSS_ATTR_VOICE_STACK
117#define ICODE_ATTR_TREMOR_NOT_MDCT
118#define ICODE_ATTR_TREMOR_MDCT
119#define ICODE_ATTR_FLAC
120#define IBSS_ATTR_FLAC_DECODED0
121#define ICONST_ATTR_MPA_HUFFMAN
122#define IBSS_ATTR_MPC_SAMPLE_BUF
123#define ICODE_ATTR_ALAC
124#define IBSS_ATTR_SHORTEN_DECODED0
125
126#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
127
diff --git a/firmware/export/config/logikdax.h b/firmware/export/config/logikdax.h
new file mode 100644
index 0000000000..8fbd064306
--- /dev/null
+++ b/firmware/export/config/logikdax.h
@@ -0,0 +1,147 @@
1/*
2 * This config file is for the Logik DAX MP3/DAB
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 33
8
9#define MODEL_NAME "Logik DAX MP3/DAB"
10
11/* define this if you have recording possibility */
12//#define HAVE_RECORDING
13
14/* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16//#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF)
17
18#if 0 /* Enable for USB driver test */
19#define HAVE_USBSTACK
20#define USB_VENDOR_ID 0x13d1
21#define USB_PRODUCT_ID 0x1002
22#endif
23
24
25/* define this if you have a bitmap LCD display */
26#define HAVE_LCD_BITMAP
27
28/* define this if you can flip your LCD */
29#define HAVE_LCD_FLIP
30
31/* define this if you can invert the colours on your LCD */
32#define HAVE_LCD_INVERT
33
34/* define this if you have access to the quickscreen */
35#define HAVE_QUICKSCREEN
36/* define this if you have access to the pitchscreen */
37#define HAVE_PITCHSCREEN
38
39/* define this if you would like tagcache to build on this target */
40#define HAVE_TAGCACHE
41
42#define HAVE_FAT16SUPPORT
43
44/* define this if you have a flash memory storage */
45#define HAVE_FLASH_STORAGE
46
47#define CONFIG_STORAGE STORAGE_NAND
48
49#define CONFIG_NAND NAND_TCC
50
51/* LCD dimensions */
52#define LCD_WIDTH 128
53#define LCD_HEIGHT 64
54#define LCD_DEPTH 1
55
56#define LCD_PIXELFORMAT VERTICAL_PACKING
57
58/* Display colours, for screenshots and sim (0xRRGGBB) */
59#define LCD_DARKCOLOR 0x000000
60#define LCD_BRIGHTCOLOR 0x5a915a
61#define LCD_BL_DARKCOLOR 0x000000
62#define LCD_BL_BRIGHTCOLOR 0x82b4fa
63
64/* define this to indicate your device's keypad */
65#define CONFIG_KEYPAD LOGIK_DAX_PAD
66
67/* define this if you have a real-time clock */
68#define CONFIG_RTC RTC_TCC77X
69
70/* define this if you have RTC RAM available for settings */
71//#define HAVE_RTC_RAM
72
73/* Define this if you have a software controlled poweroff */
74#define HAVE_SW_POWEROFF
75
76/* The number of bytes reserved for loadable codecs */
77#define CODEC_SIZE 0x38000
78
79/* The number of bytes reserved for loadable plugins */
80#define PLUGIN_BUFFER_SIZE 0x10000
81
82#define AB_REPEAT_ENABLE 1
83
84/* Define this if you do software codec */
85#define CONFIG_CODEC SWCODEC
86
87/* The DAX uses built-in WM8731 codec */
88#define HAVE_WM8731
89/* Codec is slave on serial bus */
90#define CODEC_SLAVE
91
92/* Define this for LCD backlight available */
93#define HAVE_BACKLIGHT
94
95#define CONFIG_I2C I2C_TCC77X
96
97#define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
98#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
99#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
100#define BATTERY_CAPACITY_INC 50 /* capacity increment */
101#define BATTERY_TYPES_COUNT 1 /* only one type */
102
103/* define this if the unit should not shut down on low battery. */
104#define NO_LOW_BATTERY_SHUTDOWN
105
106/* Define this if you have a TCC773L */
107#define CONFIG_CPU TCC773L
108
109/* Define this if you have ATA power-off control */
110#define HAVE_ATA_POWER_OFF
111
112#define HAVE_FAT16SUPPORT
113
114/* Define this to the CPU frequency */
115#define CPU_FREQ 120000000
116
117/* Offset ( in the firmware file's header ) to the file length */
118#define FIRMWARE_OFFSET_FILE_LENGTH 0
119
120/* Offset ( in the firmware file's header ) to the file CRC */
121#define FIRMWARE_OFFSET_FILE_CRC 4
122
123/* Offset ( in the firmware file's header ) to the real data */
124#define FIRMWARE_OFFSET_FILE_DATA 6
125
126/* The start address index for ROM builds */
127/* #define ROM_START 0x11010 for behind original Archos */
128#define ROM_START 0x7010 /* for behind BootBox */
129
130#define CONFIG_LCD LCD_SSD1815
131
132#define BOOTFILE_EXT "logik"
133#define BOOTFILE "rockbox." BOOTFILE_EXT
134#define BOOTDIR "/"
135
136#define IBSS_ATTR_VOICE_STACK
137#define ICODE_ATTR_TREMOR_NOT_MDCT
138#define ICODE_ATTR_TREMOR_MDCT
139#define ICODE_ATTR_FLAC
140#define IBSS_ATTR_FLAC_DECODED0
141#define ICONST_ATTR_MPA_HUFFMAN
142#define IBSS_ATTR_MPC_SAMPLE_BUF
143#define ICODE_ATTR_ALAC
144#define IBSS_ATTR_SHORTEN_DECODED0
145
146#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
147
diff --git a/firmware/export/config/lyreproto1.h b/firmware/export/config/lyreproto1.h
new file mode 100644
index 0000000000..250b8e2c00
--- /dev/null
+++ b/firmware/export/config/lyreproto1.h
@@ -0,0 +1,103 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 *
10 * Copyright (C) 2009 by Jorge Pinto
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23 * This config file is for the Lyre prototype 1.
24 */
25#define TARGET_TREE /* this target is using the target tree system */
26
27#define CONFIG_SDRAM_START 0x20000000
28
29/* For Rolo and boot loader */
30#define MODEL_NUMBER 130
31
32/* define this if the flash memory uses the
33 * SecureDigital Memory Card protocol */
34#define CONFIG_STORAGE STORAGE_SD
35#define HAVE_FLASH_STORAGE
36
37/* define this if you have a bitmap LCD display */
38#define HAVE_LCD_BITMAP
39
40/* define this if you have a colour LCD */
41#define HAVE_LCD_COLOR
42
43#define CONFIG_LCD LCD_LYRE_PROTO1
44
45/* LCD dimensions */
46#define LCD_WIDTH 128
47#define LCD_HEIGHT 128
48/* The LCD used is just rgb444, 64 colours. We do a bit conversion on LCD
49 * drivers. */
50#define LCD_DEPTH 16 /* 65536 colours */
51#define LCD_PIXELFORMAT RGB565 /* rgb565 */
52
53#define HAVE_ALBUMART
54
55/* define this to enable bitmap scaling */
56#define HAVE_BMP_SCALING
57
58/* define this to enable JPEG decoding */
59#define HAVE_JPEG
60
61#define CONFIG_KEYPAD LYRE_PROTO1_PAD
62
63/* Define this if you do software codec */
64#define CONFIG_CODEC SWCODEC
65
66/* The number of bytes reserved for loadable codecs */
67#define CODEC_SIZE 0x100000
68
69/* The number of bytes reserved for loadable plugins */
70#define PLUGIN_BUFFER_SIZE 0x100000
71
72/* Lyre prototype 1 do not use I2C, just SPI */
73#define CONFIG_I2C I2C_NONE
74
75/* Define this if you have the TLV320 audio codec -> controlled by the DSP */
76#define HAVE_TLV320
77
78/* TLV320 has no tone controls, so we use the software ones */
79#define HAVE_SW_TONE_CONTROLS
80
81#define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */
82#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
83#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
84#define BATTERY_CAPACITY_INC 100 /* capacity increment */
85#define BATTERY_TYPES_COUNT 1 /* only one type */
86
87#define CONFIG_CPU AT91SAM9260
88
89/* Define this to the CPU frequency */
90#define CPU_FREQ 198656000
91#define MCK_FREQ 99328000
92#define SLOW_CLOCK 32768
93
94/* Offset ( in the firmware file's header ) to the file CRC */
95#define FIRMWARE_OFFSET_FILE_CRC 0
96
97/* Offset ( in the firmware file's header ) to the real data */
98#define FIRMWARE_OFFSET_FILE_DATA 8
99
100#define BOOTFILE_EXT "lyre_proto1"
101#define BOOTFILE "rockbox." BOOTFILE_EXT
102#define BOOTDIR "/.rockbox"
103
diff --git a/firmware/export/config/meizuiaudiom3.h b/firmware/export/config/meizuiaudiom3.h
new file mode 100644
index 0000000000..06720695eb
--- /dev/null
+++ b/firmware/export/config/meizuiaudiom3.h
@@ -0,0 +1,180 @@
1/*
2 * This config file is for Meizu M3
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 39
8
9#define MODEL_NAME "Meizu M3"
10
11/* define this if you have recording possibility */
12//#define HAVE_RECORDING
13
14/* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
17
18/* define the bitmask of hardware sample rates */
19#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
20
21/* define the bitmask of recording sample rates */
22#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
23
24/* define this if you have a bitmap LCD display */
25#define HAVE_LCD_BITMAP
26
27/* define this if you can flip your LCD */
28//#define HAVE_LCD_FLIP
29
30/* define this if you have a colour LCD */
31#define HAVE_LCD_COLOR
32
33/* define this if you want album art for this target */
34#define HAVE_ALBUMART
35
36/* define this to enable bitmap scaling */
37#define HAVE_BMP_SCALING
38
39/* define this to enable JPEG decoding */
40#define HAVE_JPEG
41
42/* define this if you can invert the colours on your LCD */
43//#define HAVE_LCD_INVERT
44
45/* define this if you have access to the quickscreen */
46#define HAVE_QUICKSCREEN
47
48/* define this if you have access to the pitchscreen */
49#define HAVE_PITCHSCREEN
50
51/* define this if you would like tagcache to build on this target */
52#define HAVE_TAGCACHE
53
54/* define this if you have a flash memory storage */
55#define HAVE_FLASH_STORAGE
56
57#define CONFIG_STORAGE STORAGE_NAND
58
59#define CONFIG_NAND NAND_SAMSUNG
60
61/* The NAND flash has 2048-byte sectors, and is our only storage */
62#define SECTOR_SIZE 2048
63
64/* LCD dimensions */
65#define LCD_WIDTH 176
66#define LCD_HEIGHT 132
67#define LCD_DEPTH 16 /* pseudo 262.144 colors */
68#define LCD_PIXELFORMAT RGB565 /* rgb565 */
69
70/* Define this if your LCD can be enabled/disabled */
71//#define HAVE_LCD_ENABLE
72
73/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
74 should be defined as well. */
75//#define HAVE_LCD_SLEEP
76
77#define CONFIG_KEYPAD MEIZU_M3_PAD
78
79//#define AB_REPEAT_ENABLE 1
80//#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
81
82/* Define this if you do software codec */
83#define CONFIG_CODEC SWCODEC
84
85/* define this if you have a real-time clock */
86//#define CONFIG_RTC RTC_S5L8700
87#define CONFIG_RTC RTC_S35390A
88
89#define CONFIG_LCD LCD_MEIZUM6
90
91/* Define the type of audio codec */
92#define HAVE_UDA1380
93
94/* Define this for LCD backlight available */
95#define HAVE_BACKLIGHT
96#define HAVE_BACKLIGHT_BRIGHTNESS
97
98/* Define this if you have a software controlled poweroff */
99#define HAVE_SW_POWEROFF
100
101/* The number of bytes reserved for loadable codecs */
102#define CODEC_SIZE 0x100000
103
104/* The number of bytes reserved for loadable plugins */
105#define PLUGIN_BUFFER_SIZE 0x80000
106
107/* FM Tuner */
108#define CONFIG_TUNER TEA5760
109#define CONFIG_TUNER_XTAL 32768
110
111//#define HAVE_TLV320
112
113/* TLV320 has no tone controls, so we use the software ones */
114#define HAVE_SW_TONE_CONTROLS
115
116#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
117#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
118#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
119#define BATTERY_CAPACITY_INC 50 /* capacity increment */
120#define BATTERY_TYPES_COUNT 1 /* only one type */
121
122/* Hardware controlled charging, software can monitor plug and charge state */
123#define CONFIG_CHARGING CHARGING_MONITOR
124
125/* Define this if your LCD can set contrast */
126//#define HAVE_LCD_CONTRAST
127
128/* Define this if you have a Motorola SCF5250 */
129#define CONFIG_CPU S5L8700
130
131/* Define this if you want to use coldfire's i2c interface */
132#define CONFIG_I2C I2C_S5L8700
133
134/* define this if the hardware can be powered off while charging */
135#define HAVE_POWEROFF_WHILE_CHARGING
136
137/* The size of the flash ROM */
138#define FLASH_SIZE 0x400000
139
140/* Define this to the CPU frequency */
141#define CPU_FREQ 11289600
142
143/* Define this if you have ATA power-off control */
144//#define HAVE_ATA_POWER_OFF
145
146/* Offset ( in the firmware file's header ) to the file CRC */
147#define FIRMWARE_OFFSET_FILE_CRC 0
148
149/* Offset ( in the firmware file's header ) to the real data */
150#define FIRMWARE_OFFSET_FILE_DATA 8
151
152/* USB On-the-go */
153//#define CONFIG_USBOTG USBOTG_M5636
154
155/* Define this if you have adjustable CPU frequency */
156#define HAVE_ADJUSTABLE_CPU_FREQ
157
158#define BOOTFILE_EXT "meizu"
159#define BOOTFILE "rockbox." BOOTFILE_EXT
160#define BOOTDIR "/.rockbox"
161
162#define BOOTLOADER_ENTRYPOINT 0x001F0000
163#define FLASH_ENTRYPOINT 0x00001000
164#define FLASH_MAGIC 0xfbfbfbf1
165
166/* Define this for FM radio input available */
167#define HAVE_FMRADIO_IN
168
169/** Port-specific settings **/
170
171/* Main LCD contrast range and defaults */
172#define MIN_CONTRAST_SETTING 1
173#define MAX_CONTRAST_SETTING 30
174#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
175
176/* Main LCD backlight brightness range and defaults */
177#define MIN_BRIGHTNESS_SETTING 0
178#define MAX_BRIGHTNESS_SETTING 15
179#define DEFAULT_BRIGHTNESS_SETTING 10
180
diff --git a/firmware/export/config/meizum6sl.h b/firmware/export/config/meizum6sl.h
new file mode 100644
index 0000000000..ffa8903526
--- /dev/null
+++ b/firmware/export/config/meizum6sl.h
@@ -0,0 +1,178 @@
1/*
2 * This config file is for Meizu M6SL
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 38
8
9#define MODEL_NAME "Meizu M6SL"
10
11/* define this if you have recording possibility */
12//#define HAVE_RECORDING
13
14/* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
17
18/* define the bitmask of hardware sample rates */
19#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
20
21/* define the bitmask of recording sample rates */
22#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
23
24/* define this if you have a bitmap LCD display */
25#define HAVE_LCD_BITMAP
26
27/* define this if you can flip your LCD */
28//#define HAVE_LCD_FLIP
29
30/* define this if you have a colour LCD */
31#define HAVE_LCD_COLOR
32
33/* define this if you want album art for this target */
34#define HAVE_ALBUMART
35
36/* define this to enable bitmap scaling */
37#define HAVE_BMP_SCALING
38
39/* define this to enable JPEG decoding */
40#define HAVE_JPEG
41
42/* define this if you can invert the colours on your LCD */
43//#define HAVE_LCD_INVERT
44
45/* define this if you have access to the quickscreen */
46#define HAVE_QUICKSCREEN
47
48/* define this if you have access to the pitchscreen */
49#define HAVE_PITCHSCREEN
50
51/* define this if you would like tagcache to build on this target */
52#define HAVE_TAGCACHE
53
54/* define this if you have a flash memory storage */
55#define HAVE_FLASH_STORAGE
56
57#define CONFIG_STORAGE STORAGE_NAND
58
59#define CONFIG_NAND NAND_SAMSUNG
60
61/* LCD dimensions */
62#define LCD_WIDTH 320
63#define LCD_HEIGHT 240
64#define LCD_DEPTH 16 /* pseudo 262.144 colors */
65#define LCD_PIXELFORMAT RGB565 /* rgb565 */
66
67/* Define this if your LCD can be enabled/disabled */
68//#define HAVE_LCD_ENABLE
69
70/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
71 should be defined as well. */
72//#define HAVE_LCD_SLEEP
73
74#define CONFIG_KEYPAD MEIZU_M6SL_PAD
75
76//#define AB_REPEAT_ENABLE 1
77//#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
78
79/* Define this if you do software codec */
80#define CONFIG_CODEC SWCODEC
81
82/* define this if you have a real-time clock */
83#define CONFIG_RTC RTC_S5L8700
84//#define CONFIG_RTC RTC_S35390A
85
86#define CONFIG_LCD LCD_MEIZUM6
87
88/* Define this if you have the WM8975 audio codec */
89#define HAVE_WM8751 //FIXME
90
91/* Define this for LCD backlight available */
92#define HAVE_BACKLIGHT
93#define HAVE_BACKLIGHT_BRIGHTNESS
94
95/* Define this if you have a software controlled poweroff */
96#define HAVE_SW_POWEROFF
97
98/* The number of bytes reserved for loadable codecs */
99#define CODEC_SIZE 0x100000
100
101/* The number of bytes reserved for loadable plugins */
102#define PLUGIN_BUFFER_SIZE 0x80000
103
104/* FM Tuner */
105#define CONFIG_TUNER TEA5760
106#define CONFIG_TUNER_XTAL 32768
107
108//#define HAVE_TLV320
109
110/* TLV320 has no tone controls, so we use the software ones */
111#define HAVE_SW_TONE_CONTROLS
112
113#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
114#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
115#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
116#define BATTERY_CAPACITY_INC 50 /* capacity increment */
117#define BATTERY_TYPES_COUNT 1 /* only one type */
118
119/* Hardware controlled charging? FIXME */
120#define CONFIG_CHARGING CHARGING_SIMPLE
121
122/* Define this if your LCD can set contrast */
123//#define HAVE_LCD_CONTRAST
124
125/* Define this if you have a Motorola SCF5250 */
126#define CONFIG_CPU S5L8700
127
128/* Define this if you want to use coldfire's i2c interface */
129#define CONFIG_I2C I2C_S5L8700
130
131/* define this if the hardware can be powered off while charging */
132#define HAVE_POWEROFF_WHILE_CHARGING
133
134/* The size of the flash ROM */
135#define FLASH_SIZE 0x400000
136
137/* Define this to the CPU frequency */
138#define CPU_FREQ 11289600
139
140/* Define this if you have ATA power-off control */
141//#define HAVE_ATA_POWER_OFF
142
143/* Offset ( in the firmware file's header ) to the file CRC */
144#define FIRMWARE_OFFSET_FILE_CRC 0
145
146/* Offset ( in the firmware file's header ) to the real data */
147#define FIRMWARE_OFFSET_FILE_DATA 8
148
149/* USB On-the-go */
150//#define CONFIG_USBOTG USBOTG_M5636
151
152/* Define this if you have adjustable CPU frequency */
153#define HAVE_ADJUSTABLE_CPU_FREQ
154
155#define BOOTFILE_EXT "meizu"
156#define BOOTFILE "rockbox." BOOTFILE_EXT
157#define BOOTDIR "/.rockbox"
158
159#define BOOTLOADER_ENTRYPOINT 0x001F0000
160#define FLASH_ENTRYPOINT 0x00001000
161#define FLASH_MAGIC 0xfbfbfbf1
162
163/* Define this for FM radio input available */
164#define HAVE_FMRADIO_IN
165
166/** Port-specific settings **/
167
168/* Main LCD contrast range and defaults */
169#define MIN_CONTRAST_SETTING 1
170#define MAX_CONTRAST_SETTING 30
171#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
172
173/* Main LCD backlight brightness range and defaults */
174/* PCF50506 can output 0%-100% duty cycle but D305A expects %15-100%. */
175#define MIN_BRIGHTNESS_SETTING 1 /* 15/16 (93.75%) */
176#define MAX_BRIGHTNESS_SETTING 13 /* 3/16 (18.75%) */
177#define DEFAULT_BRIGHTNESS_SETTING 8 /* 8/16 (50.00%) = x5 boot default */
178
diff --git a/firmware/export/config/meizum6sp.h b/firmware/export/config/meizum6sp.h
new file mode 100644
index 0000000000..0fc7264192
--- /dev/null
+++ b/firmware/export/config/meizum6sp.h
@@ -0,0 +1,181 @@
1/*
2 * This config file is for Meizu M6SP
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 37
8
9#define MODEL_NAME "Meizu M6SP"
10
11/* define this if you have recording possibility */
12//#define HAVE_RECORDING
13
14/* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
17
18/* define the bitmask of hardware sample rates */
19#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
20
21/* define the bitmask of recording sample rates */
22#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
23
24/* define this if you have a bitmap LCD display */
25#define HAVE_LCD_BITMAP
26
27/* define this if you can flip your LCD */
28//#define HAVE_LCD_FLIP
29
30/* define this if you have a colour LCD */
31#define HAVE_LCD_COLOR
32
33/* define this if you want album art for this target */
34#define HAVE_ALBUMART
35
36/* define this to enable bitmap scaling */
37#define HAVE_BMP_SCALING
38
39/* define this to enable JPEG decoding */
40#define HAVE_JPEG
41
42/* define this if you can invert the colours on your LCD */
43//#define HAVE_LCD_INVERT
44
45/* define this if you have access to the quickscreen */
46#define HAVE_QUICKSCREEN
47
48/* define this if you have access to the pitchscreen */
49#define HAVE_PITCHSCREEN
50
51/* define this if you would like tagcache to build on this target */
52#define HAVE_TAGCACHE
53
54/* define this if you have a flash memory storage */
55#define HAVE_FLASH_STORAGE
56
57#define CONFIG_STORAGE STORAGE_NAND
58
59#define CONFIG_NAND NAND_SAMSUNG
60
61/* The NAND flash has 2048-byte sectors, and is our only storage */
62#define SECTOR_SIZE 2048
63
64/* LCD dimensions */
65#define LCD_WIDTH 240
66#define LCD_HEIGHT 320
67#define LCD_DEPTH 16 /* pseudo 262.144 colors */
68#define LCD_PIXELFORMAT RGB565 /* rgb565 */
69
70/* Define this if your LCD can be enabled/disabled */
71#define HAVE_LCD_ENABLE
72
73/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
74 should be defined as well. */
75//#define HAVE_LCD_SLEEP
76
77#define CONFIG_KEYPAD MEIZU_M6SP_PAD
78
79//#define AB_REPEAT_ENABLE 1
80//#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
81
82/* Define this if you do software codec */
83#define CONFIG_CODEC SWCODEC
84
85/* define this if you have a real-time clock */
86#define CONFIG_RTC RTC_S5L8700
87//#define CONFIG_RTC RTC_S35390A
88
89#define CONFIG_LCD LCD_MEIZUM6
90
91/* Define this if you have the WM8975 audio codec */
92#define HAVE_WM8751 //FIXME
93
94/* Define this for LCD backlight available */
95#define HAVE_BACKLIGHT
96#define HAVE_BACKLIGHT_BRIGHTNESS
97
98/* Define this if you have a software controlled poweroff */
99#define HAVE_SW_POWEROFF
100
101/* The number of bytes reserved for loadable codecs */
102#define CODEC_SIZE 0x100000
103
104/* The number of bytes reserved for loadable plugins */
105#define PLUGIN_BUFFER_SIZE 0x80000
106
107/* FM Tuner */
108#define CONFIG_TUNER TEA5760
109#define CONFIG_TUNER_XTAL 32768
110
111//#define HAVE_TLV320
112
113/* TLV320 has no tone controls, so we use the software ones */
114#define HAVE_SW_TONE_CONTROLS
115
116#define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
117#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
118#define BATTERY_CAPACITY_MAX 2250 /* max. capacity selectable */
119#define BATTERY_CAPACITY_INC 50 /* capacity increment */
120#define BATTERY_TYPES_COUNT 1 /* only one type */
121
122/* Hardware controlled charging? FIXME */
123#define CONFIG_CHARGING CHARGING_SIMPLE
124
125/* Define this if your LCD can set contrast */
126//#define HAVE_LCD_CONTRAST
127
128/* Define this if you have a Motorola SCF5250 */
129#define CONFIG_CPU S5L8700
130
131/* Define this if you want to use coldfire's i2c interface */
132#define CONFIG_I2C I2C_S5L8700
133
134/* define this if the hardware can be powered off while charging */
135#define HAVE_POWEROFF_WHILE_CHARGING
136
137/* The size of the flash ROM */
138#define FLASH_SIZE 0x400000
139
140/* Define this to the CPU frequency */
141#define CPU_FREQ 11289600
142
143/* Define this if you have ATA power-off control */
144//#define HAVE_ATA_POWER_OFF
145
146/* Offset ( in the firmware file's header ) to the file CRC */
147#define FIRMWARE_OFFSET_FILE_CRC 0
148
149/* Offset ( in the firmware file's header ) to the real data */
150#define FIRMWARE_OFFSET_FILE_DATA 8
151
152/* USB On-the-go */
153//#define CONFIG_USBOTG USBOTG_M5636
154
155/* Define this if you have adjustable CPU frequency */
156#define HAVE_ADJUSTABLE_CPU_FREQ
157
158#define BOOTFILE_EXT "meizu"
159#define BOOTFILE "rockbox." BOOTFILE_EXT
160#define BOOTDIR "/.rockbox"
161
162#define BOOTLOADER_ENTRYPOINT 0x001F0000
163#define FLASH_ENTRYPOINT 0x00001000
164#define FLASH_MAGIC 0xfbfbfbf1
165
166/* Define this for FM radio input available */
167#define HAVE_FMRADIO_IN
168
169/** Port-specific settings **/
170
171/* Main LCD contrast range and defaults */
172#define MIN_CONTRAST_SETTING 1
173#define MAX_CONTRAST_SETTING 30
174#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
175
176/* Main LCD backlight brightness range and defaults */
177/* PCF50506 can output 0%-100% duty cycle but D305A expects %15-100%. */
178#define MIN_BRIGHTNESS_SETTING 1 /* 15/16 (93.75%) */
179#define MAX_BRIGHTNESS_SETTING 13 /* 3/16 (18.75%) */
180#define DEFAULT_BRIGHTNESS_SETTING 8 /* 8/16 (50.00%) = x5 boot default */
181
diff --git a/firmware/export/config/mini2440.h b/firmware/export/config/mini2440.h
new file mode 100644
index 0000000000..5dad250930
--- /dev/null
+++ b/firmware/export/config/mini2440.h
@@ -0,0 +1,156 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2009 by Bob Cousins, Lyre Project
10 * Copyright (C) 2009 by Jorge Pinto, Lyre Project
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23 * This config file is for the Mini2440
24 */
25#define TARGET_TREE /* this target is using the target tree system */
26
27/* For Rolo and boot loader */
28#define MODEL_NUMBER 131
29#define MODEL_NAME "Mini2440"
30
31/***************************************************************************/
32/* Hardware Config */
33
34/* TODO: ??? */
35#define CONFIG_SDRAM_START 0x30000000
36
37/* Flash storage */
38#define HAVE_FLASH_STORAGE
39/* define the storage type */
40#define CONFIG_STORAGE STORAGE_SD
41
42#define HAVE_MULTIDRIVE
43#define NUM_DRIVES 1 // no access to NAND yet
44#define HAVE_HOTSWAP
45#define HAVE_HOTSWAP_STORAGE_AS_MAIN
46#define INCLUDE_TIMEOUT_API
47
48/* Disk storage */
49/* define this if you have a disk storage, i.e. something
50 that needs spinups and can cause skips when shaked */
51/* #define HAVE_DISK_STORAGE */
52
53/* Display */
54/* define this if you have a bitmap LCD display */
55#define HAVE_LCD_BITMAP
56/* define this if you have a colour LCD */
57#define HAVE_LCD_COLOR
58/* The LCD is assumed to be 3.5" TFT touch screen, others are possible */
59#define CONFIG_LCD LCD_MINI2440
60/* LCD dimensions */
61#define LCD_WIDTH 240
62#define LCD_HEIGHT 320
63/* The LCD is configured for RGB565 */
64#define LCD_DEPTH 16 /* 65536 colours */
65#define LCD_PIXELFORMAT RGB565 /* rgb565 */
66/* Define this for LCD backlight available */
67/* The Mini2440 supports backlight brightness depending on LCD type */
68/* But the 3.5" LCD touch screen does not support brightness*/
69#define HAVE_BACKLIGHT
70#define HAVE_BACKLIGHT_BRIGHTNESS
71/* Main LCD backlight brightness range and defaults */
72#define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
73#define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
74#define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
75
76/* Keypad */
77#define CONFIG_KEYPAD MINI2440_PAD
78#define HAVE_TOUCHSCREEN
79#define HAVE_BUTTON_DATA
80
81/* I2C */
82/* We do not use currently use hardware I2C, but does not build without */
83#define CONFIG_I2C I2C_S3C2440
84
85/* Define DAC/Codec */
86#define HAVE_UDA1341
87
88#define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
89
90/* Battery */
91#define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */
92#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
93#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
94#define BATTERY_CAPACITY_INC 100 /* capacity increment */
95#define BATTERY_TYPES_COUNT 1 /* only one type */
96
97
98
99/***************************************************************************/
100/* Application Config */
101
102#define HAVE_ALBUMART
103/* define this to enable bitmap scaling */
104#define HAVE_BMP_SCALING
105/* define this to enable JPEG decoding */
106#define HAVE_JPEG
107/* define this if you have access to the pitchscreen */
108#define HAVE_PITCHSCREEN
109#define HAVE_QUICKSCREEN
110
111/* define this if you have a real-time clock */
112#define CONFIG_RTC RTC_S3C2440
113
114/* Define this if you do software codec */
115#define CONFIG_CODEC SWCODEC
116
117/* The number of bytes reserved for loadable codecs */
118#define CODEC_SIZE 0x100000
119
120/* The number of bytes reserved for loadable plugins */
121#define PLUGIN_BUFFER_SIZE 0x100000
122
123#define CONFIG_CPU S3C2440
124
125/* Define this to the CPU frequency */
126#define CPU_FREQ 406000000
127#define MCK_FREQ (CPU_FREQ/4)
128#define SLOW_CLOCK 32768
129
130
131/* Define this if your LCD can set contrast */
132#define HAVE_LCD_CONTRAST
133#define MIN_CONTRAST_SETTING 0
134#define MAX_CONTRAST_SETTING 63
135#define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
136
137/* USB */
138/* TODO:#define HAVE_USBSTACK */
139#define USB_NONE
140
141#define HAVE_SERIAL
142
143/* Hardware controlled charging with monitoring */
144#define CONFIG_CHARGING CHARGING_MONITOR
145/*#define POWER_INPUT_BATTERY 0*/
146
147/* Offset ( in the firmware file's header ) to the file CRC */
148#define FIRMWARE_OFFSET_FILE_CRC 0
149
150/* Offset ( in the firmware file's header ) to the real data */
151#define FIRMWARE_OFFSET_FILE_DATA 8
152
153#define BOOTFILE_EXT "mini2440"
154#define BOOTFILE "rockbox." BOOTFILE_EXT
155#define BOOTDIR "/.rockbox"
156
diff --git a/firmware/export/config/mrobe100.h b/firmware/export/config/mrobe100.h
new file mode 100644
index 0000000000..90419914b2
--- /dev/null
+++ b/firmware/export/config/mrobe100.h
@@ -0,0 +1,202 @@
1/*
2 * This config file is for the Olympus m:robe MR-100
3 */
4
5#define TARGET_TREE
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 23
9#define MODEL_NAME "Olympus m:robe MR-100"
10
11/* define this if you use an ATA controller */
12#define CONFIG_STORAGE STORAGE_ATA
13
14/* define this if you have a bitmap LCD display */
15#define HAVE_LCD_BITMAP
16
17/* define this if you have access to the quickscreen */
18#define HAVE_QUICKSCREEN
19
20/* define this if you have access to the pitchscreen */
21#define HAVE_PITCHSCREEN
22
23/* define this if you would like tagcache to build on this target */
24#define HAVE_TAGCACHE
25
26/* LCD dimensions */
27#define LCD_WIDTH 160
28#define LCD_HEIGHT 128
29#define LCD_DEPTH 1
30
31#define LCD_PIXELFORMAT VERTICAL_PACKING
32#define HAVE_NEGATIVE_LCD /* bright on dark */
33
34/* Display colours, for screenshots and sim (0xRRGGBB) */
35#define LCD_DARKCOLOR 0x000000
36#define LCD_BRIGHTCOLOR 0x323232
37#define LCD_BL_DARKCOLOR 0x5e0202
38#define LCD_BL_BRIGHTCOLOR 0xf10603
39
40/* define this if you can flip your LCD */
41#define HAVE_LCD_FLIP
42
43/* define this if you can invert the colours on your LCD */
44#define HAVE_LCD_INVERT
45
46#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
47
48#ifndef BOOTLOADER
49/* Define this if you have an remote lcd */
50#define HAVE_REMOTE_LCD
51
52#define LCD_REMOTE_WIDTH 79
53#define LCD_REMOTE_HEIGHT 16
54#define LCD_REMOTE_DEPTH 1
55#define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
56
57/* Remote display colours, for screenshots and sim (0xRRGGBB) */
58#define LCD_REMOTE_DARKCOLOR 0x000000
59#define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
60#define LCD_REMOTE_BL_DARKCOLOR 0x000000
61#define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
62#endif /* BOOTLOADER */
63
64#define CONFIG_KEYPAD MROBE100_PAD
65#define CONFIG_REMOTE_KEYPAD MROBE_REMOTE
66
67/* Define this to enable morse code input */
68#define HAVE_MORSE_INPUT
69
70/* Define this if you do software codec */
71#define CONFIG_CODEC SWCODEC
72
73/* define this if you have a real-time clock */
74#ifndef BOOTLOADER
75#define CONFIG_RTC RTC_MR100
76#endif
77
78/* Define this if you have a software controlled poweroff */
79#define HAVE_SW_POWEROFF
80
81/* The number of bytes reserved for loadable codecs */
82#define CODEC_SIZE 0x100000
83
84/* The number of bytes reserved for loadable plugins */
85#define PLUGIN_BUFFER_SIZE 0x80000
86
87/* Wolfsom audio codec */
88#define HAVE_WM8751
89#define CODEC_SRCTRL_44100HZ (0x40|(0x11 << 1)|1)
90
91#define AB_REPEAT_ENABLE 1
92
93/* define this if you have a disk storage, i.e. something
94 that needs spinups and can cause skips when shaked */
95#define HAVE_DISK_STORAGE
96
97/* Define this for LCD backlight available */
98#define HAVE_BACKLIGHT
99
100/* We can fade the backlight by using PWM */
101#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM
102
103/* Main LCD backlight brightness range and defaults */
104#define MIN_BRIGHTNESS_SETTING 1
105#define MAX_BRIGHTNESS_SETTING 12
106#define DEFAULT_BRIGHTNESS_SETTING 6
107
108/* define this if you have a light associated with the buttons */
109#define HAVE_BUTTON_LIGHT
110
111#define HAVE_BUTTONLIGHT_BRIGHTNESS
112
113/* Remote LCD contrast range and defaults */
114#define MIN_REMOTE_CONTRAST_SETTING 0
115#define MAX_REMOTE_CONTRAST_SETTING 15
116#define DEFAULT_REMOTE_CONTRAST_SETTING 8
117
118/* Define this if your LCD can be enabled/disabled */
119/* TODO: #define HAVE_LCD_ENABLE */
120
121/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
122 * should be defined as well.
123 * We can currently put the lcd to sleep but it won't wake up properly */
124/*TODO: #define HAVE_LCD_SLEEP*/
125/*TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
126
127#define BATTERY_CAPACITY_DEFAULT 720 /* default battery capacity */
128
129/* Define this if you have a PortalPlayer PP5020 */
130#define CONFIG_CPU PP5020
131
132/* Define this if you want to use the PP5020 i2c interface */
133#define CONFIG_I2C I2C_PP5020
134
135/* Type of mobile power */
136#define CONFIG_BATTERY BATT_LIION750
137#define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
138#define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
139#define BATTERY_CAPACITY_INC 0 /* capacity increment */
140#define BATTERY_TYPES_COUNT 1 /* only one type */
141
142/* Hardware controlled charging */
143#define CONFIG_CHARGING CHARGING_SIMPLE
144
145/* define this if the hardware can be powered off while charging */
146#define HAVE_POWEROFF_WHILE_CHARGING
147
148/* The start address index for ROM builds */
149#define ROM_START 0x00000000
150
151/* The size of the flash ROM */
152#define FLASH_SIZE 0x100000
153
154/* Define this to the CPU frequency */
155#define CPU_FREQ 75000000
156
157/* Type of LCD */
158#define CONFIG_LCD LCD_MROBE100
159
160/* Define this if your LCD can set contrast */
161#define HAVE_LCD_CONTRAST
162
163#define MIN_CONTRAST_SETTING 0
164#define MAX_CONTRAST_SETTING 40
165#define DEFAULT_CONTRAST_SETTING 20
166
167
168/* We're able to shut off power to the HDD */
169#define HAVE_ATA_POWER_OFF
170
171/* USB On-the-go */
172#define CONFIG_USBOTG USBOTG_ARC
173
174/* define this if the unit can be powered or charged via USB */
175#define HAVE_USB_POWER
176
177/* enable these for the experimental usb stack */
178#define HAVE_USBSTACK
179#define USE_ROCKBOX_USB
180#define USB_VENDOR_ID 0x07B4
181#define USB_PRODUCT_ID 0x0280
182#define HAVE_USB_HID_MOUSE
183
184/* Define this if you have adjustable CPU frequency */
185#define HAVE_ADJUSTABLE_CPU_FREQ
186
187/* Define this if you can detect headphones */
188#define HAVE_HEADPHONE_DETECTION
189
190#define MI4_FORMAT
191#define BOOTFILE_EXT "mi4"
192#define BOOTFILE "rockbox." BOOTFILE_EXT
193#define BOOTDIR "/.rockbox"
194
195/* Offset ( in the firmware file's header ) to the file CRC and data.
196 Not used for the mrobe 100, since it boots an mi4 file, but needed
197 for compatibility. */
198#define FIRMWARE_OFFSET_FILE_CRC 0x0
199#define FIRMWARE_OFFSET_FILE_DATA 0x0
200
201#define ICODE_ATTR_TREMOR_NOT_MDCT
202
diff --git a/firmware/export/config/mrobe500.h b/firmware/export/config/mrobe500.h
new file mode 100644
index 0000000000..96e25c9247
--- /dev/null
+++ b/firmware/export/config/mrobe500.h
@@ -0,0 +1,258 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2007 by Karl Kurbjun
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23 * This config file is for the M:Robe 500i
24 */
25#define TARGET_TREE /* this target is using the target tree system */
26
27#define CONFIG_SDRAM_START 0x00900000
28
29#define OLYMPUS_MROBE_500 1
30#define MODEL_NAME "Olympus M:Robe 500i"
31
32/* For Rolo and boot loader */
33#define MODEL_NUMBER 22
34
35/* define this if you use an ATA controller */
36#define CONFIG_STORAGE STORAGE_ATA
37
38/* Define this to add support for ATA DMA */
39//#define HAVE_ATA_DMA
40
41/* define this if you have a bitmap LCD display */
42#define HAVE_LCD_BITMAP
43
44/* define this if you have a colour LCD */
45#define HAVE_LCD_COLOR
46
47/* define this if you want album art for this target */
48#define HAVE_ALBUMART
49
50/* define this to enable bitmap scaling */
51#define HAVE_BMP_SCALING
52
53/* define this to enable JPEG decoding */
54#define HAVE_JPEG
55
56/* define this if you have access to the quickscreen */
57#define HAVE_QUICKSCREEN
58
59/* define this if you have access to the pitchscreen */
60#define HAVE_PITCHSCREEN
61
62/* define this if you would like tagcache to build on this target */
63#define HAVE_TAGCACHE
64
65/* define this if the target has volume keys which can be used in the lists */
66#define HAVE_VOLUME_IN_LIST
67
68/* define this if you want viewport clipping enabled for safe LCD functions */
69#define HAVE_VIEWPORT_CLIP
70
71/* LCD dimensions */
72#define CONFIG_LCD LCD_MROBE500
73
74/* These defines are used internal to this header */
75#define _LCD_RES_QVGA 1
76#define _LCD_RES_VGA 2
77#define _LCD_PORTRAIT 1
78#define _LCD_LANDSCAPE 2
79
80/* Setup the resolution and orientation */
81#define _RESOLUTION _LCD_RES_VGA
82#define _ORIENTATION _LCD_LANDSCAPE
83
84#if _RESOLUTION == _LCD_RES_VGA
85#define LCD_NATIVE_WIDTH 480
86#define LCD_NATIVE_HEIGHT 640
87#else
88#define LCD_NATIVE_WIDTH 240
89#define LCD_NATIVE_HEIGHT 320
90#endif
91
92/* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */
93#if _ORIENTATION == _LCD_PORTRAIT
94/* This is the Portrait setup */
95#define LCD_WIDTH LCD_NATIVE_WIDTH
96#define LCD_HEIGHT LCD_NATIVE_HEIGHT
97#else
98/* Frame buffer stride */
99#define LCD_STRIDEFORMAT VERTICAL_STRIDE
100
101/* This is the Landscape setup */
102#define LCD_WIDTH LCD_NATIVE_HEIGHT
103#define LCD_HEIGHT LCD_NATIVE_WIDTH
104#endif
105
106#define LCD_DEPTH 16 /* 65k colours */
107#define LCD_PIXELFORMAT RGB565 /* rgb565 */
108
109#define MAX_ICON_HEIGHT 35
110#define MAX_ICON_WIDTH 35
111
112/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
113 should be defined as well. */
114#define HAVE_LCD_SLEEP
115#define HAVE_LCD_SLEEP_SETTING
116
117/* remote LCD */
118#define HAVE_REMOTE_LCD
119#define LCD_REMOTE_WIDTH 79
120#define LCD_REMOTE_HEIGHT 16
121#define LCD_REMOTE_DEPTH 1
122
123/* Remote display colours, for screenshots and sim (0xRRGGBB) */
124#define LCD_REMOTE_DARKCOLOR 0x000000
125#define LCD_REMOTE_BRIGHTCOLOR 0x5a915a
126#define LCD_REMOTE_BL_DARKCOLOR 0x000000
127#define LCD_REMOTE_BL_BRIGHTCOLOR 0x82b4fa
128
129#define LCD_REMOTE_PIXELFORMAT VERTICAL_PACKING
130
131#define CONFIG_REMOTE_KEYPAD MROBE_REMOTE
132
133#define MIN_REMOTE_CONTRAST_SETTING 0
134#define MAX_REMOTE_CONTRAST_SETTING 15
135#define DEFAULT_REMOTE_CONTRAST_SETTING 7
136
137#define CONFIG_KEYPAD MROBE500_PAD
138#define HAVE_TOUCHSCREEN
139#define HAVE_BUTTON_DATA
140
141/* Define this to enable morse code input */
142#define HAVE_MORSE_INPUT
143
144/* define this if the target has volume keys which can be used in the lists */
145#define HAVE_VOLUME_IN_LIST
146
147/* Define this if you do software codec */
148#define CONFIG_CODEC SWCODEC
149
150//#define HAVE_HARDWARE_BEEP
151
152/* There is no hardware tone control */
153#define HAVE_SW_TONE_CONTROLS
154
155/* define this if you have a real-time clock */
156#define CONFIG_RTC RTC_RX5X348AB
157
158/* define this if you have a disk storage, i.e. something
159 that needs spinups and can cause skips when shaked */
160#define HAVE_DISK_STORAGE
161
162/* Define this for LCD backlight available */
163#define HAVE_BACKLIGHT
164
165#define HAVE_BACKLIGHT_BRIGHTNESS
166
167#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
168
169/* Main LCD backlight brightness range and defaults */
170#define MIN_BRIGHTNESS_SETTING 0
171#define MAX_BRIGHTNESS_SETTING 127
172#define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */
173#define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */
174
175/* Define this if you have a software controlled poweroff */
176#define HAVE_SW_POWEROFF
177
178/* The number of bytes reserved for loadable codecs */
179#define CODEC_SIZE 0x100000
180
181/* The number of bytes reserved for loadable plugins */
182#if LCD_NATIVE_WIDTH < 480
183#define PLUGIN_BUFFER_SIZE 0x100000
184#else
185/* THe larger screen needs larger bitmaps in plugins */
186#define PLUGIN_BUFFER_SIZE 0x200000
187#endif
188
189#define HW_SAMPR_CAPS SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11 | SAMPR_CAP_8
190
191#define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
192#define BATTERY_CAPACITY_MIN 1000 /* min. capacity selectable */
193#define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */
194#define BATTERY_CAPACITY_INC 100 /* capacity increment */
195#define BATTERY_TYPES_COUNT 1 /* only one type */
196
197/* define current usage levels */
198#define CURRENT_NORMAL 100 /* Measured */
199#define CURRENT_BACKLIGHT 100 /* Over 200 mA total measured when on */
200#define CURRENT_RECORD 0 /* no recording */
201
202/* Hardware controlled charging with monitoring */
203#define CONFIG_CHARGING CHARGING_MONITOR
204
205/* Define this if you have a Texas Instruments TSC2100 touch screen */
206#define HAVE_TSC2100
207
208/* M66591 register base */
209#define M66591_BASE 0x60000000
210
211/* enable these for the usb stack */
212#define CONFIG_USBOTG USBOTG_M66591
213#define USE_ROCKBOX_USB
214
215#define HAVE_USBSTACK
216//#define HAVE_USB_POWER
217//#define USBPOWER_BUTTON BUTTON_POWER
218//#define USBPOWER_BTN_IGNORE BUTTON_TOUCH
219/* usb stack and driver settings */
220#define USB_NUM_ENDPOINTS 7
221#define USB_VENDOR_ID 0x07b4
222#define USB_PRODUCT_ID 0x0281
223#define HAVE_USB_HID_MOUSE
224
225/* Define this if hardware supports alternate blitting */
226#define HAVE_LCD_MODES LCD_MODE_RGB565 | LCD_MODE_YUV | LCD_MODE_PAL256
227
228#define CONFIG_CPU DM320
229
230#define CONFIG_I2C I2C_DM320
231
232/* define this if the hardware can be powered off while charging */
233#define HAVE_POWEROFF_WHILE_CHARGING
234
235/* The size of the flash ROM */
236#define FLASH_SIZE 0x400000
237
238/* Define this to the CPU frequency */
239#define CPU_FREQ 87500000
240
241/* Define this if you have ATA power-off control */
242#define HAVE_ATA_POWER_OFF
243
244/* Offset ( in the firmware file's header ) to the file CRC */
245#define FIRMWARE_OFFSET_FILE_CRC 0
246
247/* Offset ( in the firmware file's header ) to the real data */
248#define FIRMWARE_OFFSET_FILE_DATA 8
249
250/* Define this if you have adjustable CPU frequency */
251#define HAVE_ADJUSTABLE_CPU_FREQ
252
253#define BOOTFILE_EXT "mrobe500"
254#define BOOTFILE "rockbox." BOOTFILE_EXT
255#define BOOTDIR "/.rockbox"
256
257#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
258
diff --git a/firmware/export/config/ondavx747.h b/firmware/export/config/ondavx747.h
new file mode 100644
index 0000000000..ac2032587a
--- /dev/null
+++ b/firmware/export/config/ondavx747.h
@@ -0,0 +1,224 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2008 by Maurus Cuelenaere
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23 * This config file is for the Onda VX747(+)/VX777
24 */
25
26#define TARGET_TREE /* this target is using the target tree system */
27
28#define CONFIG_SDRAM_START 0x80004000
29
30#ifdef ONDA_VX747P
31#define MODEL_NAME "Onda VX747+"
32#define MODEL_NUMBER 54
33/* Define something for camera interface... */
34#elif defined(ONDA_VX777)
35#define MODEL_NAME "Onda VX777"
36#define MODEL_NUMBER 61
37#else
38#define MODEL_NAME "Onda VX747"
39#define MODEL_NUMBER 45
40#endif
41
42/* Support FAT16 for SD cards <= 2GB */
43#define HAVE_FAT16SUPPORT
44
45/* ChinaChip NAND FTL */
46#define CONFIG_NAND NAND_CC
47
48/* define this if you have a bitmap LCD display */
49#define HAVE_LCD_BITMAP
50
51/* define this if you have a colour LCD */
52#define HAVE_LCD_COLOR
53
54/* define this if you want album art for this target */
55#define HAVE_ALBUMART
56
57/* define this to enable bitmap scaling */
58#define HAVE_BMP_SCALING
59
60/* define this to enable JPEG decoding */
61#define HAVE_JPEG
62
63/* define this if you have access to the quickscreen */
64#define HAVE_QUICKSCREEN
65
66/* define this if you have access to the pitchscreen */
67#define HAVE_PITCHSCREEN
68
69/* define this if you would like tagcache to build on this target */
70#define HAVE_TAGCACHE
71
72/* define this if the target has volume keys which can be used in the lists */
73//#define HAVE_VOLUME_IN_LIST
74
75/* LCD dimensions */
76#define CONFIG_LCD LCD_ONDAVX747
77
78#ifdef BOOTLOADER /* OF requires landscape */
79#define LCD_WIDTH 400
80#define LCD_HEIGHT 240
81#else
82#define LCD_WIDTH 240
83#define LCD_HEIGHT 400
84#endif
85
86#define LCD_DEPTH 16 /* 16bit colours */
87#define LCD_PIXELFORMAT RGB565 /* rgb565 */
88
89/* Define this if your LCD can be enabled/disabled */
90#define HAVE_LCD_ENABLE
91
92#ifdef ONDA_VX777
93#define CONFIG_KEYPAD ONDAVX777_PAD
94#else
95#define CONFIG_KEYPAD ONDAVX747_PAD
96#endif
97#define HAVE_TOUCHSCREEN
98#define HAVE_BUTTON_DATA
99
100/* Define this if you do software codec */
101#define CONFIG_CODEC SWCODEC
102
103/* define this if you have a real-time clock */
104#define CONFIG_RTC RTC_JZ47XX
105
106/* Tuner config */
107#define CONFIG_TUNER TEA5767
108#define CONFIG_TUNER_XTAL 32768
109
110/* Define this for LCD backlight available */
111#define HAVE_BACKLIGHT
112#define HAVE_BACKLIGHT_BRIGHTNESS
113
114/* Which backlight fading type? */
115#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
116
117/* Main LCD backlight brightness range and defaults */
118#define MIN_BRIGHTNESS_SETTING 1
119#define MAX_BRIGHTNESS_SETTING 16
120#define DEFAULT_BRIGHTNESS_SETTING 16 /* "full brightness" */
121#define DEFAULT_DIMNESS_SETTING 1 /* "most dim" */
122
123/* Define this if you have a software controlled poweroff */
124#define HAVE_SW_POWEROFF
125
126/* The number of bytes reserved for loadable codecs */
127#define CODEC_SIZE 0x100000
128
129/* The number of bytes reserved for loadable plugins */
130#define PLUGIN_BUFFER_SIZE 0x100000
131
132/* Define this if you have the Jz4740 internal codec */
133#define HAVE_JZ4740_CODEC
134
135/* Define bitmask of input sources - recordable bitmask can be defined
136 explicitly if different */
137#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
138
139/* has no tone controls, so we use the software ones */
140#define HAVE_SW_TONE_CONTROLS
141
142/* has no volume control, so we use the software ones */
143#define HAVE_SW_VOLUME_CONTROL
144
145/* software controlled volume ranges from -73 -> 0 dB, other than that
146 is controlled by hardware */
147#define SW_VOLUME_MIN -73
148#define SW_VOLUME_MAX 0
149
150/* define the bitmask of hardware sample rates */
151#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
152 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
153 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
154
155#define CONFIG_I2C I2C_JZ47XX
156
157#define NEED_ADC_CLOSE 1
158
159#define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
160#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
161#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
162#define BATTERY_CAPACITY_INC 100 /* capacity increment */
163#define BATTERY_TYPES_COUNT 1 /* only one type */
164
165/* Hardware controlled charging with monitoring */
166#define CONFIG_CHARGING CHARGING_MONITOR
167
168#define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
169
170/*
171No access to the NAND yet..
172
173#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
174#define NUM_DRIVES 2
175*/
176#define CONFIG_STORAGE (STORAGE_SD)
177#define HAVE_MULTIDRIVE
178#define NUM_DRIVES 1
179#define HAVE_HOTSWAP_STORAGE_AS_MAIN
180#define INCLUDE_TIMEOUT_API
181
182/* Define this if media can be exchanged on the fly */
183#define HAVE_HOTSWAP
184
185/* Define this if you have a Ingenic JZ4732 */
186#define CONFIG_CPU JZ4732
187
188/* define this if the hardware can be powered off while charging */
189#define HAVE_POWEROFF_WHILE_CHARGING
190
191/* Define this if you have a speaker */
192#define HAVE_SPEAKER
193
194/* Define this to the CPU frequency */
195#define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
196
197/* define this if you have a flash memory storage */
198#define HAVE_FLASH_STORAGE
199
200/* Offset ( in the firmware file's header ) to the file CRC */
201#define FIRMWARE_OFFSET_FILE_CRC 0
202
203/* Offset ( in the firmware file's header ) to the real data */
204#define FIRMWARE_OFFSET_FILE_DATA 8
205
206/* Define this if you have adjustable CPU frequency */
207#define HAVE_ADJUSTABLE_CPU_FREQ
208
209#ifdef ONDA_VX747P
210#define BOOTFILE_EXT "vx747p"
211#elif defined(ONDA_VX777)
212#define BOOTFILE_EXT "vx777"
213#else
214#define BOOTFILE_EXT "vx747"
215#endif
216#define BOOTFILE "rockbox." BOOTFILE_EXT
217#define BOOTDIR "/.rockbox"
218
219#define CONFIG_USBOTG USBOTG_JZ4740
220#define HAVE_USBSTACK
221#define USE_ROCKBOX_USB
222#define USB_VENDOR_ID 0x07C4
223#define USB_PRODUCT_ID 0xA4A5
224
diff --git a/firmware/export/config/ondavx767.h b/firmware/export/config/ondavx767.h
new file mode 100644
index 0000000000..661d3e9e5e
--- /dev/null
+++ b/firmware/export/config/ondavx767.h
@@ -0,0 +1,167 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2008 by Maurus Cuelenaere
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23 * This config file is for the Onda VX747
24 */
25#define TARGET_TREE /* this target is using the target tree system */
26
27#define CONFIG_SDRAM_START 0x80004000
28
29#define ONDA_VX767 1
30
31#define MODEL_NAME "Onda VX767"
32
33/* For Rolo and boot loader */
34#define MODEL_NUMBER 64
35
36//#define HAVE_ATA_SD
37//#define HAVE_HOTSWAP
38
39//#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
40#define CONFIG_STORAGE STORAGE_SD /* Multivolume currently handled at firmware/target/ level */
41
42#define CONFIG_NAND NAND_CC
43
44#define HAVE_MULTIDRIVE
45#define NUM_DRIVES 2
46
47/* define this if you have a bitmap LCD display */
48#define HAVE_LCD_BITMAP
49
50/* define this if you have a colour LCD */
51#define HAVE_LCD_COLOR
52
53/* define this if you have access to the quickscreen */
54#define HAVE_QUICKSCREEN
55
56/* define this if you have access to the pitchscreen */
57#define HAVE_PITCHSCREEN
58
59/* define this if you would like tagcache to build on this target */
60#define HAVE_TAGCACHE
61
62/* define this if the target has volume keys which can be used in the lists */
63#define HAVE_VOLUME_IN_LIST
64
65/* LCD dimensions */
66#define CONFIG_LCD LCD_ONDAVX767
67
68#define LCD_WIDTH 320
69#define LCD_HEIGHT 240
70
71#define LCD_DEPTH 16 /* 16bit colours */
72#define LCD_PIXELFORMAT RGB565 /* rgb565 */
73
74/* Define this if your LCD can be enabled/disabled */
75//#define HAVE_LCD_ENABLE
76
77#define CONFIG_KEYPAD ONDAVX767_PAD
78
79/* Define this if you do software codec */
80#define CONFIG_CODEC SWCODEC
81
82/* define this if you have a real-time clock */
83#define CONFIG_RTC RTC_JZ47XX
84
85/* Define this for LCD backlight available */
86#define HAVE_BACKLIGHT
87
88#define HAVE_BACKLIGHT_BRIGHTNESS
89
90/* Main LCD backlight brightness range and defaults */
91#define MIN_BRIGHTNESS_SETTING 0 /* TODO */
92#define MAX_BRIGHTNESS_SETTING 127
93#define DEFAULT_BRIGHTNESS_SETTING 85
94#define DEFAULT_DIMNESS_SETTING 22
95
96/* Define this if you have a software controlled poweroff */
97#define HAVE_SW_POWEROFF
98
99/* The number of bytes reserved for loadable codecs */
100#define CODEC_SIZE 0x100000
101
102/* The number of bytes reserved for loadable plugins */
103#define PLUGIN_BUFFER_SIZE 0x100000
104
105/* Define this if you have the Jz4740 internal codec */
106#define HAVE_JZ4740_CODEC
107
108/* Define bitmask of input sources - recordable bitmask can be defined
109 explicitly if different */
110#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
111
112/* Tuner config */
113#define CONFIG_TUNER TEA5767
114#define CONFIG_TUNER_XTAL 32768
115
116/* Define this if you have a speaker */
117//#define HAVE_SPEAKER
118
119#define CONFIG_I2C I2C_JZ47XX
120
121/* TLV320 has no tone controls, so we use the software ones */
122//#define HAVE_SW_TONE_CONTROLS
123
124/*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
125 SAMPR_CAP_11)*/
126
127#define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
128#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
129#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
130#define BATTERY_CAPACITY_INC 100 /* capacity increment */
131#define BATTERY_TYPES_COUNT 1 /* only one type */
132
133/* Hardware controlled charging with monitoring */
134//#define CONFIG_CHARGING CHARGING_MONITOR
135
136/* Define this if you have a Ingenic JZ4740 */
137#define CONFIG_CPU JZ4732
138
139/* define this if the hardware can be powered off while charging */
140#define HAVE_POWEROFF_WHILE_CHARGING
141
142/* Define this to the CPU frequency */
143#define CPU_FREQ 336000000 /* CPU clock: 336 MHz */
144#define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
145
146/* define this if you have a flash memory storage */
147#define HAVE_FLASH_STORAGE
148
149/* Offset ( in the firmware file's header ) to the file CRC */
150#define FIRMWARE_OFFSET_FILE_CRC 0
151
152/* Offset ( in the firmware file's header ) to the real data */
153#define FIRMWARE_OFFSET_FILE_DATA 8
154
155/* Define this if you have adjustable CPU frequency */
156#define HAVE_ADJUSTABLE_CPU_FREQ
157
158#define BOOTFILE_EXT "vx767"
159#define BOOTFILE "rockbox." BOOTFILE_EXT
160#define BOOTDIR "/.rockbox"
161
162#define CONFIG_USBOTG USBOTG_JZ4740
163#define HAVE_USBSTACK
164#define USE_ROCKBOX_USB
165#define USB_VENDOR_ID 0x07C4
166#define USB_PRODUCT_ID 0xA4A5
167
diff --git a/firmware/export/config/samsungyh820.h b/firmware/export/config/samsungyh820.h
new file mode 100644
index 0000000000..4968960803
--- /dev/null
+++ b/firmware/export/config/samsungyh820.h
@@ -0,0 +1,183 @@
1/*
2 * This config file is for the Samsung YH-820
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 57
9#define MODEL_NAME "Samsung YH-820"
10
11/* define this if you have recording possibility */
12/* todo #define HAVE_RECORDING */
13
14/* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN )
17
18/* define the bitmask of hardware sample rates */
19#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
20 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
21 SAMPR_CAP_11 | SAMPR_CAP_8)
22
23/* define the bitmask of recording sample rates */
24#define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
25 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
26 SAMPR_CAP_11 | SAMPR_CAP_8)
27
28/* Type of LCD */
29#define CONFIG_LCD LCD_S6B33B2
30
31/* LCD dimensions */
32#define LCD_WIDTH 128
33#define LCD_HEIGHT 96
34#define LCD_DEPTH 16 /* 65536 colours */
35#define LCD_PIXELFORMAT RGB565
36
37#ifndef BOOTLOADER
38
39/* define this if you have a real-time clock */
40#define CONFIG_RTC RTC_E8564
41/* TODO ??? */
42//#define HAVE_RTC_ALARM
43
44/* Define this if your LCD can be enabled/disabled */
45#define HAVE_LCD_ENABLE
46
47/* Define this if your LCD can be put to sleep.
48 HAVE_LCD_ENABLE should be defined as well. */
49/* todo #define HAVE_LCD_SLEEP*/
50/* todo #define HAVE_LCD_SLEEP_SETTING */
51#endif /* !BOOTLOADER */
52
53/* Define this for LCD backlight available */
54#define HAVE_BACKLIGHT
55
56/* Define this if your LCD can set contrast */
57#define HAVE_LCD_CONTRAST
58
59#define MIN_CONTRAST_SETTING 0
60#define MAX_CONTRAST_SETTING 255
61#define DEFAULT_CONTRAST_SETTING 137
62
63/* define this if you can flip your LCD */
64/* #define HAVE_LCD_FLIP */
65
66/* define this if you can invert the colours on your LCD */
67/* todo #define HAVE_LCD_INVERT */
68
69/* put the lcd frame buffer in IRAM */
70/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
71
72/* define this if you have a bitmap LCD display */
73#define HAVE_LCD_BITMAP
74
75/* define this if you have a colour LCD */
76#define HAVE_LCD_COLOR
77
78/* define this if you want album art for this target */
79#define HAVE_ALBUMART
80
81/* define this to enable bitmap scaling */
82#define HAVE_BMP_SCALING
83
84/* define this to enable JPEG decoding */
85#define HAVE_JPEG
86
87/* define this if you have access to the quickscreen */
88#define HAVE_QUICKSCREEN
89
90/* define this if you have access to the pitchscreen */
91#define HAVE_PITCHSCREEN
92
93/* define this if you would like tagcache to build on this target */
94#define HAVE_TAGCACHE
95
96#define CONFIG_KEYPAD SAMSUNG_YH_PAD
97
98/* Define this if you do software codec */
99#define CONFIG_CODEC SWCODEC
100
101/* define this if you have a disk storage, i.e. something
102 that needs spinups and can cause skips when shaked */
103#define HAVE_DISK_STORAGE
104
105/* define this if you use an ATA controller */
106#define CONFIG_STORAGE STORAGE_ATA
107
108/* We're able to shut off power to the HDD */
109/* todo #define HAVE_ATA_POWER_OFF */
110
111/* Define this if you have a software controlled poweroff */
112#define HAVE_SW_POWEROFF
113
114/* The number of bytes reserved for loadable codecs */
115#define CODEC_SIZE 0x100000
116
117/* The number of bytes reserved for loadable plugins */
118#define PLUGIN_BUFFER_SIZE 0x80000
119
120/* Define this if you have the AK4537 audio codec */
121#define HAVE_AK4537
122
123/* AK4537 has no tone controls, so we use the software ones */
124#define HAVE_SW_TONE_CONTROLS
125
126#define AB_REPEAT_ENABLE 1
127
128#define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
129#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
130#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
131#define BATTERY_CAPACITY_INC 50 /* capacity increment */
132#define BATTERY_TYPES_COUNT 1 /* only one type */
133
134/* Hardware controlled charging */
135#define CONFIG_CHARGING CHARGING_SIMPLE
136
137/* define this if the unit can be powered or charged via USB */
138#define HAVE_USB_POWER
139
140/* Define this if you have a PortalPlayer PP5020 */
141#define CONFIG_CPU PP5020
142
143/* Define this if you want to use the PP5020 i2c interface */
144#define CONFIG_I2C I2C_PP5020
145
146/* define this if the hardware can be powered off while charging */
147#define HAVE_POWEROFF_WHILE_CHARGING
148
149/* The start address index for ROM builds */
150#define ROM_START 0x00000000
151
152/* The size of the flash ROM */
153#define FLASH_SIZE 0x100000
154
155/* Define this to the CPU frequency */
156#define CPU_FREQ 75000000
157
158/* USB On-the-go */
159#define CONFIG_USBOTG USBOTG_ARC
160
161/* enable these for the experimental usb stack */
162#define HAVE_USBSTACK
163#define USE_ROCKBOX_USB
164/* todo - check */
165#define USB_VENDOR_ID 0x04e8
166#define USB_PRODUCT_ID 0x5023
167
168/* Define this if you have adjustable CPU frequency */
169#define HAVE_ADJUSTABLE_CPU_FREQ
170
171#define MI4_FORMAT
172#define BOOTFILE_EXT "mi4"
173#define BOOTFILE "rockbox." BOOTFILE_EXT
174#define BOOTDIR "/.rockbox"
175
176/* Offset ( in the firmware file's header ) to the file CRC */
177#define FIRMWARE_OFFSET_FILE_CRC 0x00
178
179/* Offset ( in the firmware file's header ) to the real data */
180#define FIRMWARE_OFFSET_FILE_DATA 0x00
181
182#define ICODE_ATTR_TREMOR_NOT_MDCT
183
diff --git a/firmware/export/config/samsungyh920.h b/firmware/export/config/samsungyh920.h
new file mode 100644
index 0000000000..310fa1374c
--- /dev/null
+++ b/firmware/export/config/samsungyh920.h
@@ -0,0 +1,189 @@
1/*
2 * This config file is for the Samsung YH-920
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 58
9#define MODEL_NAME "Samsung YH-920"
10
11/* define this if you have recording possibility */
12/* todo #define HAVE_RECORDING */
13
14/* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN )
17
18/* define the bitmask of hardware sample rates */
19#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
20 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
21 SAMPR_CAP_11 | SAMPR_CAP_8)
22
23/* define the bitmask of recording sample rates */
24#define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
25 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
26 SAMPR_CAP_11 | SAMPR_CAP_8)
27
28/* Type of LCD */
29#define CONFIG_LCD LCD_S1D15E06
30
31/* LCD dimensions */
32#define LCD_WIDTH 160
33#define LCD_HEIGHT 128
34#define LCD_DEPTH 2
35#define LCD_PIXELFORMAT VERTICAL_PACKING
36
37/* Display colours, for screenshots and sim (0xRRGGBB) */
38#define LCD_DARKCOLOR 0x000000
39#define LCD_BRIGHTCOLOR 0x5a915a
40#define LCD_BL_DARKCOLOR 0x000000
41#define LCD_BL_BRIGHTCOLOR 0xadd8e6
42
43/* todo */
44/* #ifndef BOOTLOADER */
45#if 0
46/* Define this if your LCD can be enabled/disabled */
47#define HAVE_LCD_ENABLE
48
49/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
50 * should be defined as well.
51 * We can currently put the lcd to sleep but it won't wake up properly */
52#define HAVE_LCD_SLEEP
53#define HAVE_LCD_SLEEP_SETTING
54#endif
55
56/* Define this for LCD backlight available */
57#define HAVE_BACKLIGHT
58
59/* Define this if your LCD can set contrast */
60/* todo #define HAVE_LCD_CONTRAST */
61
62#define MIN_CONTRAST_SETTING 0
63#define MAX_CONTRAST_SETTING 30
64#define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
65
66/* define this if you can flip your LCD */
67/* todo #define HAVE_LCD_FLIP */
68
69/* define this if you can invert the colours on your LCD */
70/* todo #define HAVE_LCD_INVERT */
71
72/* put the lcd frame buffer in IRAM */
73/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
74
75/* define this if you have a bitmap LCD display */
76#define HAVE_LCD_BITMAP
77
78/* define this if you want album art for this target */
79#define HAVE_ALBUMART
80
81/* define this to enable bitmap scaling */
82#define HAVE_BMP_SCALING
83
84/* define this to enable JPEG decoding */
85#define HAVE_JPEG
86
87/* define this if you have access to the quickscreen */
88#define HAVE_QUICKSCREEN
89
90/* define this if you have access to the pitchscreen */
91#define HAVE_PITCHSCREEN
92
93/* define this if you would like tagcache to build on this target */
94#define HAVE_TAGCACHE
95
96#define CONFIG_KEYPAD SAMSUNG_YH_PAD
97
98/* Define this if you do software codec */
99#define CONFIG_CODEC SWCODEC
100
101/* define this if you have a real-time clock */
102#ifndef BOOTLOADER
103#define CONFIG_RTC RTC_E8564
104/* TODO ??? */
105//#define HAVE_RTC_ALARM
106#endif
107
108/* define this if you have a disk storage, i.e. something
109 that needs spinups and can cause skips when shaked */
110#define HAVE_DISK_STORAGE
111
112/* define this if you use an ATA controller */
113#define CONFIG_STORAGE STORAGE_ATA
114
115/* We're able to shut off power to the HDD */
116/* todo #define HAVE_ATA_POWER_OFF */
117
118/* Define this if you have a software controlled poweroff */
119#define HAVE_SW_POWEROFF
120
121/* The number of bytes reserved for loadable codecs */
122#define CODEC_SIZE 0x100000
123
124/* The number of bytes reserved for loadable plugins */
125#define PLUGIN_BUFFER_SIZE 0x80000
126
127/* Define this if you have the AK4537 audio codec */
128#define HAVE_AK4537
129
130/* AK4537 has no tone controls, so we use the software ones */
131#define HAVE_SW_TONE_CONTROLS
132
133#define AB_REPEAT_ENABLE 1
134
135#define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
136#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
137#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
138#define BATTERY_CAPACITY_INC 50 /* capacity increment */
139#define BATTERY_TYPES_COUNT 1 /* only one type */
140
141/* Hardware controlled charging */
142#define CONFIG_CHARGING CHARGING_SIMPLE
143
144/* define this if the unit can be powered or charged via USB */
145#define HAVE_USB_POWER
146
147/* Define this if you have a PortalPlayer PP5020 */
148#define CONFIG_CPU PP5020
149
150/* Define this if you want to use the PP5020 i2c interface */
151#define CONFIG_I2C I2C_PP5020
152
153/* define this if the hardware can be powered off while charging */
154#define HAVE_POWEROFF_WHILE_CHARGING
155
156/* The start address index for ROM builds */
157#define ROM_START 0x00000000
158
159/* The size of the flash ROM */
160#define FLASH_SIZE 0x100000
161
162/* Define this to the CPU frequency */
163#define CPU_FREQ 75000000
164
165/* USB On-the-go */
166#define CONFIG_USBOTG USBOTG_ARC
167
168/* enable these for the experimental usb stack */
169#define HAVE_USBSTACK
170#define USE_ROCKBOX_USB
171#define USB_VENDOR_ID 0x04e8
172#define USB_PRODUCT_ID 0x5022
173
174/* Define this if you have adjustable CPU frequency */
175#define HAVE_ADJUSTABLE_CPU_FREQ
176
177#define MI4_FORMAT
178#define BOOTFILE_EXT "mi4"
179#define BOOTFILE "rockbox." BOOTFILE_EXT
180#define BOOTDIR "/.rockbox"
181
182/* Offset ( in the firmware file's header ) to the file CRC */
183#define FIRMWARE_OFFSET_FILE_CRC 0x00
184
185/* Offset ( in the firmware file's header ) to the real data */
186#define FIRMWARE_OFFSET_FILE_DATA 0x00
187
188#define ICODE_ATTR_TREMOR_NOT_MDCT
189
diff --git a/firmware/export/config/samsungyh925.h b/firmware/export/config/samsungyh925.h
new file mode 100644
index 0000000000..55d46ae1e1
--- /dev/null
+++ b/firmware/export/config/samsungyh925.h
@@ -0,0 +1,187 @@
1/*
2 * This config file is for the Samsung YH-925
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 59
9#define MODEL_NAME "Samsung YH-925"
10
11/* define this if you have recording possibility */
12/* todo #define HAVE_RECORDING */
13
14/* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN )
17
18/* define the bitmask of hardware sample rates */
19#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
20 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
21 SAMPR_CAP_11 | SAMPR_CAP_8)
22
23/* define the bitmask of recording sample rates */
24#define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
25 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
26 SAMPR_CAP_11 | SAMPR_CAP_8)
27
28/* Type of LCD */
29#define CONFIG_LCD LCD_YH925
30
31/* LCD dimensions */
32#define LCD_WIDTH 160
33#define LCD_HEIGHT 128
34#define LCD_DEPTH 16 /* 65536 colours */
35#define LCD_PIXELFORMAT RGB565
36
37/* todo */
38/* #ifndef BOOTLOADER */
39#if 0
40/* Define this if your LCD can be enabled/disabled */
41#define HAVE_LCD_ENABLE
42
43/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
44 * should be defined as well.
45 * We can currently put the lcd to sleep but it won't wake up properly */
46#define HAVE_LCD_SLEEP
47#define HAVE_LCD_SLEEP_SETTING
48#endif
49
50/* Define this for LCD backlight available */
51#define HAVE_BACKLIGHT
52
53/* Define this if your LCD can set contrast */
54#define HAVE_LCD_CONTRAST
55
56#define MIN_CONTRAST_SETTING 0
57#define MAX_CONTRAST_SETTING 30
58#define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
59
60/* define this if you can flip your LCD */
61#define HAVE_LCD_FLIP
62
63/* define this if you can invert the colours on your LCD */
64/* todo #define HAVE_LCD_INVERT */
65
66/* put the lcd frame buffer in IRAM */
67/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
68
69/* define this if you have a bitmap LCD display */
70#define HAVE_LCD_BITMAP
71
72/* define this if you have a colour LCD */
73#define HAVE_LCD_COLOR
74
75/* define this if you want album art for this target */
76#define HAVE_ALBUMART
77
78/* define this to enable bitmap scaling */
79#define HAVE_BMP_SCALING
80
81/* define this to enable JPEG decoding */
82#define HAVE_JPEG
83
84/* define this if you have access to the quickscreen */
85#define HAVE_QUICKSCREEN
86
87/* define this if you have access to the pitchscreen */
88#define HAVE_PITCHSCREEN
89
90/* define this if you would like tagcache to build on this target */
91#define HAVE_TAGCACHE
92
93#define CONFIG_KEYPAD SAMSUNG_YH_PAD
94
95/* Define this if you do software codec */
96#define CONFIG_CODEC SWCODEC
97
98/* define this if you have a real-time clock */
99#ifndef BOOTLOADER
100#define CONFIG_RTC RTC_E8564
101/* TODO */
102//#define HAVE_RTC_ALARM
103#endif
104
105/* define this if you have a disk storage, i.e. something
106 that needs spinups and can cause skips when shaked */
107#define HAVE_DISK_STORAGE
108
109/* define this if you use an ATA controller */
110#define CONFIG_STORAGE STORAGE_ATA
111
112/* We're able to shut off power to the HDD */
113/* todo #define HAVE_ATA_POWER_OFF */
114
115/* Define this if you have a software controlled poweroff */
116#define HAVE_SW_POWEROFF
117
118/* The number of bytes reserved for loadable codecs */
119#define CODEC_SIZE 0x100000
120
121/* The number of bytes reserved for loadable plugins */
122#define PLUGIN_BUFFER_SIZE 0x80000
123
124/* Define this if you have the AK4537 audio codec */
125#define HAVE_AK4537
126
127/* AK4537 has no tone controls, so we use the software ones */
128#define HAVE_SW_TONE_CONTROLS
129
130#define AB_REPEAT_ENABLE 1
131
132#define BATTERY_CAPACITY_DEFAULT 900 /* default battery capacity */
133#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
134#define BATTERY_CAPACITY_MAX 1150 /* max. capacity selectable */
135#define BATTERY_CAPACITY_INC 50 /* capacity increment */
136#define BATTERY_TYPES_COUNT 1 /* only one type */
137
138/* Hardware controlled charging */
139#define CONFIG_CHARGING CHARGING_SIMPLE
140
141/* define this if the unit can be powered or charged via USB */
142#define HAVE_USB_POWER
143
144/* Define this if you have a PortalPlayer PP5020 */
145#define CONFIG_CPU PP5020
146
147/* Define this if you want to use the PP5020 i2c interface */
148#define CONFIG_I2C I2C_PP5020
149
150/* define this if the hardware can be powered off while charging */
151#define HAVE_POWEROFF_WHILE_CHARGING
152
153/* The start address index for ROM builds */
154#define ROM_START 0x00000000
155
156/* The size of the flash ROM */
157#define FLASH_SIZE 0x100000
158
159/* Define this to the CPU frequency */
160#define CPU_FREQ 75000000
161
162/* USB On-the-go */
163#define CONFIG_USBOTG USBOTG_ARC
164
165/* enable these for the experimental usb stack */
166#define HAVE_USBSTACK
167#define USE_ROCKBOX_USB
168/* todo - check */
169#define USB_VENDOR_ID 0x04e8
170#define USB_PRODUCT_ID 0x5024
171
172/* Define this if you have adjustable CPU frequency */
173#define HAVE_ADJUSTABLE_CPU_FREQ
174
175#define MI4_FORMAT
176#define BOOTFILE_EXT "mi4"
177#define BOOTFILE "rockbox." BOOTFILE_EXT
178#define BOOTDIR "/.rockbox"
179
180/* Offset ( in the firmware file's header ) to the file CRC */
181#define FIRMWARE_OFFSET_FILE_CRC 0x00
182
183/* Offset ( in the firmware file's header ) to the real data */
184#define FIRMWARE_OFFSET_FILE_DATA 0x00
185
186#define ICODE_ATTR_TREMOR_NOT_MDCT
187
diff --git a/firmware/export/config/samsungyps3.h b/firmware/export/config/samsungyps3.h
new file mode 100644
index 0000000000..fd8fde6f6c
--- /dev/null
+++ b/firmware/export/config/samsungyps3.h
@@ -0,0 +1,182 @@
1/*
2 * This config file is for Samsung YP-S3
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 53
9
10#define MODEL_NAME "Samsumg YP-S3"
11
12/* define this if you have recording possibility */
13//#define HAVE_RECORDING
14
15/* Define bitmask of input sources - recordable bitmask can be defined
16 explicitly if different */
17#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
18
19/* define the bitmask of hardware sample rates */
20#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
21
22/* define the bitmask of recording sample rates */
23#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
24
25/* define this if you have a bitmap LCD display */
26#define HAVE_LCD_BITMAP
27
28/* define this if you can flip your LCD */
29//#define HAVE_LCD_FLIP
30
31/* define this if you have a colour LCD */
32#define HAVE_LCD_COLOR
33
34/* define this if you want album art for this target */
35#define HAVE_ALBUMART
36
37/* define this to enable bitmap scaling */
38#define HAVE_BMP_SCALING
39
40/* define this to enable JPEG decoding */
41#define HAVE_JPEG
42
43/* define this if you can invert the colours on your LCD */
44//#define HAVE_LCD_INVERT
45
46/* define this if you have access to the quickscreen */
47#define HAVE_QUICKSCREEN
48
49/* define this if you have access to the pitchscreen */
50#define HAVE_PITCHSCREEN
51
52/* define this if you would like tagcache to build on this target */
53#define HAVE_TAGCACHE
54
55/* define this if you have a flash memory storage */
56#define HAVE_FLASH_STORAGE
57
58#define CONFIG_STORAGE STORAGE_NAND
59
60#define CONFIG_NAND NAND_SAMSUNG
61
62/* LCD dimensions */
63#define LCD_WIDTH 176
64#define LCD_HEIGHT 220
65#define LCD_DEPTH 16 /* pseudo 262.144 colors */
66#define LCD_PIXELFORMAT RGB565 /* rgb565 */
67
68/* Define this if your LCD can be enabled/disabled */
69//#define HAVE_LCD_ENABLE
70
71/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
72 should be defined as well. */
73//#define HAVE_LCD_SLEEP
74
75/* We have button lights */
76#define HAVE_BUTTON_LIGHT
77
78#define CONFIG_KEYPAD MEIZU_M3_PAD
79
80/* We have headphone detection */
81#define HAVE_HEADPHONE_DETECTION
82
83//#define AB_REPEAT_ENABLE 1
84//#define ACTION_WPSAB_SINGLE ACTION_WPS_BROWSE
85
86/* Define this if you do software codec */
87#define CONFIG_CODEC SWCODEC
88
89/* define this if you have a real-time clock */
90#define CONFIG_RTC RTC_S35390A
91
92/* Define the type of audio codec */
93//#define HAVE_WM....
94
95/* Define this for LCD backlight available */
96#define HAVE_BACKLIGHT
97#define HAVE_BACKLIGHT_BRIGHTNESS
98
99/* Define this if you have a software controlled poweroff */
100#define HAVE_SW_POWEROFF
101
102/* The number of bytes reserved for loadable codecs */
103#define CODEC_SIZE 0x100000
104
105/* The number of bytes reserved for loadable plugins */
106#define PLUGIN_BUFFER_SIZE 0x80000
107
108/* FM Tuner */
109#define CONFIG_TUNER SI4700
110#define CONFIG_TUNER_XTAL 32768
111
112/* assume no tone controls, so we use the software ones */
113#define HAVE_SW_TONE_CONTROLS
114
115#define BATTERY_CAPACITY_DEFAULT 580 /* default battery capacity */
116#define BATTERY_CAPACITY_MIN 580 /* min. capacity selectable */
117#define BATTERY_CAPACITY_MAX 580 /* max. capacity selectable */
118#define BATTERY_CAPACITY_INC 0 /* capacity increment */
119#define BATTERY_TYPES_COUNT 1 /* only one type */
120
121/* Hardware controlled charging, software can monitor plug and charge state */
122#define CONFIG_CHARGING CHARGING_MONITOR
123
124/* Define this if your LCD can set contrast */
125//#define HAVE_LCD_CONTRAST
126
127/* We have a Samsung S5L8700 */
128#define CONFIG_CPU S5L8700
129
130/* We use the S5L8700 i2c interface */
131#define CONFIG_I2C I2C_S5L8700
132
133/* define this if the hardware can be powered off while charging */
134//#define HAVE_POWEROFF_WHILE_CHARGING
135
136/* The size of the flash ROM */
137#define FLASH_SIZE 0x400000
138
139/* Define this to the CPU frequency */
140#define CPU_FREQ 200000000
141
142/* Define this if you have ATA power-off control */
143//#define HAVE_ATA_POWER_OFF
144
145/* Offset ( in the firmware file's header ) to the file CRC */
146#define FIRMWARE_OFFSET_FILE_CRC 0
147
148/* Offset ( in the firmware file's header ) to the real data */
149#define FIRMWARE_OFFSET_FILE_DATA 8
150
151/* USB */
152//#define HAVE_USBSTACK
153#define USE_ROCKBOX_USB
154#define USB_VENDOR_ID 0x04E8
155#define USB_PRODUCT_ID 0x5090
156
157/* Define this if you have adjustable CPU frequency */
158#define HAVE_ADJUSTABLE_CPU_FREQ
159
160#define BOOTFILE_EXT "yps3"
161#define BOOTFILE "rockbox." BOOTFILE_EXT
162#define BOOTDIR "/.rockbox"
163
164//#define BOOTLOADER_ENTRYPOINT 0x001F0000
165//#define FLASH_ENTRYPOINT 0x00001000
166//#define FLASH_MAGIC 0xfbfbfbf1
167
168/* Define this for FM radio input available */
169#define HAVE_FMRADIO_IN
170
171/** Port-specific settings **/
172
173/* Main LCD contrast range and defaults */
174#define MIN_CONTRAST_SETTING 1
175#define MAX_CONTRAST_SETTING 30
176#define DEFAULT_CONTRAST_SETTING 19 /* Match boot contrast */
177
178/* Main LCD backlight brightness range and defaults */
179#define MIN_BRIGHTNESS_SETTING 0
180#define MAX_BRIGHTNESS_SETTING 15
181#define DEFAULT_BRIGHTNESS_SETTING 10
182
diff --git a/firmware/export/config/sansac100.h b/firmware/export/config/sansac100.h
new file mode 100644
index 0000000000..a332bf5670
--- /dev/null
+++ b/firmware/export/config/sansac100.h
@@ -0,0 +1,128 @@
1/*
2 * This config file is for the Sansa C100 series
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define MODEL_NAME "Sandisk Sansa c100 series"
7
8/* For Rolo and bootloader */
9#define MODEL_NUMBER 30
10
11/* define hardware samples rate caps mask */
12#define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
13
14/* define this if you have a bitmap LCD display */
15#define HAVE_LCD_BITMAP
16
17/* define this if you have a colour LCD */
18#define HAVE_LCD_COLOR
19
20/* define this if you can flip your LCD */
21/*#define HAVE_LCD_FLIP*/
22
23/* define this if you can invert the colours on your LCD */
24/*#define HAVE_LCD_INVERT*/
25
26/* define this if you have access to the quickscreen */
27#define HAVE_QUICKSCREEN
28
29/* define this if you have access to the pitchscreen */
30#define HAVE_PITCHSCREEN
31
32/* define this if you would like tagcache to build on this target */
33#define HAVE_TAGCACHE
34
35/* define this if you have a flash memory storage */
36#define HAVE_FLASH_STORAGE
37
38/* Only v1 */
39#define CONFIG_STORAGE STORAGE_NAND
40#define CONFIG_NAND NAND_TCC
41
42/* c100's with direct-to-NAND access are FAT16 */
43#define HAVE_FAT16SUPPORT
44
45/* LCD dimensions */
46#define LCD_WIDTH 128
47#define LCD_HEIGHT 64
48#define LCD_DEPTH 16 /* 65536 colours */
49#define LCD_PIXELFORMAT RGB565 /*rgb565*/
50
51/*#define LCD_PIXELFORMAT VERTICAL_PACKING*/
52
53/* define this to indicate your device's keypad */
54#define CONFIG_KEYPAD SANSA_C100_PAD
55
56/* define this if you have a real-time clock */
57#define CONFIG_RTC RTC_TCC77X
58
59/* define this if you have RTC RAM available for settings */
60//#define HAVE_RTC_RAM
61
62/* Define this if you have a software controlled poweroff */
63#define HAVE_SW_POWEROFF
64
65/* The number of bytes reserved for loadable codecs */
66#define CODEC_SIZE 0x50000
67
68/* The number of bytes reserved for loadable plugins */
69#define PLUGIN_BUFFER_SIZE 0x50000
70
71#define AB_REPEAT_ENABLE 1
72
73/* Define this if you do software codec */
74#define CONFIG_CODEC SWCODEC
75
76/* Define this if you have the TLV320 audio codec */
77#define HAVE_TLV320
78
79/*#define CONFIG_TUNER TEA5767*/
80
81/* TLV320 has no tone controls, so we use the software ones */
82#define HAVE_SW_TONE_CONTROLS
83
84/* Define this for LCD backlight available */
85#define HAVE_BACKLIGHT
86
87#define CONFIG_I2C I2C_TCC77X
88
89#define BATTERY_CAPACITY_DEFAULT 540 /* default battery capacity */
90#define BATTERY_CAPACITY_MIN 540 /* min. capacity selectable */
91#define BATTERY_CAPACITY_MAX 540 /* max. capacity selectable */
92#define BATTERY_CAPACITY_INC 50 /* capacity increment */
93#define BATTERY_TYPES_COUNT 1 /* only one type */
94
95/* define this if the unit should not shut down on low battery. */
96#define NO_LOW_BATTERY_SHUTDOWN
97
98/* Define this if you have a TCC770 */
99#define CONFIG_CPU TCC770
100
101/* Define this if you have ATA power-off control */
102#define HAVE_ATA_POWER_OFF
103
104/* Define this to the CPU frequency */
105#define CPU_FREQ 120000000
106
107/* Offset ( in the firmware file's header ) to the file CRC */
108#define FIRMWARE_OFFSET_FILE_CRC 0
109
110/* Offset ( in the firmware file's header ) to the real data */
111#define FIRMWARE_OFFSET_FILE_DATA 8
112
113/* The start address index for ROM builds */
114/* #define ROM_START 0x11010 for behind original Archos */
115#define ROM_START 0x7010 /* for behind BootBox */
116
117#define CONFIG_LCD LCD_S6B33B2
118
119#define BOOTFILE_EXT "c100"
120#define BOOTFILE "rockbox." BOOTFILE_EXT
121#define BOOTDIR "/.rockbox"
122
123#ifdef BOOTLOADER
124#define TCCBOOT
125#endif
126
127#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
128
diff --git a/firmware/export/config/sansac200.h b/firmware/export/config/sansac200.h
new file mode 100644
index 0000000000..45cfb8aee9
--- /dev/null
+++ b/firmware/export/config/sansac200.h
@@ -0,0 +1,207 @@
1/*
2 * This config file is for the Sandisk Sansa e200
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 20
8#define MODEL_NAME "Sandisk Sansa c200 series"
9
10#define HW_SAMPR_CAPS (SAMPR_CAP_44)
11
12/* define this if you have recording possibility */
13#define HAVE_RECORDING
14
15#define REC_SAMPR_CAPS (SAMPR_CAP_22)
16#define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
17#define REC_SAMPR_DEFAULT SAMPR_22
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
22
23/* define this if you have a bitmap LCD display */
24#define HAVE_LCD_BITMAP
25
26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR
28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
32/* define this to enable bitmap scaling */
33#define HAVE_BMP_SCALING
34
35/* define this to enable JPEG decoding */
36#define HAVE_JPEG
37
38/* define this if you have a light associated with the buttons */
39#define HAVE_BUTTON_LIGHT
40
41/* define this if you have access to the quickscreen */
42#define HAVE_QUICKSCREEN
43
44/* define this if you have access to the pitchscreen */
45#define HAVE_PITCHSCREEN
46
47/* define this if you would like tagcache to build on this target */
48#define HAVE_TAGCACHE
49
50/* LCD dimensions */
51#define LCD_WIDTH 132
52#define LCD_HEIGHT 80
53#define LCD_DEPTH 16 /* 65536 colours */
54#define LCD_PIXELFORMAT RGB565 /* rgb565 */
55
56/* define this if you have LCD enable function */
57#define HAVE_LCD_ENABLE
58
59/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
60 should be defined as well. */
61/* TODO: #define HAVE_LCD_SLEEP */
62/* TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
63
64/* define this if you can flip your LCD */
65#define HAVE_LCD_FLIP
66
67/* define this if you can invert the colours on your LCD */
68/* TODO: #define HAVE_LCD_INVERT */
69
70/* Define this if your LCD can set contrast */
71#define HAVE_LCD_CONTRAST
72
73#define MIN_CONTRAST_SETTING 0
74#define MAX_CONTRAST_SETTING 255
75#define DEFAULT_CONTRAST_SETTING 85
76
77/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
78
79#define CONFIG_KEYPAD SANSA_C200_PAD
80
81/* define this if the target has volume keys which can be used in the lists */
82#define HAVE_VOLUME_IN_LIST
83
84/* Define this if you do software codec */
85#define CONFIG_CODEC SWCODEC
86
87/* There is no hardware tone control */
88#define HAVE_SW_TONE_CONTROLS
89
90/* The PP5024 has a built-in AustriaMicrosystems AS3514 */
91#define HAVE_AS3514
92
93/* define this if you have a real-time clock */
94#ifndef BOOTLOADER
95#define CONFIG_RTC RTC_AS3514
96#endif
97
98/* Define this if you have a software controlled poweroff */
99#define HAVE_SW_POWEROFF
100
101/* Some Sansa E200s seem to be FAT16 formatted */
102#define HAVE_FAT16SUPPORT
103
104/* The number of bytes reserved for loadable codecs */
105#define CODEC_SIZE 0x100000
106
107/* The number of bytes reserved for loadable plugins */
108#define PLUGIN_BUFFER_SIZE 0x80000
109
110#define AB_REPEAT_ENABLE 1
111
112/* FM Tuner */
113#define CONFIG_TUNER LV24020LP
114#define HAVE_TUNER_PWR_CTRL
115
116/* Define this for LCD backlight available */
117#define HAVE_BACKLIGHT
118#define HAVE_BACKLIGHT_BRIGHTNESS
119
120/* Main LCD backlight brightness range and defaults */
121#define MIN_BRIGHTNESS_SETTING 1
122#define MAX_BRIGHTNESS_SETTING 12
123#define DEFAULT_BRIGHTNESS_SETTING 6
124
125/* Which backlight fading type? */
126#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
127
128/* define this if you have a flash memory storage */
129#define HAVE_FLASH_STORAGE
130
131/* define this if the flash memory uses the SecureDigital Memory Card protocol */
132#define CONFIG_STORAGE STORAGE_SD
133
134#define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
135#define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
136#define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
137#define BATTERY_CAPACITY_INC 0 /* capacity increment */
138#define BATTERY_TYPES_COUNT 1 /* only one type */
139
140/* Charging implemented in a target-specific algorithm */
141#define CONFIG_CHARGING CHARGING_TARGET
142#define HAVE_POWEROFF_WHILE_CHARGING
143
144/* define this if the unit can be powered or charged via USB */
145#define HAVE_USB_POWER
146
147/* define current usage levels */
148#define CURRENT_NORMAL 30 /* Should be nearly identical to E200 */
149#define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
150#define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
151
152/* Define this if you have a PortalPlayer PP5024 */
153#define CONFIG_CPU PP5022
154
155/* Define this if you want to use the PP5024 i2c interface */
156#define CONFIG_I2C I2C_PP5024
157
158/* define this if the hardware can be powered off while charging */
159/* Sansa can't be powered off while charging */
160/* #define HAVE_POWEROFF_WHILE_CHARGING */
161
162/* The start address index for ROM builds */
163#define ROM_START 0x00000000
164
165/* Define this to the CPU frequency */
166#define CPU_FREQ 75000000
167
168/* Type of LCD TODO: hopefully the same as the x5 but check this*/
169#define CONFIG_LCD LCD_C200
170
171/* Offset ( in the firmware file's header ) to the file CRC and data. These are
172 only used when loading the old format rockbox.e200 file */
173#define FIRMWARE_OFFSET_FILE_CRC 0x0
174#define FIRMWARE_OFFSET_FILE_DATA 0x8
175
176#ifndef BOOTLOADER
177#define HAVE_MULTIDRIVE
178#define NUM_DRIVES 2
179#define HAVE_HOTSWAP
180#endif
181
182/* USB On-the-go */
183#define CONFIG_USBOTG USBOTG_ARC
184
185/* enable these for the experimental usb stack */
186#define HAVE_USBSTACK
187#define USE_ROCKBOX_USB
188#define USB_VENDOR_ID 0x0781
189#define USB_PRODUCT_ID 0x7451
190#define HAVE_USB_HID_MOUSE
191
192/* Define this if you have adjustable CPU frequency */
193#define HAVE_ADJUSTABLE_CPU_FREQ
194
195#define MI4_FORMAT
196#define BOOTFILE_EXT "mi4"
197#define BOOTFILE "rockbox." BOOTFILE_EXT
198#define BOOTDIR "/.rockbox"
199
200#define ICODE_ATTR_TREMOR_NOT_MDCT
201
202#define INCLUDE_TIMEOUT_API
203
204/* Default recording levels */
205#define DEFAULT_REC_MIC_GAIN 23
206#define DEFAULT_REC_LEFT_GAIN 23
207#define DEFAULT_REC_RIGHT_GAIN 23
diff --git a/firmware/export/config/sansac200v2.h b/firmware/export/config/sansac200v2.h
new file mode 100644
index 0000000000..65aebf245b
--- /dev/null
+++ b/firmware/export/config/sansac200v2.h
@@ -0,0 +1,199 @@
1/*
2 * This config file is for the Sandisk Sansa c200v2
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 44
8#define MODEL_NAME "Sandisk Sansa c200v2 series"
9#define FIRMWARE_OFFSET_FILE_DATA 8
10#define FIRMWARE_OFFSET_FILE_CRC 0
11
12#define HW_SAMPR_CAPS SAMPR_CAP_ALL
13
14/* define this if you have recording possibility */
15//#define HAVE_RECORDING
16
17#define REC_SAMPR_CAPS SAMPR_CAP_ALL
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
22
23/* define this if you have a bitmap LCD display */
24#define HAVE_LCD_BITMAP
25
26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR
28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
32/* define this to enable bitmap scaling */
33#define HAVE_BMP_SCALING
34
35/* define this to enable JPEG decoding */
36#define HAVE_JPEG
37
38/* define this if you have a light associated with the buttons */
39#define HAVE_BUTTON_LIGHT
40
41/* define this if you have access to the quickscreen */
42#define HAVE_QUICKSCREEN
43
44/* define this if you have access to the pitchscreen */
45#define HAVE_PITCHSCREEN
46
47/* define this if you would like tagcache to build on this target */
48#define HAVE_TAGCACHE
49
50/* LCD dimensions */
51#define LCD_WIDTH 132
52#define LCD_HEIGHT 80
53#define LCD_DEPTH 16 /* 65536 colours */
54#define LCD_PIXELFORMAT RGB565 /* rgb565 */
55
56/* define this if you have LCD enable function */
57#define HAVE_LCD_ENABLE
58
59/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
60 should be defined as well. */
61/* TODO: #define HAVE_LCD_SLEEP */
62/* TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */
63
64/* define this if you can flip your LCD */
65#define HAVE_LCD_FLIP
66
67/* define this if you can invert the colours on your LCD */
68/* TODO: #define HAVE_LCD_INVERT */
69
70/* Define this if your LCD can set contrast */
71#define HAVE_LCD_CONTRAST
72
73#define MIN_CONTRAST_SETTING 0
74#define MAX_CONTRAST_SETTING 255
75#define DEFAULT_CONTRAST_SETTING 85
76
77#if 0 /* not enough room for a 16 bits framebuffer */
78#define IRAM_LCDFRAMEBUFFER IDATA_ATTR /* put the lcd frame buffer in IRAM */
79#endif
80
81#define CONFIG_KEYPAD SANSA_C200_PAD
82
83/* define this if the target has volume keys which can be used in the lists */
84#define HAVE_VOLUME_IN_LIST
85
86/* Define this if you do software codec */
87#define CONFIG_CODEC SWCODEC
88
89/* There is no hardware tone control */
90#define HAVE_SW_TONE_CONTROLS
91
92/* The AS3525 has a built-in AS3514 (or a newer version) */
93#define HAVE_AS3514
94
95/* define this if you have a real-time clock */
96#ifndef BOOTLOADER
97#define CONFIG_RTC RTC_AS3514
98#endif
99
100/* Define this if you have a software controlled poweroff */
101#define HAVE_SW_POWEROFF
102
103/* Some Sansa E200s seem to be FAT16 formatted */
104#define HAVE_FAT16SUPPORT
105
106/* The number of bytes reserved for loadable codecs */
107#define CODEC_SIZE 0x48000
108
109/* The number of bytes reserved for loadable plugins */
110#define PLUGIN_BUFFER_SIZE 0x80000
111
112#define AB_REPEAT_ENABLE 1
113
114/* FM Tuner - suspected to be the SI4702 */
115#define CONFIG_TUNER SI4700
116/* #define HAVE_TUNER_PWR_CTRL */
117
118/* Define this for LCD backlight available */
119#define HAVE_BACKLIGHT
120#define HAVE_BACKLIGHT_BRIGHTNESS
121
122/* define this if you have a flash memory storage */
123#define HAVE_FLASH_STORAGE
124
125/* define this if the flash memory uses the SecureDigital Memory Card protocol */
126#define CONFIG_STORAGE STORAGE_SD
127
128#define BATTERY_CAPACITY_DEFAULT 530 /* default battery capacity */
129#define BATTERY_CAPACITY_MIN 530 /* min. capacity selectable */
130#define BATTERY_CAPACITY_MAX 530 /* max. capacity selectable */
131#define BATTERY_CAPACITY_INC 0 /* capacity increment */
132#define BATTERY_TYPES_COUNT 1 /* only one type */
133
134/* Hardware controlled charging? FIXME */
135#define CONFIG_CHARGING CHARGING_SIMPLE
136
137/* define this if the unit can be powered or charged via USB */
138#define HAVE_USB_POWER
139
140/* Define this if you have a PortalPlayer PP5024 */
141#define CONFIG_CPU AS3525
142
143/* Define how much SD sectors are reserved for OF */
144#define AMS_OF_SIZE 0x5000
145
146/* Define this if you want to use the PP5024 i2c interface */
147#define CONFIG_I2C I2C_AS3525
148
149/* define this if the hardware can be powered off while charging */
150/* Sansa can't be powered off while charging */
151/* #define HAVE_POWEROFF_WHILE_CHARGING */
152
153/* The start address index for ROM builds */
154#define ROM_START 0x00000000
155
156/* Define this to the CPU frequency */
157#define CPU_FREQ 250000000
158
159/* Type of LCD : Samsung S6B33B2 */
160#define CONFIG_LCD LCD_C200
161
162#ifndef BOOTLOADER
163#define HAVE_MULTIDRIVE
164#define NUM_DRIVES 2
165#define HAVE_HOTSWAP
166
167#define USB_HANDLED_BY_OF
168
169#define CONFIG_USBOTG USBOTG_AS3525
170
171/* enable these for the experimental usb stack */
172#define HAVE_USBSTACK
173#define USB_VENDOR_ID 0x0781
174#define USB_PRODUCT_ID 0x7452
175
176#endif /* BOOTLOADER */
177
178/* Define this if you have adjustable CPU frequency */
179#define HAVE_ADJUSTABLE_CPU_FREQ
180
181#define BOOTFILE_EXT "sansa"
182#define BOOTFILE "rockbox." BOOTFILE_EXT
183#define BOOTDIR "/.rockbox"
184
185#define ICODE_ATTR_TREMOR_NOT_MDCT
186
187#define INCLUDE_TIMEOUT_API
188
189/** Port-specific settings **/
190
191/* Main LCD backlight brightness range and defaults */
192#define MIN_BRIGHTNESS_SETTING 1
193#define MAX_BRIGHTNESS_SETTING 12
194#define DEFAULT_BRIGHTNESS_SETTING 6
195
196/* Default recording levels */
197#define DEFAULT_REC_MIC_GAIN 23
198#define DEFAULT_REC_LEFT_GAIN 23
199#define DEFAULT_REC_RIGHT_GAIN 23
diff --git a/firmware/export/config/sansaclip.h b/firmware/export/config/sansaclip.h
new file mode 100644
index 0000000000..4fa5f94598
--- /dev/null
+++ b/firmware/export/config/sansaclip.h
@@ -0,0 +1,199 @@
1/*
2 * This config file is for the Sandisk Sansa Clip
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 40
8#define MODEL_NAME "Sandisk Sansa Clip"
9#define FIRMWARE_OFFSET_FILE_DATA 8
10#define FIRMWARE_OFFSET_FILE_CRC 0
11
12#define HW_SAMPR_CAPS SAMPR_CAP_ALL
13
14/* define this if you have recording possibility */
15//#define HAVE_RECORDING
16
17#define REC_SAMPR_CAPS SAMPR_CAP_ALL
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
22
23/* define this if you have a bitmap LCD display */
24#define HAVE_LCD_BITMAP
25
26/* define this if you have a light associated with the buttons */
27#define HAVE_BUTTON_LIGHT
28
29/* define this if you have access to the quickscreen */
30#define HAVE_QUICKSCREEN
31
32/* define this if you have access to the pitchscreen */
33#define HAVE_PITCHSCREEN
34
35/* define this if you would like tagcache to build on this target */
36#define HAVE_TAGCACHE
37
38/* LCD dimensions */
39#define LCD_WIDTH 128
40#define LCD_HEIGHT 64
41#define LCD_DEPTH 1
42
43#define LCD_PIXELFORMAT VERTICAL_PACKING
44#define HAVE_NEGATIVE_LCD /* bright on dark */
45#define HAVE_LCD_SPLIT /* split display */
46
47/* Display colours, for screenshots and sim (0xRRGGBB) */
48#define LCD_DARKCOLOR 0x000000
49#define LCD_BRIGHTCOLOR 0x000000
50#define LCD_BL_DARKCOLOR 0x000000
51#define LCD_BL_BRIGHTCOLOR 0x0de2e5
52
53#define LCD_DARKCOLOR_2 0x000000
54#define LCD_BRIGHTCOLOR_2 0x000000
55#define LCD_BL_DARKCOLOR_2 0x000000
56#define LCD_BL_BRIGHTCOLOR_2 0xffe60f
57
58#define LCD_SPLIT_POS 16
59#define LCD_SPLIT_LINES 2
60
61/* define this if you have LCD enable function */
62#define HAVE_LCD_ENABLE
63
64#ifndef BOOTLOADER
65/* Define this if your LCD can be put to sleep.
66 * HAVE_LCD_ENABLE should be defined as well. */
67//#define HAVE_LCD_SLEEP
68//#define HAVE_LCD_SLEEP_SETTING
69#endif
70
71/* define this if you can flip your LCD */
72#define HAVE_LCD_FLIP
73
74/* define this if you can invert the pixels */
75#define HAVE_LCD_INVERT
76
77/* Define this if your LCD can set contrast */
78#define HAVE_LCD_CONTRAST
79
80#define MIN_CONTRAST_SETTING 0
81#define MAX_CONTRAST_SETTING 50
82#define DEFAULT_CONTRAST_SETTING 30
83
84#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
85
86#define CONFIG_KEYPAD SANSA_CLIP_PAD
87
88/* define this if the target has volume keys which can be used in the lists */
89#define HAVE_VOLUME_IN_LIST
90
91/* Define this if you do software codec */
92#define CONFIG_CODEC SWCODEC
93/* There is no hardware tone control */
94#define HAVE_SW_TONE_CONTROLS
95
96/* We're working on the assumption that the AS3525 has something
97 similar to the AS3514 for audio codec etc */
98#define HAVE_AS3514
99
100/* define this if you have a real-time clock */
101#ifndef BOOTLOADER
102#define CONFIG_RTC RTC_AS3514
103#endif
104
105/* Define this if you have a software controlled poweroff */
106#define HAVE_SW_POWEROFF
107
108#define HAVE_FAT16SUPPORT
109
110/* The number of bytes reserved for loadable codecs */
111#define CODEC_SIZE 0x48000 /* in IRAM */
112
113/* The number of bytes reserved for loadable plugins */
114#define PLUGIN_BUFFER_SIZE 0x60000
115
116#define AB_REPEAT_ENABLE 1
117
118/* FM Tuner */
119#define CONFIG_TUNER SI4700 /* in fact SI4702 but let's hope it's compatible */
120//#define HAVE_TUNER_PWR_CTRL
121
122/* Define this for LCD backlight available */
123#define HAVE_BACKLIGHT
124
125/* define this if you have a flash memory storage */
126#define HAVE_FLASH_STORAGE
127
128/* define this if the flash memory uses the SecureDigital Memory Card protocol */
129#define CONFIG_STORAGE STORAGE_SD
130
131#define BATTERY_CAPACITY_DEFAULT 350 /* default battery capacity */
132#define BATTERY_CAPACITY_MIN 350 /* min. capacity selectable */
133#define BATTERY_CAPACITY_MAX 350 /* max. capacity selectable */
134#define BATTERY_CAPACITY_INC 0 /* capacity increment */
135#define BATTERY_TYPES_COUNT 1 /* only one type */
136
137/* Charging implemented in a target-specific algorithm */
138#define CONFIG_CHARGING CHARGING_TARGET
139
140/* define this if the unit can be powered or charged via USB */
141#define HAVE_USB_POWER
142
143/* Define this if you have a AMS AS3525 SoC */
144#define CONFIG_CPU AS3525
145
146/* Define how much SD sectors are reserved for OF */
147#define AMS_OF_SIZE 0x5000
148
149/* Define this if you want to use the AS3525 i2c interface */
150#define CONFIG_I2C I2C_AS3525
151
152/* define this if the hardware can be powered off while charging */
153/* Sansa can't be powered off while charging */
154/* #define HAVE_POWEROFF_WHILE_CHARGING */
155
156/* The start address index for ROM builds */
157#define ROM_START 0x00000000
158
159/* Define this to the CPU frequency */
160#define CPU_FREQ 250000000
161
162/* Type of LCD */
163#define CONFIG_LCD LCD_SSD1303
164
165#ifndef BOOTLOADER
166
167#define USB_HANDLED_BY_OF
168
169#define CONFIG_USBOTG USBOTG_AS3525
170
171/* enable these for the experimental usb stack */
172#define HAVE_USBSTACK
173#define USB_VENDOR_ID 0x0781
174#define USB_PRODUCT_ID 0x7433
175
176#endif /* BOOTLOADER */
177
178/* Define this if you have adjustable CPU frequency */
179#define HAVE_ADJUSTABLE_CPU_FREQ
180
181#define BOOTFILE_EXT "sansa"
182#define BOOTFILE "rockbox." BOOTFILE_EXT
183#define BOOTDIR "/.rockbox"
184
185#define ICODE_ATTR_TREMOR_NOT_MDCT
186
187#define INCLUDE_TIMEOUT_API
188
189/** Port-specific settings **/
190
191/* Main LCD backlight brightness range and defaults */
192#define MIN_BRIGHTNESS_SETTING 1
193#define MAX_BRIGHTNESS_SETTING 12
194#define DEFAULT_BRIGHTNESS_SETTING 6
195
196/* Default recording levels */
197#define DEFAULT_REC_MIC_GAIN 23
198#define DEFAULT_REC_LEFT_GAIN 23
199#define DEFAULT_REC_RIGHT_GAIN 23
diff --git a/firmware/export/config/sansae200.h b/firmware/export/config/sansae200.h
new file mode 100644
index 0000000000..687878ce06
--- /dev/null
+++ b/firmware/export/config/sansae200.h
@@ -0,0 +1,216 @@
1/*
2 * This config file is for the Sandisk Sansa e200
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 16
8#define MODEL_NAME "Sandisk Sansa e200 series"
9
10#define HW_SAMPR_CAPS (SAMPR_CAP_44)
11
12/* define this if you have recording possibility */
13#define HAVE_RECORDING
14
15#define REC_SAMPR_CAPS (SAMPR_CAP_22)
16#define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
17#define REC_SAMPR_DEFAULT SAMPR_22
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
22
23/* define this if you have a bitmap LCD display */
24#define HAVE_LCD_BITMAP
25
26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR
28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
32/* define this to enable bitmap scaling */
33#define HAVE_BMP_SCALING
34
35/* define this to enable JPEG decoding */
36#define HAVE_JPEG
37
38/* define this if you have a light associated with the buttons */
39#define HAVE_BUTTON_LIGHT
40
41/* define this if you have access to the quickscreen */
42#define HAVE_QUICKSCREEN
43
44/* define this if you have access to the pitchscreen */
45#define HAVE_PITCHSCREEN
46
47/* define this if you would like tagcache to build on this target */
48#define HAVE_TAGCACHE
49
50/* LCD dimensions */
51#define LCD_WIDTH 176
52#define LCD_HEIGHT 220
53#define LCD_DEPTH 16 /* 65536 colours */
54#define LCD_PIXELFORMAT RGB565 /* rgb565 */
55
56#ifndef BOOTLOADER
57/* define this if you have LCD enable function */
58#define HAVE_LCD_ENABLE
59
60/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
61 should be defined as well. */
62#define HAVE_LCD_SLEEP
63#define HAVE_LCD_SLEEP_SETTING
64#endif
65
66/* define this if you can flip your LCD */
67#define HAVE_LCD_FLIP
68
69/* define this if you can invert the colours on your LCD */
70#define HAVE_LCD_INVERT
71
72/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
73
74#define CONFIG_KEYPAD SANSA_E200_PAD
75
76/* Define this to enable morse code input */
77#define HAVE_MORSE_INPUT
78
79/* Define this if you do software codec */
80#define CONFIG_CODEC SWCODEC
81/* There is no hardware tone control */
82#define HAVE_SW_TONE_CONTROLS
83/* The PP5024 has a built-in AustriaMicrosystems AS3514 */
84#define HAVE_AS3514
85
86/* define this if you have a real-time clock */
87#ifndef BOOTLOADER
88#define CONFIG_RTC RTC_AS3514
89#endif
90
91/* Define this if you have a software controlled poweroff */
92#define HAVE_SW_POWEROFF
93
94/* Some Sansa E200s seem to be FAT16 formatted */
95#define HAVE_FAT16SUPPORT
96
97/* The number of bytes reserved for loadable codecs */
98#define CODEC_SIZE 0x100000
99
100/* The number of bytes reserved for loadable plugins */
101#define PLUGIN_BUFFER_SIZE 0x80000
102
103#define AB_REPEAT_ENABLE 1
104
105/* FM Tuner */
106#define CONFIG_TUNER LV24020LP
107#define HAVE_TUNER_PWR_CTRL
108
109/* Define this for LCD backlight available */
110#define HAVE_BACKLIGHT
111#define HAVE_BACKLIGHT_BRIGHTNESS
112
113/* Which backlight fading type? */
114#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
115
116/* define this if the unit uses a scrollwheel for navigation */
117#define HAVE_SCROLLWHEEL
118/* define to activate advanced wheel acceleration code */
119#define HAVE_WHEEL_ACCELERATION
120/* define from which rotation speed [degree/sec] on the acceleration starts */
121#define WHEEL_ACCEL_START 540
122/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
123#define WHEEL_ACCELERATION 1
124
125/* define this if you have a flash memory storage */
126#define HAVE_FLASH_STORAGE
127
128/* define this if the flash memory uses the SecureDigital Memory Card protocol */
129#define CONFIG_STORAGE STORAGE_SD
130
131#define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
132#define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
133#define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
134#define BATTERY_CAPACITY_INC 0 /* capacity increment */
135#define BATTERY_TYPES_COUNT 1 /* only one type */
136
137/* Charging implemented in a target-specific algorithm */
138#define CONFIG_CHARGING CHARGING_TARGET
139#define HAVE_POWEROFF_WHILE_CHARGING
140
141/* define current usage levels */
142#define CURRENT_NORMAL 30 /* Toni's measurements in Nov 2008 */
143#define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
144#define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
145
146/* define this if the unit can be powered or charged via USB */
147#define HAVE_USB_POWER
148
149/* Define this if you have a PortalPlayer PP5024 */
150#define CONFIG_CPU PP5024
151
152/* Define this if you want to use the PP5024 i2c interface */
153#define CONFIG_I2C I2C_PP5024
154
155/* define this if the hardware can be powered off while charging */
156/* Sansa can't be powered off while charging */
157/* #define HAVE_POWEROFF_WHILE_CHARGING */
158
159/* The start address index for ROM builds */
160#define ROM_START 0x00000000
161
162/* Define this to the CPU frequency */
163#define CPU_FREQ 75000000
164
165/* Type of LCD TODO: hopefully the same as the x5 but check this*/
166#define CONFIG_LCD LCD_X5
167
168/* Offset ( in the firmware file's header ) to the file CRC and data. These are
169 only used when loading the old format rockbox.e200 file */
170#define FIRMWARE_OFFSET_FILE_CRC 0x0
171#define FIRMWARE_OFFSET_FILE_DATA 0x8
172
173#ifndef BOOTLOADER
174#define HAVE_MULTIDRIVE
175#define NUM_DRIVES 2
176#define HAVE_HOTSWAP
177#endif
178
179/* USB On-the-go */
180#define CONFIG_USBOTG USBOTG_ARC
181
182/* enable these for the experimental usb stack */
183#define HAVE_USBSTACK
184#define USE_ROCKBOX_USB
185#define USB_VENDOR_ID 0x0781
186#define USB_PRODUCT_ID 0x7421
187#define HAVE_USB_HID_MOUSE
188
189/* Define this if you have adjustable CPU frequency */
190#define HAVE_ADJUSTABLE_CPU_FREQ
191
192#define MI4_FORMAT
193#define BOOTFILE_EXT "mi4"
194#define BOOTFILE "rockbox." BOOTFILE_EXT
195#define BOOTDIR "/.rockbox"
196
197#define ICODE_ATTR_TREMOR_NOT_MDCT
198
199#define INCLUDE_TIMEOUT_API
200
201/** Port-specific settings **/
202
203/* Main LCD backlight brightness range and defaults */
204#define MIN_BRIGHTNESS_SETTING 1
205#define MAX_BRIGHTNESS_SETTING 12
206#define DEFAULT_BRIGHTNESS_SETTING 6
207
208/* Default recording levels */
209#define DEFAULT_REC_MIC_GAIN 23
210#define DEFAULT_REC_LEFT_GAIN 23
211#define DEFAULT_REC_RIGHT_GAIN 23
212
213#ifdef E200R_INSTALLER
214#define IRAMORIG 0x40004000
215#endif
216
diff --git a/firmware/export/config/sansae200v2.h b/firmware/export/config/sansae200v2.h
new file mode 100644
index 0000000000..110555aec5
--- /dev/null
+++ b/firmware/export/config/sansae200v2.h
@@ -0,0 +1,212 @@
1/*
2 * This config file is for the Sandisk Sansa e200v2
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 41
8#define MODEL_NAME "Sandisk Sansa e200v2 series"
9
10#define HW_SAMPR_CAPS SAMPR_CAP_ALL
11
12/* define this if you have recording possibility */
13#define HAVE_RECORDING
14
15#define REC_SAMPR_CAPS SAMPR_CAP_ALL
16
17/* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
20
21/* define this if you have a bitmap LCD display */
22#define HAVE_LCD_BITMAP
23
24/* define this if you have a colour LCD */
25#define HAVE_LCD_COLOR
26
27/* define this if you want album art for this target */
28#define HAVE_ALBUMART
29
30/* define this to enable bitmap scaling */
31#define HAVE_BMP_SCALING
32
33/* define this to enable JPEG decoding */
34#define HAVE_JPEG
35
36/* define this if you have a light associated with the buttons */
37#define HAVE_BUTTON_LIGHT
38
39/* define this if you have access to the quickscreen */
40#define HAVE_QUICKSCREEN
41
42/* define this if you have access to the pitchscreen */
43#define HAVE_PITCHSCREEN
44
45/* define this if you would like tagcache to build on this target */
46#define HAVE_TAGCACHE
47
48/* LCD dimensions */
49#define LCD_WIDTH 176
50#define LCD_HEIGHT 220
51#define LCD_DEPTH 16 /* 65536 colours */
52#define LCD_PIXELFORMAT RGB565 /* rgb565 */
53
54#ifndef BOOTLOADER
55/* define this if you have LCD enable function */
56#define HAVE_LCD_ENABLE
57
58/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
59 should be defined as well.
60#define HAVE_LCD_SLEEP
61#define HAVE_LCD_SLEEP_SETTING
62 */
63#endif
64
65/* define this if you can flip your LCD */
66#define HAVE_LCD_FLIP
67
68/* define this if you can invert the colours on your LCD */
69#define HAVE_LCD_INVERT
70
71/* put the lcd frame buffer in IRAM */
72#define IRAM_LCDFRAMEBUFFER IBSS_ATTR
73
74#define CONFIG_KEYPAD SANSA_E200_PAD
75
76/* Define this to enable morse code input */
77#define HAVE_MORSE_INPUT
78
79/* Define this if you do software codec */
80#define CONFIG_CODEC SWCODEC
81
82/* There is no hardware tone control */
83#define HAVE_SW_TONE_CONTROLS
84
85/* We're working on the assumption that the AS3525 has something
86 similar to the AS3514 for audio codec etc */
87#define HAVE_AS3514
88
89/* define this if you have a real-time clock */
90#ifndef BOOTLOADER
91#define CONFIG_RTC RTC_AS3514
92#endif
93
94/* Define this if you have a software controlled poweroff */
95#define HAVE_SW_POWEROFF
96
97/* Some Sansa E200s seem to be FAT16 formatted */
98#define HAVE_FAT16SUPPORT
99
100/* The number of bytes reserved for loadable codecs */
101#define CODEC_SIZE 0x100000
102
103/* The number of bytes reserved for loadable plugins */
104#define PLUGIN_BUFFER_SIZE 0x80000
105
106#define AB_REPEAT_ENABLE 1
107
108/* FM Tuner - suspected to be the SI4702 */
109#define CONFIG_TUNER SI4700
110/* #define HAVE_TUNER_PWR_CTRL */
111
112/* Define this for LCD backlight available */
113#define HAVE_BACKLIGHT
114#define HAVE_BACKLIGHT_BRIGHTNESS
115
116/* Main LCD backlight brightness range and defaults */
117#define MIN_BRIGHTNESS_SETTING 1
118#define MAX_BRIGHTNESS_SETTING 12
119#define DEFAULT_BRIGHTNESS_SETTING 6
120
121/* Which backlight fading type? */
122#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
123
124/* define this if the unit uses a scrollwheel for navigation */
125#define HAVE_SCROLLWHEEL
126/* define to activate advanced wheel acceleration code */
127#define HAVE_WHEEL_ACCELERATION
128/* define from which rotation speed [degree/sec] on the acceleration starts */
129#define WHEEL_ACCEL_START 540
130/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
131#define WHEEL_ACCELERATION 1
132
133/* define this if you have a flash memory storage */
134#define HAVE_FLASH_STORAGE
135
136/* define this if the flash memory uses the SecureDigital Memory Card protocol */
137#define CONFIG_STORAGE STORAGE_SD
138
139#define BATTERY_CAPACITY_DEFAULT 730 /* default battery capacity */
140#define BATTERY_CAPACITY_MIN 730 /* min. capacity selectable */
141#define BATTERY_CAPACITY_MAX 730 /* max. capacity selectable */
142#define BATTERY_CAPACITY_INC 0 /* capacity increment */
143#define BATTERY_TYPES_COUNT 1 /* only one type */
144
145/* Charging implemented in a target-specific algorithm */
146#define CONFIG_CHARGING CHARGING_TARGET
147
148/* define this if the unit can be powered or charged via USB */
149#define HAVE_USB_POWER
150
151/* Define this if you have an AMS AS3525*/
152#define CONFIG_CPU AS3525
153
154/* Define how much SD sectors are reserved for OF */
155#define AMS_OF_SIZE 0xF000
156
157/* Define this if you want to use the AS2525 i2c interface */
158#define CONFIG_I2C I2C_AS3525
159
160/* define this if the hardware can be powered off while charging */
161/* Sansa can't be powered off while charging */
162/* #define HAVE_POWEROFF_WHILE_CHARGING */
163
164/* The start address index for ROM builds */
165#define ROM_START 0x00000000
166
167/* Define this to the CPU frequency */
168#define CPU_FREQ 75000000
169
170/* Type of LCD TODO: hopefully the same as the x5 but check this*/
171#define CONFIG_LCD LCD_X5
172
173/* Offset ( in the firmware file's header ) to the file CRC and data. These are
174 only used when loading the old format rockbox.e200 file */
175#define FIRMWARE_OFFSET_FILE_CRC 0x0
176#define FIRMWARE_OFFSET_FILE_DATA 0x8
177
178#ifndef BOOTLOADER
179#define HAVE_MULTIDRIVE
180#define NUM_DRIVES 2
181#define HAVE_HOTSWAP
182#endif
183
184#ifndef BOOTLOADER
185
186#define USB_HANDLED_BY_OF
187
188/* USB On-the-go */
189#define CONFIG_USBOTG USBOTG_AS3525
190
191/* enable these for the experimental usb stack */
192#define HAVE_USBSTACK
193#define USB_VENDOR_ID 0x0781
194#define USB_PRODUCT_ID 0x7423
195
196#endif /* !BOOTLOADER */
197
198/* Define this if you have adjustable CPU frequency */
199#define HAVE_ADJUSTABLE_CPU_FREQ
200
201#define BOOTFILE_EXT "sansa"
202#define BOOTFILE "rockbox." BOOTFILE_EXT
203#define BOOTDIR "/.rockbox"
204
205#define ICODE_ATTR_TREMOR_NOT_MDCT
206
207#define INCLUDE_TIMEOUT_API
208
209/* Default recording levels */
210#define DEFAULT_REC_MIC_GAIN 23
211#define DEFAULT_REC_LEFT_GAIN 23
212#define DEFAULT_REC_RIGHT_GAIN 23
diff --git a/firmware/export/config/sansafuze.h b/firmware/export/config/sansafuze.h
new file mode 100644
index 0000000000..4370aef42e
--- /dev/null
+++ b/firmware/export/config/sansafuze.h
@@ -0,0 +1,206 @@
1/*
2 * This config file is for the Sandisk Sansa Fuze
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 43
8#define MODEL_NAME "Sandisk Sansa Fuze"
9
10#define HW_SAMPR_CAPS SAMPR_CAP_ALL
11
12/* define this if you have recording possibility */
13#define HAVE_RECORDING
14
15#define REC_SAMPR_CAPS SAMPR_CAP_ALL
16
17/* Default recording levels */
18#define DEFAULT_REC_MIC_GAIN 23
19#define DEFAULT_REC_LEFT_GAIN 23
20#define DEFAULT_REC_RIGHT_GAIN 23
21
22/* Define bitmask of input sources - recordable bitmask can be defined
23 explicitly if different */
24#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
25
26/* define this if you have a bitmap LCD display */
27#define HAVE_LCD_BITMAP
28/* define this if you have a colour LCD */
29#define HAVE_LCD_COLOR
30
31#ifndef BOOTLOADER/* define this if you want album art for this target */
32#define HAVE_ALBUMART
33
34/* define this to enable bitmap scaling */
35#define HAVE_BMP_SCALING
36
37/* define this to enable JPEG decoding */
38#define HAVE_JPEG
39
40/* define this if you have a light associated with the buttons */
41#define HAVE_BUTTON_LIGHT
42
43/* define this if you have access to the quickscreen */
44#define HAVE_QUICKSCREEN
45
46/* define this if you have access to the pitchscreen */
47#define HAVE_PITCHSCREEN
48
49/* define this if you would like tagcache to build on this target */
50#define HAVE_TAGCACHE
51
52/* define this if you have LCD enable function */
53#define HAVE_LCD_ENABLE
54
55/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
56 should be defined as well.
57#define HAVE_LCD_SLEEP
58#define HAVE_LCD_SLEEP_SETTING
59*/
60
61/* define this if you can flip your LCD */
62//#define HAVE_LCD_FLIP
63
64/* define this if you can invert the colours on your LCD */
65//#define HAVE_LCD_INVERT
66
67
68/* define this if you have a real-time clock */
69#define CONFIG_RTC RTC_AS3514
70
71/* There is no hardware tone control */
72#define HAVE_SW_TONE_CONTROLS
73
74#endif /* !BOOTLOADER */
75
76/* put the lcd frame buffer in IRAM */
77#define IRAM_LCDFRAMEBUFFER IBSS_ATTR
78
79#define CONFIG_KEYPAD SANSA_FUZE_PAD
80
81/* Define this to enable morse code input */
82#define HAVE_MORSE_INPUT
83
84/* Define this if you do software codec */
85#define CONFIG_CODEC SWCODEC
86
87
88/* LCD dimensions */
89#define LCD_WIDTH 220
90#define LCD_HEIGHT 176
91#define LCD_DEPTH 16 /* 65536 colours */
92#define LCD_PIXELFORMAT RGB565 /* rgb565 */
93
94
95/* We're working on the assumption that the AS3525 has something
96 similar to the AS3514 for audio codec etc */
97#define HAVE_AS3514
98
99/* Define this if you have a software controlled poweroff */
100#define HAVE_SW_POWEROFF
101
102/* Some Sansa Fuzes seem to be FAT16 formatted */
103#define HAVE_FAT16SUPPORT
104
105/* The number of bytes reserved for loadable codecs */
106#define CODEC_SIZE 0x100000
107
108/* The number of bytes reserved for loadable plugins */
109#define PLUGIN_BUFFER_SIZE 0x80000
110
111#define AB_REPEAT_ENABLE 1
112
113/* FM Tuner - suspected to be the SI4702 */
114#define CONFIG_TUNER SI4700
115/* #define HAVE_TUNER_PWR_CTRL */
116
117/* Define this for LCD backlight available */
118#define HAVE_BACKLIGHT
119#define HAVE_BACKLIGHT_BRIGHTNESS
120
121/* Main LCD backlight brightness range and defaults */
122#define MIN_BRIGHTNESS_SETTING 1
123#define MAX_BRIGHTNESS_SETTING 12
124#define DEFAULT_BRIGHTNESS_SETTING 6
125
126/* Which backlight fading type? */
127#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
128
129/* define this if the unit uses a scrollwheel for navigation */
130#define HAVE_SCROLLWHEEL
131/* define to activate advanced wheel acceleration code */
132#define HAVE_WHEEL_ACCELERATION
133/* define from which rotation speed [degree/sec] on the acceleration starts */
134#define WHEEL_ACCEL_START 540
135/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
136#define WHEEL_ACCELERATION 1
137
138/* define this if you have a flash memory storage */
139#define HAVE_FLASH_STORAGE
140
141/* define this if the flash memory uses the SecureDigital Memory Card protocol */
142#define CONFIG_STORAGE STORAGE_SD
143
144#define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
145#define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
146#define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
147#define BATTERY_CAPACITY_INC 0 /* capacity increment */
148#define BATTERY_TYPES_COUNT 1 /* only one type */
149
150/* Charging implemented in a target-specific algorithm */
151#define CONFIG_CHARGING CHARGING_TARGET
152
153/* define this if the unit can be powered or charged via USB */
154#define HAVE_USB_POWER
155
156/* Define this if you have an AMS AS3525*/
157#define CONFIG_CPU AS3525
158
159/* Define how much SD sectors are reserved for OF */
160#define AMS_OF_SIZE 0xF000
161
162/* Define this if you want to use the AS2525 i2c interface */
163#define CONFIG_I2C I2C_AS3525
164
165/* Define this to the CPU frequency */
166#define CPU_FREQ 250000000
167
168/* Type of LCD */
169#define CONFIG_LCD LCD_FUZE
170
171/* Offset ( in the firmware file's header ) to the file CRC and data. These are
172 only used when loading the old format rockbox.e200 file */
173#define FIRMWARE_OFFSET_FILE_CRC 0x0
174#define FIRMWARE_OFFSET_FILE_DATA 0x8
175
176#ifndef BOOTLOADER
177#define HAVE_MULTIDRIVE
178#define NUM_DRIVES 2
179#define HAVE_HOTSWAP
180#endif
181
182#ifndef BOOTLOADER
183
184#define USB_HANDLED_BY_OF
185
186/* USB On-the-go */
187#define CONFIG_USBOTG USBOTG_AS3525
188
189/* enable these for the experimental usb stack */
190#define HAVE_USBSTACK
191#define USB_VENDOR_ID 0x0781
192#define USB_PRODUCT_ID 0x7423
193
194#endif /* !BOOTLOADER */
195
196/* Define this if you have adjustable CPU frequency */
197#define HAVE_ADJUSTABLE_CPU_FREQ
198
199#define BOOTFILE_EXT "sansa"
200#define BOOTFILE "rockbox." BOOTFILE_EXT
201#define BOOTDIR "/.rockbox"
202
203#define ICODE_ATTR_TREMOR_NOT_MDCT
204
205#define INCLUDE_TIMEOUT_API
206
diff --git a/firmware/export/config/sansam200.h b/firmware/export/config/sansam200.h
new file mode 100644
index 0000000000..0f071e18ab
--- /dev/null
+++ b/firmware/export/config/sansam200.h
@@ -0,0 +1,136 @@
1/*
2 * This config file is for the Sansa M200 series
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 29
8
9#define MODEL_NAME "Sandisk Sansa m200 series"
10
11/* Enable FAT16 support */
12#define HAVE_FAT16SUPPORT
13
14/* define this if you have recording possibility */
15//#define HAVE_RECORDING
16
17/* Define bitmask of input sources - recordable bitmask can be defined
18 explicitly if different */
19//#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF)
20
21/* define this if you have a bitmap LCD display */
22#define HAVE_LCD_BITMAP
23
24/* define this if you can flip your LCD */
25#define HAVE_LCD_FLIP
26
27/* define this if you can invert the colours on your LCD */
28#define HAVE_LCD_INVERT
29
30/* define this if you have access to the quickscreen */
31#define HAVE_QUICKSCREEN
32/* define this if you have access to the pitchscreen */
33#define HAVE_PITCHSCREEN
34
35/* define this if you would like tagcache to build on this target */
36#define HAVE_TAGCACHE
37
38/* define this if you have a flash memory storage */
39#define HAVE_FLASH_STORAGE
40
41#define CONFIG_STORAGE STORAGE_NAND
42
43#define CONFIG_NAND NAND_TCC
44
45/* LCD dimensions */
46#define LCD_WIDTH 128
47#define LCD_HEIGHT 64
48#define LCD_DEPTH 1
49
50#define LCD_PIXELFORMAT VERTICAL_PACKING
51
52/* Display colours, for screenshots and sim (0xRRGGBB) */
53#define LCD_BARKCOLOR 0x000000
54#define LCD_BRIGHTCOLOR 0x5e6854
55#define LCD_BL_DARKCOLOR 0x000000
56#define LCD_BL_BRIGHTCOLOR 0x3ca0e6
57
58/* define this to indicate your device's keypad */
59#define CONFIG_KEYPAD SANSA_M200_PAD
60
61/* Define this to enable morse code input */
62#define HAVE_MORSE_INPUT
63
64/* define this if you have a real-time clock */
65#define CONFIG_RTC RTC_TCC77X
66
67/* define this if you have RTC RAM available for settings */
68//#define HAVE_RTC_RAM
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 0x38000
75
76/* The number of bytes reserved for loadable plugins */
77#define PLUGIN_BUFFER_SIZE 0x10000
78
79#define AB_REPEAT_ENABLE 1
80
81/* Define this if you do software codec */
82#define CONFIG_CODEC SWCODEC
83
84/* Define this if you have the TLV320 audio codec */
85#define HAVE_TLV320
86
87/* TLV320 has no tone controls, so we use the software ones */
88#define HAVE_SW_TONE_CONTROLS
89
90/* Define this for LCD backlight available */
91#define HAVE_BACKLIGHT
92
93#define CONFIG_I2C I2C_TCC77X
94
95#define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
96#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
97#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
98#define BATTERY_CAPACITY_INC 50 /* capacity increment */
99#define BATTERY_TYPES_COUNT 1 /* only one type */
100
101/* define this if the unit should not shut down on low battery. */
102#define NO_LOW_BATTERY_SHUTDOWN
103
104/* Define this if you have a TCC770 */
105#define CONFIG_CPU TCC770
106
107/* Define this if you have ATA power-off control */
108#define HAVE_ATA_POWER_OFF
109
110/* Define this to the CPU frequency */
111#define CPU_FREQ 120000000
112
113/* Offset ( in the firmware file's header ) to the file CRC */
114#define FIRMWARE_OFFSET_FILE_CRC 0
115
116/* Offset ( in the firmware file's header ) to the real data */
117#define FIRMWARE_OFFSET_FILE_DATA 8
118
119#define CONFIG_LCD LCD_SSD1815
120
121#define BOOTFILE_EXT "m200"
122#define BOOTFILE "rockbox." BOOTFILE_EXT
123#define BOOTDIR "/"
124
125#define IBSS_ATTR_VOICE_STACK
126#define ICODE_ATTR_TREMOR_NOT_MDCT
127#define ICODE_ATTR_TREMOR_MDCT
128#define ICODE_ATTR_FLAC
129#define IBSS_ATTR_FLAC_DECODED0
130#define ICONST_ATTR_MPA_HUFFMAN
131#define IBSS_ATTR_MPC_SAMPLE_BUF
132#define ICODE_ATTR_ALAC
133#define IBSS_ATTR_SHORTEN_DECODED0
134
135#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
136
diff --git a/firmware/export/config/sansam200v4.h b/firmware/export/config/sansam200v4.h
new file mode 100644
index 0000000000..af9f1aedc6
--- /dev/null
+++ b/firmware/export/config/sansam200v4.h
@@ -0,0 +1,165 @@
1/*
2 * This config file is for the Sansa M200 V4 series
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 42
8
9#define MODEL_NAME "Sandisk Sansa m200 v4 series"
10
11/* Enable FAT16 support */
12#define HAVE_FAT16SUPPORT
13
14#define HW_SAMPR_CAPS SAMPR_CAP_ALL
15
16/* define this if you have recording possibility */
17//#define HAVE_RECORDING
18
19#define REC_SAMPR_CAPS SAMPR_CAP_ALL
20
21/* Define bitmask of input sources - recordable bitmask can be defined
22 explicitly if different */
23#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
24
25/* define this if you have a bitmap LCD display */
26#define HAVE_LCD_BITMAP
27
28/* define this if you can flip your LCD */
29#define HAVE_LCD_FLIP
30
31/* define this if you can invert the colours on your LCD */
32#define HAVE_LCD_INVERT
33
34/* define this if you have access to the quickscreen */
35//#define HAVE_QUICKSCREEN
36/* define this if you have access to the pitchscreen */
37#define HAVE_PITCHSCREEN
38
39/* define this if you would like tagcache to build on this target */
40//#define HAVE_TAGCACHE
41
42/* define this if you have a flash memory storage */
43#define HAVE_FLASH_STORAGE
44
45/* define this if the flash memory uses the SecureDigital Memory Card protocol */
46#define CONFIG_STORAGE STORAGE_SD
47
48/* LCD dimensions */
49#define LCD_WIDTH 128
50#define LCD_HEIGHT 64
51#define LCD_DEPTH 1
52
53#define LCD_PIXELFORMAT VERTICAL_PACKING
54
55/* Display colours, for screenshots and sim (0xRRGGBB) */
56#define LCD_DARKCOLOR 0x000000
57#define LCD_BRIGHTCOLOR 0x5e6854
58#define LCD_BL_DARKCOLOR 0x000000
59#define LCD_BL_BRIGHTCOLOR 0x3ca0e6
60
61/* define this to indicate your device's keypad */
62#define CONFIG_KEYPAD SANSA_M200_PAD
63
64/* Define this to enable morse code input */
65#define HAVE_MORSE_INPUT
66
67/* define this if you have a real-time clock */
68#ifndef BOOTLOADER
69#define CONFIG_RTC RTC_AS3514
70#endif
71
72/* define this if you have RTC RAM available for settings */
73//#define HAVE_RTC_RAM
74
75/* Define this if you have a software controlled poweroff */
76#define HAVE_SW_POWEROFF
77
78/* The number of bytes reserved for loadable codecs */
79#define CODEC_SIZE 0x48000 /* in IRAM */
80
81/* The number of bytes reserved for loadable plugins */
82#define PLUGIN_BUFFER_SIZE 0x60000
83
84#define AB_REPEAT_ENABLE 1
85
86#define CONFIG_TUNER TEA5767
87#define CONFIG_TUNER_XTAL 32768
88
89/* Define this if you do software codec */
90#define CONFIG_CODEC SWCODEC
91
92/* Define this if you have the TLV320 audio codec */
93/*#define HAVE_TLV320*/
94
95/* TLV320 has no tone controls, so we use the software ones */
96#define HAVE_SW_TONE_CONTROLS
97
98/* We're working on the assumption that the AS3525 has something
99 similar to the AS3514 for audio codec etc */
100#define HAVE_AS3514
101
102/* Define this for LCD backlight available */
103#define HAVE_BACKLIGHT
104
105/* Define how much SD sectors are reserved for OF */
106#define AMS_OF_SIZE 0x5000
107
108#define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
109#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
110#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
111#define BATTERY_CAPACITY_INC 50 /* capacity increment */
112#define BATTERY_TYPES_COUNT 1 /* only one type */
113
114/* define this if the unit should not shut down on low battery. */
115#define NO_LOW_BATTERY_SHUTDOWN
116
117/* Define this if you have an AMS AS3525 */
118#define CONFIG_CPU AS3525
119
120/* Define this if you want to use the AS3525 i2c interface */
121#define CONFIG_I2C I2C_AS3525
122
123/* Define this to the CPU frequency */
124#define CPU_FREQ 250000000
125
126/* Define this if you have adjustable CPU frequency */
127#define HAVE_ADJUSTABLE_CPU_FREQ
128
129/* Offset ( in the firmware file's header ) to the file CRC */
130#define FIRMWARE_OFFSET_FILE_CRC 0
131
132/* Offset ( in the firmware file's header ) to the real data */
133#define FIRMWARE_OFFSET_FILE_DATA 8
134
135#ifndef BOOTLOADER
136
137#define USB_HANDLED_BY_OF
138
139#define CONFIG_USBOTG USBOTG_AS3525
140
141/* enable these for the experimental usb stack */
142#define HAVE_USBSTACK
143#define USB_VENDOR_ID 0x0781
144#define USB_PRODUCT_ID 0x7431
145
146#endif /* BOOTLOADER */
147
148#define CONFIG_LCD LCD_SSD1815
149
150#define BOOTFILE_EXT "sansa"
151#define BOOTFILE "rockbox." BOOTFILE_EXT
152#define BOOTDIR "/.rockbox"
153
154#define IBSS_ATTR_VOICE_STACK
155#define ICODE_ATTR_TREMOR_NOT_MDCT
156#define ICODE_ATTR_TREMOR_MDCT
157#define ICODE_ATTR_FLAC
158#define IBSS_ATTR_FLAC_DECODED0
159#define ICONST_ATTR_MPA_HUFFMAN
160#define IBSS_ATTR_MPC_SAMPLE_BUF
161#define ICODE_ATTR_ALAC
162#define IBSS_ATTR_SHORTEN_DECODED0
163
164#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
165
diff --git a/firmware/export/config/sansaview.h b/firmware/export/config/sansaview.h
new file mode 100644
index 0000000000..4111b8380a
--- /dev/null
+++ b/firmware/export/config/sansaview.h
@@ -0,0 +1,203 @@
1/*
2 * This config file is for the Sandisk Sansa View
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 63
8#define MODEL_NAME "Sandisk View"
9
10#define HW_SAMPR_CAPS (SAMPR_CAP_44)
11
12/* define this if you have recording possibility */
13/* #define HAVE_RECORDING */
14
15#define REC_SAMPR_CAPS (SAMPR_CAP_22)
16#define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
17#define REC_SAMPR_DEFAULT SAMPR_22
18
19/* Define bitmask of input sources - recordable bitmask can be defined
20 explicitly if different */
21#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
22
23/* define this if you have a bitmap LCD display */
24#define HAVE_LCD_BITMAP
25
26/* define this if you have a colour LCD */
27#define HAVE_LCD_COLOR
28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
32/* define this to enable bitmap scaling */
33#define HAVE_BMP_SCALING
34
35/* define this to enable JPEG decoding */
36#define HAVE_JPEG
37
38/* define this if you have a light associated with the buttons */
39#define HAVE_BUTTON_LIGHT
40
41/* define this if you have access to the quickscreen */
42#define HAVE_QUICKSCREEN
43
44/* define this if you have access to the pitchscreen */
45#define HAVE_PITCHSCREEN
46
47/* define this if you would like tagcache to build on this target */
48#define HAVE_TAGCACHE
49
50/* LCD dimensions */
51#define LCD_WIDTH 240
52#define LCD_HEIGHT 320
53#define LCD_DEPTH 16 /* 65536 colours */
54#define LCD_PIXELFORMAT RGB565 /* rgb565 */
55
56#ifndef BOOTLOADER
57/* define this if you have LCD enable function */
58/* #define HAVE_LCD_ENABLE */
59
60/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
61 should be defined as well. */
62/* #define HAVE_LCD_SLEEP */
63/* #define HAVE_LCD_SLEEP_SETTING */
64#endif
65
66/* define this if you can flip your LCD */
67#define HAVE_LCD_FLIP
68
69/* define this if you can invert the colours on your LCD */
70#define HAVE_LCD_INVERT
71
72/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
73
74/* The only difference is that the power/hold is on the left instead of right on Fuze */
75#define CONFIG_KEYPAD SANSA_FUZE_PAD
76
77/* Define this to enable morse code input */
78#define HAVE_MORSE_INPUT
79
80/* Define this if you do software codec */
81#define CONFIG_CODEC SWCODEC
82/* There is no hardware tone control */
83#define HAVE_SW_TONE_CONTROLS
84
85/* define this if you have a real-time clock */
86#ifndef BOOTLOADER
87/* #define CONFIG_RTC RTC_ */
88#endif
89
90/* Define this if you have a software controlled poweroff */
91#define HAVE_SW_POWEROFF
92
93/* Required for MicroSD cards */
94#define HAVE_FAT16SUPPORT
95
96/* The number of bytes reserved for loadable codecs */
97#define CODEC_SIZE 0x100000
98
99/* The number of bytes reserved for loadable plugins */
100#define PLUGIN_BUFFER_SIZE 0x80000
101
102#define AB_REPEAT_ENABLE 1
103
104/* Define this for LCD backlight available */
105#define HAVE_BACKLIGHT
106/* #define HAVE_BACKLIGHT_BRIGHTNESS */
107
108/* define this if the unit uses a scrollwheel for navigation */
109#define HAVE_SCROLLWHEEL
110/* define to activate advanced wheel acceleration code */
111#define HAVE_WHEEL_ACCELERATION
112/* define from which rotation speed [degree/sec] on the acceleration starts */
113#define WHEEL_ACCEL_START 540
114/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
115#define WHEEL_ACCELERATION 1
116
117/* define this if you have a flash memory storage */
118#define HAVE_FLASH_STORAGE
119
120/* define this if the flash memory uses the SecureDigital Memory Card protocol */
121#define CONFIG_STORAGE STORAGE_SD
122
123#define BATTERY_CAPACITY_DEFAULT 750 /* default battery capacity */
124#define BATTERY_CAPACITY_MIN 750 /* min. capacity selectable */
125#define BATTERY_CAPACITY_MAX 750 /* max. capacity selectable */
126#define BATTERY_CAPACITY_INC 0 /* capacity increment */
127#define BATTERY_TYPES_COUNT 1 /* only one type */
128
129/* Charging implemented in a target-specific algorithm */
130#define CONFIG_CHARGING CHARGING_SIMPLE
131#define HAVE_POWEROFF_WHILE_CHARGING
132
133/* define current usage levels */
134#define CURRENT_NORMAL 30 /* Toni's measurements in Nov 2008 */
135#define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
136#define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
137
138/* define this if the unit can be powered or charged via USB */
139#define HAVE_USB_POWER
140
141/* Define this if you have a PortalPlayer PP5024 */
142#define CONFIG_CPU PP6100
143
144/* Define this if you want to use the PP5024 i2c interface */
145#define CONFIG_I2C I2C_PP5024
146
147/* define this if the hardware can be powered off while charging */
148/* Sansa can't be powered off while charging */
149/* #define HAVE_POWEROFF_WHILE_CHARGING */
150
151/* The start address index for ROM builds */
152#define ROM_START 0x00000000
153
154/* Define this to the CPU frequency */
155#define CPU_FREQ 250000000
156
157/* Type of LCD TODO: hopefully the same as the x5 but check this*/
158#define CONFIG_LCD LCD_VIEW
159
160/* Offset ( in the firmware file's header ) to the file CRC and data. These are
161 only used when loading the old format rockbox.e200 file
162 Required for bootloader/common.c to compile */
163#define FIRMWARE_OFFSET_FILE_CRC 0x0
164#define FIRMWARE_OFFSET_FILE_DATA 0x8
165
166#ifndef BOOTLOADER
167#define HAVE_MULTIDRIVE
168#define NUM_DRIVES 2
169#define HAVE_HOTSWAP
170#endif
171
172/* USB On-the-go */
173/* #define CONFIG_USBOTG USBOTG_ARC */
174
175/* enable these for the experimental usb stack */
176#define HAVE_USBSTACK
177#define USE_ROCKBOX_USB
178#define USB_VENDOR_ID 0x0781
179#define USB_PRODUCT_ID 0x74b1
180
181/* Define this if you have adjustable CPU frequency */
182/* #define HAVE_ADJUSTABLE_CPU_FREQ */
183
184#define MI4_FORMAT
185#define BOOTFILE_EXT "mi4"
186#define BOOTFILE "rockbox." BOOTFILE_EXT
187#define BOOTDIR "/.rockbox"
188
189#define ICODE_ATTR_TREMOR_NOT_MDCT
190
191#define INCLUDE_TIMEOUT_API
192
193/** Port-specific settings **/
194
195/* Main LCD backlight brightness range and defaults */
196#define MIN_BRIGHTNESS_SETTING 1
197#define MAX_BRIGHTNESS_SETTING 12
198#define DEFAULT_BRIGHTNESS_SETTING 6
199
200/* Default recording levels */
201#define DEFAULT_REC_MIC_GAIN 23
202#define DEFAULT_REC_LEFT_GAIN 23
203#define DEFAULT_REC_RIGHT_GAIN 23
diff --git a/firmware/export/config/sim.h b/firmware/export/config/sim.h
new file mode 100644
index 0000000000..ec398c8b2d
--- /dev/null
+++ b/firmware/export/config/sim.h
@@ -0,0 +1,81 @@
1/* This config file is for all simulators, and is used in addition to the
2 target specific configs */
3
4#undef CONFIG_CPU
5
6#undef HAVE_FMADC
7
8#undef NEED_ATA_POWER_BATT_MEASURE
9
10#undef CONFIG_I2C
11
12#undef HAVE_PCM_DMA_ADDRESS
13
14#undef FLASH_SIZE
15
16#undef CPU_FREQ
17
18#undef HAVE_ATA_POWER_OFF
19
20#undef CONFIG_LCD
21
22#undef CONFIG_LED
23
24#undef ROM_START
25
26#undef FIRMWARE_OFFSET_FILE_LENGTH
27#undef FIRMWARE_OFFSET_FILE_CRC
28#undef FIRMWARE_OFFSET_FILE_DATA
29
30#undef AMS_OF_SIZE
31
32#undef HAVE_MULTIDRIVE
33#undef NUM_DRIVES
34#undef HAVE_HOTSWAP
35#undef HAVE_HOTSWAP_STORAGE_AS_MAIN
36
37#undef CONFIG_STORAGE
38
39#undef CONFIG_USBOTG
40
41#undef USB_HANDLED_BY_OF
42
43#undef HAVE_USBSTACK
44#undef USE_ROCKBOX_USB
45#undef USB_VENDOR_ID
46#undef USB_PRODUCT_ID
47#undef USB_NUM_ENDPOINTS
48#undef HAVE_USB_HID_MOUSE
49
50#undef HAVE_ADJUSTABLE_CPU_FREQ
51
52#undef MI4_FORMAT
53#undef BOOTFILE_EXT
54#undef BOOTFILE
55#undef BOOTDIR
56
57#undef BOOTLOADER_ENTRYPOINT
58
59#undef FLASH_ENTRYPOINT
60
61#undef FLASH_MAGIC
62
63#undef HAVE_EEPROM
64#undef HAVE_EEPROM_SETTINGS
65
66#undef HAVE_HARDWARE_BEEP
67
68#undef HAVE_POWEROFF_WHILE_CHARGING
69
70#undef INCLUDE_TIMEOUT_API
71
72#undef HAVE_FLASHED_ROCKBOX
73
74#undef IPOD_ACCESSORY_PROTOCOL
75
76#undef HAVE_WHEEL_POSITION
77
78#undef HAVE_LCD_MODES
79
80#undef HAVE_SPEAKER
81
diff --git a/firmware/export/config/tatungtpj1022.h b/firmware/export/config/tatungtpj1022.h
new file mode 100644
index 0000000000..89e3d6dff1
--- /dev/null
+++ b/firmware/export/config/tatungtpj1022.h
@@ -0,0 +1,139 @@
1/*
2 * This config file is for the Tatung Elio TPJ-1022
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7#define MODEL_NAME "Tatung Elio TPJ-1022"
8
9/* For Rolo and boot loader */
10#define MODEL_NUMBER 15
11
12/* define this if you use an ATA controller */
13#define CONFIG_STORAGE STORAGE_ATA
14
15/* define this if you have recording possibility */
16/*#define HAVE_RECORDING*/ /* TODO: add support for this */
17
18/* define the bitmask of hardware sample rates */
19#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
20 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
21
22/* define the bitmask of recording sample rates
23#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
24 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
25
26/* define this if you have a bitmap LCD display */
27#define HAVE_LCD_BITMAP
28
29/* define this if you have a colour LCD */
30#define HAVE_LCD_COLOR
31
32/* define this if you have access to the quickscreen */
33#define HAVE_QUICKSCREEN
34
35/* define this if you have access to the pitchscreen */
36#define HAVE_PITCHSCREEN
37
38/* LCD dimensions */
39#define LCD_WIDTH 220
40#define LCD_HEIGHT 176
41#define LCD_DEPTH 16 /* 65536 colours */
42#define LCD_PIXELFORMAT RGB565
43
44/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
45
46#define CONFIG_KEYPAD ELIO_TPJ1022_PAD
47
48/* Define this if you do software codec */
49#define CONFIG_CODEC SWCODEC
50
51/* define this if you have a real-time clock */
52#ifndef BOOTLOADER
53//#define CONFIG_RTC RTC_E8564
54#endif
55
56/* Define this if you have a software controlled poweroff */
57#define HAVE_SW_POWEROFF
58
59/* The number of bytes reserved for loadable codecs */
60#define CODEC_SIZE 0x100000
61
62/* The number of bytes reserved for loadable plugins */
63#define PLUGIN_BUFFER_SIZE 0x80000
64
65/* Define this if you have the WM8731 audio codec */
66#define HAVE_WM8731
67
68#define AB_REPEAT_ENABLE 1
69
70/* define this if you have a disk storage, i.e. something
71 that needs spinups and can cause skips when shaked */
72#define HAVE_DISK_STORAGE
73
74/* Define this for LCD backlight available */
75#define HAVE_BACKLIGHT
76
77#define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity
78 TODO: check this, probably different
79 for different models too */
80#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
81#define BATTERY_CAPACITY_MAX 1600 /* max. capacity selectable */
82#define BATTERY_CAPACITY_INC 10 /* capacity increment */
83#define BATTERY_TYPES_COUNT 1 /* only one type */
84
85/* Hardware controlled charging? FIXME */
86#define CONFIG_CHARGING CHARGING_SIMPLE
87
88/* define this if the unit can be powered or charged via USB */
89/*#define HAVE_USB_POWER*/
90
91/* Define this if you have a PortalPlayer PP5020 */
92#define CONFIG_CPU PP5020
93
94/* Define this if you want to use the PP5020 i2c interface */
95#define CONFIG_I2C I2C_PP5020
96
97/* define this if the hardware can be powered off while charging */
98/* TODO: should this be set for the H10? */
99//#define HAVE_POWEROFF_WHILE_CHARGING
100
101/* The start address index for ROM builds */
102#define ROM_START 0x00000000
103
104/* Define this to the CPU frequency */
105/* TODO: this is probably wrong */
106#define CPU_FREQ 11289600
107
108/* Type of LCD */
109#define CONFIG_LCD LCD_TPJ1022
110
111#define DEFAULT_CONTRAST_SETTING 19
112
113/* Offset ( in the firmware file's header ) to the file length */
114#define FIRMWARE_OFFSET_FILE_LENGTH 0
115
116/* Offset ( in the firmware file's header ) to the file CRC */
117#define FIRMWARE_OFFSET_FILE_CRC 0
118
119/* Offset ( in the firmware file's header ) to the real data */
120#define FIRMWARE_OFFSET_FILE_DATA 8
121
122/* USB On-the-go */
123#define CONFIG_USBOTG USBOTG_ARC
124
125/* define this if the unit can be powered or charged via USB */
126#define HAVE_USB_POWER
127
128/* enable these for the experimental usb stack ROOLKU */
129#define HAVE_USBSTACK
130#define USB_VENDOR_ID 0x07B4
131#define USB_PRODUCT_ID 0x0280
132
133/* Define this if you have adjustable CPU frequency */
134#define HAVE_ADJUSTABLE_CPU_FREQ
135
136#define BOOTFILE_EXT "elio"
137#define BOOTFILE "rockbox." BOOTFILE_EXT
138#define BOOTDIR "/.rockbox"
139
diff --git a/firmware/export/config/zenvisionm.h b/firmware/export/config/zenvisionm.h
new file mode 100644
index 0000000000..d8005bb83d
--- /dev/null
+++ b/firmware/export/config/zenvisionm.h
@@ -0,0 +1,176 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2008 by Maurus Cuelenaere
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23 * This config file is for the Creative Zen Vision:M
24 */
25#define TARGET_TREE /* this target is using the target tree system */
26
27#define CONFIG_SDRAM_START 0x00900000
28
29#define CREATIVE_ZVM 1
30
31#define MODEL_NAME "Creative Zen Vision:M"
32
33/* This makes it part of the Creative Zen Vision family :) */
34#define CREATIVE_ZVx 1
35
36/* For Rolo and boot loader */
37#define MODEL_NUMBER 26
38
39/* define this if you use an ATA controller */
40#define CONFIG_STORAGE STORAGE_ATA
41
42/* define this if you have a bitmap LCD display */
43#define HAVE_LCD_BITMAP
44
45/* define this if you have a colour LCD */
46#define HAVE_LCD_COLOR
47
48/* define this if you have access to the quickscreen */
49#define HAVE_QUICKSCREEN
50
51/* define this if you have access to the pitchscreen */
52#define HAVE_PITCHSCREEN
53
54/* define this if you would like tagcache to build on this target */
55#define HAVE_TAGCACHE
56
57/* define this if the target has volume keys which can be used in the lists */
58//#define HAVE_VOLUME_IN_LIST
59
60/* LCD dimensions */
61#define CONFIG_LCD LCD_CREATIVEZVM
62
63/* choose the lcd orientation. both work */
64#define CONFIG_ORIENTATION SCREEN_PORTRAIT
65
66#define LCD_WIDTH 320
67#define LCD_HEIGHT 240
68
69#define LCD_DEPTH 16 /* 65k colours */
70#define LCD_PIXELFORMAT RGB565 /* rgb565 */
71
72/* Define this if your LCD can be enabled/disabled */
73/* Disabled until properly working
74#define HAVE_LCD_ENABLE */
75
76#define CONFIG_KEYPAD CREATIVEZVM_PAD
77#define HAVE_HEADPHONE_DETECTION
78//#define HAVE_TOUCHPAD
79
80/* Define this to enable morse code input */
81#define HAVE_MORSE_INPUT
82
83/* Define this if you do software codec */
84#define CONFIG_CODEC SWCODEC
85
86/* define this if you have a real-time clock */
87//#define CONFIG_RTC RTC_RX5X348AB
88
89/* define this if you have a disk storage, i.e. something
90 that needs spinups and can cause skips when shaked */
91#define HAVE_DISK_STORAGE
92
93/* Define this for LCD backlight available */
94//#define HAVE_BACKLIGHT
95
96//#define HAVE_BACKLIGHT_BRIGHTNESS
97
98/* Main LCD backlight brightness range and defaults */
99//#define MIN_BRIGHTNESS_SETTING 0
100//#define MAX_BRIGHTNESS_SETTING 127
101//#define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */
102//#define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */
103
104/* Define this if you have a software controlled poweroff */
105//#define HAVE_SW_POWEROFF
106//TODO: enable this back
107
108/* The number of bytes reserved for loadable codecs */
109#define CODEC_SIZE 0x100000
110
111/* The number of bytes reserved for loadable plugins */
112#define PLUGIN_BUFFER_SIZE 0x100000
113
114/* Define this if you have the TLV320 audio codec -> controlled by the DSP */
115#define HAVE_TLV320
116
117#define CONFIG_I2C I2C_DM320
118
119/* TLV320 has no tone controls, so we use the software ones */
120#define HAVE_SW_TONE_CONTROLS
121
122/*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
123 SAMPR_CAP_11)*/
124
125#define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
126#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
127#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
128#define BATTERY_CAPACITY_INC 100 /* capacity increment */
129#define BATTERY_TYPES_COUNT 1 /* only one type */
130
131/* Hardware controlled charging with monitoring */
132//#define CONFIG_CHARGING CHARGING_MONITOR
133
134/* Define this if you have a TI TMS320DM320 */
135#define CONFIG_CPU DM320
136
137/* define this if the hardware can be powered off while charging */
138#define HAVE_POWEROFF_WHILE_CHARGING
139
140/* The size of the flash ROM */
141#define FLASH_SIZE 0x400000
142
143/* Define this to the CPU frequency */
144#define CPU_FREQ 16934400
145
146/* Define this if you have ATA power-off control */
147#define HAVE_ATA_POWER_OFF
148
149/* Offset ( in the firmware file's header ) to the file CRC */
150#define FIRMWARE_OFFSET_FILE_CRC 0
151
152/* Offset ( in the firmware file's header ) to the real data */
153#define FIRMWARE_OFFSET_FILE_DATA 8
154
155/* Define this if you have adjustable CPU frequency */
156/* #define HAVE_ADJUSTABLE_CPU_FREQ */
157
158#define BOOTFILE_EXT "zvm"
159#define BOOTFILE "rockbox." BOOTFILE_EXT
160#define BOOTDIR "/.rockbox"
161
162#define CONFIG_USBOTG USBOTG_ISP1583
163#define HAVE_USBSTACK
164#define USE_ROCKBOX_USB
165#define USB_VENDOR_ID 0x041e
166#define USB_PRODUCT_ID 0x4133
167#define USB_NUM_ENDPOINTS 7
168
169/*DEBUGGING!*/
170/*
171#define THREAD_EXTRA_CHECKS 1
172#define DEBUG 1
173#define debug(msg) printf(msg)
174#define BUTTON_DEBUG
175*/
176
diff --git a/firmware/export/config/zenvisionm60gb.h b/firmware/export/config/zenvisionm60gb.h
new file mode 100644
index 0000000000..3e95ae7be7
--- /dev/null
+++ b/firmware/export/config/zenvisionm60gb.h
@@ -0,0 +1,168 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2008 by Maurus Cuelenaere
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23 * This config file is for the Creative Zen Vision:M 60GB
24 */
25#define TARGET_TREE /* this target is using the target tree system */
26
27#define CONFIG_SDRAM_START 0x00900000
28
29#define CREATIVE_ZVM60GB 1
30
31#define MODEL_NAME "Creative Zen Vision:M 60GB"
32
33/* This makes it part of the Creative Zen Vision family :) */
34#define CREATIVE_ZVx 1
35
36/* For Rolo and boot loader */
37#define MODEL_NUMBER 27
38
39/* define this if you use an ATA controller */
40#define CONFIG_STORAGE STORAGE_ATA
41
42/* define this if you have a bitmap LCD display */
43#define HAVE_LCD_BITMAP
44
45/* define this if you have a colour LCD */
46#define HAVE_LCD_COLOR
47
48/* define this if you have access to the quickscreen */
49#define HAVE_QUICKSCREEN
50
51/* define this if you have access to the pitchscreen */
52#define HAVE_PITCHSCREEN
53
54/* define this if you would like tagcache to build on this target */
55#define HAVE_TAGCACHE
56
57/* define this if the target has volume keys which can be used in the lists */
58//#define HAVE_VOLUME_IN_LIST
59
60/* LCD dimensions */
61#define CONFIG_LCD LCD_CREATIVEZVM
62
63/* choose the lcd orientation. both work */
64#define CONFIG_ORIENTATION SCREEN_PORTRAIT
65
66#define LCD_WIDTH 320
67#define LCD_HEIGHT 240
68
69#define LCD_DEPTH 16 /* 65k colours */
70#define LCD_PIXELFORMAT RGB565 /* rgb565 */
71
72/* Define this if your LCD can be enabled/disabled */
73#define HAVE_LCD_ENABLE
74
75#define CONFIG_KEYPAD CREATIVEZVM_PAD
76#define HAVE_HEADPHONE_DETECTION
77//#define HAVE_TOUCHPAD
78
79/* Define this to enable morse code input */
80#define HAVE_MORSE_INPUT
81
82/* Define this if you do software codec */
83#define CONFIG_CODEC SWCODEC
84
85/* define this if you have a real-time clock */
86//#define CONFIG_RTC RTC_RX5X348AB
87
88/* define this if you have a disk storage, i.e. something
89 that needs spinups and can cause skips when shaked */
90#define HAVE_DISK_STORAGE
91
92/* Define this for LCD backlight available */
93//#define HAVE_BACKLIGHT
94
95//#define HAVE_BACKLIGHT_BRIGHTNESS
96
97/* Main LCD backlight brightness range and defaults */
98//#define MIN_BRIGHTNESS_SETTING 0
99//#define MAX_BRIGHTNESS_SETTING 127
100//#define DEFAULT_BRIGHTNESS_SETTING 85 /* OF "full brightness" */
101//#define DEFAULT_DIMNESS_SETTING 22 /* OF "most dim" */
102
103/* Define this if you have a software controlled poweroff */
104//#define HAVE_SW_POWEROFF
105//TODO: enable this back
106
107/* The number of bytes reserved for loadable codecs */
108#define CODEC_SIZE 0x100000
109
110/* The number of bytes reserved for loadable plugins */
111#define PLUGIN_BUFFER_SIZE 0x100000
112
113/* Define this if you have the TLV320 audio codec -> controlled by the DSP */
114#define HAVE_TLV320
115
116#define CONFIG_I2C I2C_DM320
117
118/* TLV320 has no tone controls, so we use the software ones */
119#define HAVE_SW_TONE_CONTROLS
120
121/*#define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
122 SAMPR_CAP_11)*/
123
124#define BATTERY_CAPACITY_DEFAULT 1250 /* default battery capacity */
125#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */
126#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
127#define BATTERY_CAPACITY_INC 100 /* capacity increment */
128#define BATTERY_TYPES_COUNT 1 /* only one type */
129
130/* Hardware controlled charging with monitoring */
131//#define CONFIG_CHARGING CHARGING_MONITOR
132
133/* Define this if you have a TI TMS320DM320 */
134#define CONFIG_CPU DM320
135
136/* define this if the hardware can be powered off while charging */
137#define HAVE_POWEROFF_WHILE_CHARGING
138
139/* The size of the flash ROM */
140#define FLASH_SIZE 0x400000
141
142/* Define this to the CPU frequency */
143#define CPU_FREQ 16934400
144
145/* Define this if you have ATA power-off control */
146#define HAVE_ATA_POWER_OFF
147
148/* Offset ( in the firmware file's header ) to the file CRC */
149#define FIRMWARE_OFFSET_FILE_CRC 0
150
151/* Offset ( in the firmware file's header ) to the real data */
152#define FIRMWARE_OFFSET_FILE_DATA 8
153
154/* Define this if you have adjustable CPU frequency */
155/* #define HAVE_ADJUSTABLE_CPU_FREQ */
156
157#define BOOTFILE_EXT "zvm60"
158#define BOOTFILE "rockbox." BOOTFILE_EXT
159#define BOOTDIR "/.rockbox"
160
161/* #define CONFIG_USBOTG USBOTG_ISP1761 */
162#define CONFIG_USBOTG USBOTG_ISP1583
163#define HAVE_USBSTACK
164#define USE_ROCKBOX_USB
165#define USB_VENDOR_ID 0x041e
166#define USB_PRODUCT_ID 0x4133
167#define USB_NUM_ENDPOINTS 7
168