summaryrefslogtreecommitdiff
path: root/firmware/export/config/gigabeats.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/gigabeats.h')
-rw-r--r--firmware/export/config/gigabeats.h216
1 files changed, 216 insertions, 0 deletions
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