Use more formal English (passive)
[kugel-rb.git] / firmware / export / config-gigabeat-s.h
blobf55a4fd38237470c19f85baf15ed97aea272570f
1 /*
2 * This config file is for toshiba Gigabeat S
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 #define TOSHIBA_GIGABEAT_S 1
9 #define MODEL_NAME "Toshiba Gigabeat S"
11 /* For Rolo and boot loader */
12 #define MODEL_NUMBER 21
14 /* define this if you use an ATA controller */
15 #define CONFIG_STORAGE STORAGE_ATA
17 /* define this if you have a bitmap LCD display */
18 #define HAVE_LCD_BITMAP
20 /* define this if you have a colour LCD */
21 #define HAVE_LCD_COLOR
23 /* define this if you want album art for this target */
24 #define HAVE_ALBUMART
26 /* define this if you have access to the quickscreen */
27 #define HAVE_QUICKSCREEN
29 /* define this if you have access to the pitchscreen */
30 #define HAVE_PITCHSCREEN
32 /* define this if you would like tagcache to build on this target */
33 #define HAVE_TAGCACHE
35 /* define this if the target has volume keys which can be used in the lists */
36 #define HAVE_VOLUME_IN_LIST
38 /* LCD dimensions */
39 #define LCD_WIDTH 240
40 #define LCD_HEIGHT 320
41 #define LCD_DEPTH 16 /* 65k colours */
42 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
44 #define CONFIG_KEYPAD GIGABEAT_S_PAD
46 /* Define keyboard features */
47 #define KBD_CURSOR_KEYS /* allow non-line edit cursor movement */
48 #define KBD_MODES /* enable line edit */
49 #define KBD_MORSE_INPUT /* enable morse code input */
51 /* Define this if you do software codec */
52 #define CONFIG_CODEC SWCODEC
54 /* define this if you have a real-time clock */
55 #define CONFIG_RTC RTC_MC13783
57 /* Define if the device can wake from an RTC alarm */
58 #define HAVE_RTC_ALARM
60 /* Define this for LCD backlight available */
61 #define HAVE_BACKLIGHT
63 /* define this if you have a disk storage, i.e. something
64 that needs spinups and can cause skips when shaked */
65 #define HAVE_DISK_STORAGE
67 /* Define this if you have a software controlled poweroff */
68 #define HAVE_SW_POWEROFF
70 /* The number of bytes reserved for loadable codecs */
71 #define CODEC_SIZE 0x100000
73 /* The number of bytes reserved for loadable plugins */
74 #define PLUGIN_BUFFER_SIZE 0x80000
76 /* Define this if you have a SI4700 fm radio tuner */
77 #define CONFIG_TUNER SI4700
79 /* Define this if you have the WM8978 audio codec */
80 #define HAVE_WM8978
82 /* Define bitmask of input sources - recordable bitmask can be defined
83 explicitly if different */
84 #define INPUT_SRC_CAPS SRC_CAP_FMRADIO
86 /* define the bitmask of hardware sample rates */
87 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
88 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
89 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
91 /* define the bitmask of recording sample rates */
92 #define REC_SAMPR_CAPS HW_SAMPR_CAPS /* Same as playback */
94 /* define default recording levels */
95 #define DEFAULT_REC_LEFT_GAIN 0
96 #define DEFAULT_REC_RIGHT_GAIN 0
98 /* Define this if you have recording capability */
99 #define HAVE_RECORDING
101 /* Define this if your LCD can be put to sleep. */
102 #define HAVE_LCD_SLEEP
103 /* We don't use a setting but a fixed delay after the backlight has
104 * turned off */
105 #define LCD_SLEEP_TIMEOUT (2*HZ)
107 /* Define this if your LCD can be enabled/disabled */
108 #define HAVE_LCD_ENABLE
110 #ifndef BOOTLOADER
112 #define HAVE_BACKLIGHT_BRIGHTNESS
114 /* Main LCD backlight brightness range and defaults */
115 #define MIN_BRIGHTNESS_SETTING 1
116 #define MAX_BRIGHTNESS_SETTING 24
117 #define DEFAULT_BRIGHTNESS_SETTING 12
119 /* Implementation-defined fading type with bool settings */
120 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_TARGET
122 #define HAVE_HEADPHONE_DETECTION
123 #endif /* BOOTLOADER */
125 #ifndef SIMULATOR
127 /* The LCD on a Gigabeat is 240x320 - it is portrait */
128 #define HAVE_PORTRAIT_LCD
130 #define CONFIG_CPU IMX31L
132 /* Define this if you want to use imx31l's i2c interface */
133 #define CONFIG_I2C I2C_IMX31L
135 /* Define the bitmask of modules used */
136 #define SPI_MODULE_MASK (USE_CSPI2_MODULE)
137 #define I2C_MODULE_MASK (USE_I2C1_MODULE | USE_I2C2_MODULE)
138 #define GPIO_EVENT_MASK (USE_GPIO1_EVENTS)
140 /* Define this if target has an additional number of threads specific to it */
141 #define TARGET_EXTRA_THREADS 2
143 /* Type of mobile power - check this out */
144 #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
145 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
146 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
147 #define BATTERY_CAPACITY_INC 25 /* capacity increment */
148 #define BATTERY_TYPES_COUNT 1 /* only one type */
150 /* TODO: have a proper status displayed in the bootloader and have it
151 * work! */
152 /* Charing implemented in a target-specific algorithm */
153 #define CONFIG_CHARGING CHARGING_TARGET
155 /* define this if the hardware can be powered off while charging */
156 #define HAVE_POWEROFF_WHILE_CHARGING
158 /* The size of the flash ROM */
159 #define FLASH_SIZE 0x400000
161 /* Define this to the CPU frequency */
162 /* TODO */
163 #define CPU_FREQ 264000000 /* Set by retailOS loader */
165 /* define this if the unit can be powered or charged via USB */
166 #define HAVE_USB_POWER
167 #define USBPOWER_BUTTON BUTTON_MENU
168 #define USBPOWER_BTN_IGNORE BUTTON_POWER
170 /* define this if the unit has a battery switch or battery can be removed
171 * when running */
172 #define HAVE_BATTERY_SWITCH
174 /* USB On-the-go */
175 #define CONFIG_USBOTG USBOTG_ARC
177 /* enable these for the usb stack */
178 #define USE_ROCKBOX_USB
179 #define HAVE_USBSTACK
180 #define USB_STORAGE
181 /* usb stack and driver settings */
182 #define USB_PORTSCX_PHY_TYPE PORTSCX_PTS_ULPI
183 #define USB_VENDOR_ID 0x0930
184 #define USB_PRODUCT_ID 0x0010
186 /* Define this if you have ATA power-off control */
187 #define HAVE_ATA_POWER_OFF
189 /* Virtual LED (icon) */
190 #define CONFIG_LED LED_VIRTUAL
192 #define CONFIG_LCD LCD_GIGABEAT
194 /* define this if the backlight can be set to a brightness */
195 //#define HAVE_BACKLIGHT_SET_FADING
196 #define __BACKLIGHT_INIT
198 /* Offset ( in the firmware file's header ) to the file CRC */
199 #define FIRMWARE_OFFSET_FILE_CRC 0
201 /* Offset ( in the firmware file's header ) to the real data */
202 #define FIRMWARE_OFFSET_FILE_DATA 8
204 //#define HAVE_SERIAL
205 #define HAVE_VOLUME_IN_LIST
207 /*Remove Comments from UART_INT to enable the UART interrupts,*/
208 /*otherwise iterrupts will be disabled. For now we will test */
209 /*UART state by polling the registers, and if necessary update this */
210 /*method by using the interrupts instead*/
211 //#define UART_INT
213 /* Define this if you have adjustable CPU frequency */
214 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
216 #define HAVE_PCM_DMA_ADDRESS
218 #define BOOTFILE_EXT "gigabeat"
219 #define BOOTFILE "rockbox." BOOTFILE_EXT
220 #define BOOTDIR "/.rockbox"
222 #endif