Should clear up rest of red. Add a required #define in the config for c200. Fix up...
[kugel-rb.git] / firmware / export / config / gigabeats.h
blobfcfa2743149bb83a8c991e80243da417bbbd9f7f
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 /* System source clock frequencies (Hz) */
12 #define CONFIG_CKIL_FREQ 32768 /* RTC Crystal, Tuner */
13 #define CONFIG_CKIH_FREQ 27000000 /* PLL Reference */
15 /* For Rolo and boot loader */
16 #define MODEL_NUMBER 21
18 /* define this if you use an ATA controller */
19 #define CONFIG_STORAGE STORAGE_ATA
21 /*define this if the ATA controller and method of USB access support LBA48 */
22 #define HAVE_LBA48
24 /* define this if you have a bitmap LCD display */
25 #define HAVE_LCD_BITMAP
27 /* define this if you have a colour LCD */
28 #define HAVE_LCD_COLOR
30 /* define this if you want album art for this target */
31 #define HAVE_ALBUMART
33 /* define this to enable bitmap scaling */
34 #define HAVE_BMP_SCALING
36 /* define this to enable JPEG decoding */
37 #define HAVE_JPEG
39 /* define this if you have access to the quickscreen */
40 #define HAVE_QUICKSCREEN
42 /* define this if you have access to the pitchscreen */
43 #define HAVE_PITCHSCREEN
45 /* define this if you would like tagcache to build on this target */
46 #define HAVE_TAGCACHE
48 /* define this if the target has volume keys which can be used in the lists */
49 #define HAVE_VOLUME_IN_LIST
51 /* LCD dimensions */
52 #define LCD_WIDTH 240
53 #define LCD_HEIGHT 320
54 #define LCD_DEPTH 16 /* 65k colours */
55 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
57 #define CONFIG_KEYPAD GIGABEAT_S_PAD
59 /* Define this to enable morse code input */
60 #define HAVE_MORSE_INPUT
62 /* Define this if you do software codec */
63 #define CONFIG_CODEC SWCODEC
65 /* define this if you have a real-time clock */
66 #define CONFIG_RTC RTC_MC13783
68 /* Define if the device can wake from an RTC alarm */
69 #define HAVE_RTC_ALARM
71 /* Define this for LCD backlight available */
72 #define HAVE_BACKLIGHT
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
78 /* Define this if you have a software controlled poweroff */
79 #define HAVE_SW_POWEROFF
81 /* The number of bytes reserved for loadable codecs */
82 #define CODEC_SIZE 0x100000
84 /* The number of bytes reserved for loadable plugins */
85 #define PLUGIN_BUFFER_SIZE 0x80000
87 /* Define this if you have a SI4700 fm radio tuner */
88 #define CONFIG_TUNER SI4700
90 /* Define this if you have the WM8978 audio codec */
91 #define HAVE_WM8978
93 /* Define bitmask of input sources - recordable bitmask can be defined
94 explicitly if different */
95 #define INPUT_SRC_CAPS SRC_CAP_FMRADIO
97 /* define the bitmask of hardware sample rates */
98 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
99 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
100 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
102 /* define the bitmask of recording sample rates */
103 #define REC_SAMPR_CAPS HW_SAMPR_CAPS /* Same as playback */
105 /* define default recording levels */
106 #define DEFAULT_REC_LEFT_GAIN 0
107 #define DEFAULT_REC_RIGHT_GAIN 0
109 /* Define this if you have recording capability */
110 #define HAVE_RECORDING
112 /* Define this if your LCD can be put to sleep. */
113 #define HAVE_LCD_SLEEP
114 /* We don't use a setting but a fixed delay after the backlight has
115 * turned off */
116 #define LCD_SLEEP_TIMEOUT (2*HZ)
118 /* Define this if your LCD can be enabled/disabled */
119 #define HAVE_LCD_ENABLE
121 #ifndef BOOTLOADER
123 /* define this if you can flip your LCD */
124 #define HAVE_LCD_FLIP
126 /* define this if you can invert the colours on your LCD */
127 #define HAVE_LCD_INVERT
129 /* Define this if your LCD can set contrast */
130 #define HAVE_LCD_CONTRAST
132 /* Main LCD contrast range and defaults */
133 #define MIN_CONTRAST_SETTING 0
134 #define MAX_CONTRAST_SETTING 63
135 #define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
137 /* Define this for LCD backlight brightness available */
138 #define HAVE_BACKLIGHT_BRIGHTNESS
140 /* Main LCD backlight brightness range and defaults */
141 #define MIN_BRIGHTNESS_SETTING 1
142 #define MAX_BRIGHTNESS_SETTING 24
143 #define DEFAULT_BRIGHTNESS_SETTING 12
145 /* Implementation-defined fading type with bool settings */
146 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_TARGET
148 #define HAVE_HEADPHONE_DETECTION
149 #endif /* BOOTLOADER */
151 #define CONFIG_CPU IMX31L
153 /* Define this if you want to use imx31l's i2c interface */
154 #define CONFIG_I2C I2C_IMX31L
156 /* Define the bitmask of modules used */
157 #define SPI_MODULE_MASK (USE_CSPI2_MODULE | USE_CSPI3_MODULE)
158 #define I2C_MODULE_MASK (USE_I2C1_MODULE | USE_I2C2_MODULE)
159 #define GPIO_EVENT_MASK (USE_GPIO1_EVENTS)
161 /* Define this if target has an additional number of threads specific to it */
162 #define TARGET_EXTRA_THREADS 2
164 /* Type of mobile power - check this out */
165 #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
166 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
167 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
168 #define BATTERY_CAPACITY_INC 25 /* capacity increment */
169 #define BATTERY_TYPES_COUNT 1 /* only one type */
171 /* TODO: have a proper status displayed in the bootloader and have it
172 * work! */
173 /* Charging implemented in a target-specific algorithm */
174 #define CONFIG_CHARGING CHARGING_TARGET
176 #define HAVE_USB_CHARGING_ENABLE
178 /* define this if the hardware can be powered off while charging */
179 /* We don't charge while powered down so maybe implement a
180 finish-charging-and-then-poweroff mode */
181 #define HAVE_POWEROFF_WHILE_CHARGING
183 /* The size of the flash ROM */
184 #define FLASH_SIZE 0x200000
186 /* Define this to the CPU frequency */
187 #define CPU_FREQ 264000000 /* Set by retailOS loader */
189 #define FREQ cpu_frequency
191 /* define this if the unit can be powered or charged via USB */
192 #define HAVE_USB_POWER
193 #define USBPOWER_BUTTON BUTTON_MENU
194 #define USBPOWER_BTN_IGNORE BUTTON_POWER
196 /* define this if the unit has a battery switch or battery can be removed
197 * when running */
198 #define HAVE_BATTERY_SWITCH
200 /* USB On-the-go */
201 #define CONFIG_USBOTG USBOTG_ARC
203 /* enable these for the usb stack */
204 #define USE_ROCKBOX_USB
205 #define HAVE_USBSTACK
206 /* usb stack and driver settings */
207 #define USB_PORTSCX_PHY_TYPE PORTSCX_PTS_ULPI
208 #define USB_VENDOR_ID 0x0930
209 #define USB_PRODUCT_ID 0x0010
210 #define HAVE_USB_HID_MOUSE
212 /* Define this if you have ATA power-off control */
213 #define HAVE_ATA_POWER_OFF
215 /* Define this to add support for ATA DMA */
216 #define HAVE_ATA_DMA
218 #define CONFIG_LCD LCD_GIGABEAT
220 /* Offset ( in the firmware file's header ) to the file CRC */
221 #define FIRMWARE_OFFSET_FILE_CRC 0
223 /* Offset ( in the firmware file's header ) to the real data */
224 #define FIRMWARE_OFFSET_FILE_DATA 8
226 //#define HAVE_SERIAL
227 #define HAVE_VOLUME_IN_LIST
229 /*Remove Comments from UART_INT to enable the UART interrupts,*/
230 /*otherwise iterrupts will be disabled. For now we will test */
231 /*UART state by polling the registers, and if necessary update this */
232 /*method by using the interrupts instead*/
233 //#define UART_INT
235 /* Define this if you have adjustable CPU frequency */
236 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
238 #define HAVE_PCM_DMA_ADDRESS
239 #define HAVE_PCM_REC_DMA_ADDRESS
241 #define BOOTFILE_EXT "gigabeat"
242 #define BOOTFILE "rockbox." BOOTFILE_EXT
243 #define BOOTDIR "/.rockbox"
245 /* Define this if a programmable hotkey is mapped */
246 #define HAVE_HOTKEY