Disable shutting down with the charger connected on the gigabeat s since it doesn...
[kugel-rb.git] / firmware / export / config / gigabeats.h
blob2bc56ec98c3c06da3b413dbebaac633871c95ca6
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 /* Tone controls for WM8978 have not been implemented yet */
94 #define HAVE_SW_TONE_CONTROLS
96 /* Define bitmask of input sources - recordable bitmask can be defined
97 explicitly if different */
98 #define INPUT_SRC_CAPS SRC_CAP_FMRADIO
100 /* define the bitmask of hardware sample rates */
101 #define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
102 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
103 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
105 /* define the bitmask of recording sample rates */
106 #define REC_SAMPR_CAPS HW_SAMPR_CAPS /* Same as playback */
108 /* define default recording levels */
109 #define DEFAULT_REC_LEFT_GAIN 0
110 #define DEFAULT_REC_RIGHT_GAIN 0
112 /* Define this if you have recording capability */
113 #define HAVE_RECORDING
115 /* Define this if your LCD can be put to sleep. */
116 #define HAVE_LCD_SLEEP
117 /* We don't use a setting but a fixed delay after the backlight has
118 * turned off */
119 #define LCD_SLEEP_TIMEOUT (2*HZ)
121 /* Define this if your LCD can be enabled/disabled */
122 #define HAVE_LCD_ENABLE
124 #ifndef BOOTLOADER
126 #define HAVE_BACKLIGHT_BRIGHTNESS
128 /* Main LCD backlight brightness range and defaults */
129 #define MIN_BRIGHTNESS_SETTING 1
130 #define MAX_BRIGHTNESS_SETTING 24
131 #define DEFAULT_BRIGHTNESS_SETTING 12
133 /* Implementation-defined fading type with bool settings */
134 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_TARGET
136 #define HAVE_HEADPHONE_DETECTION
137 #endif /* BOOTLOADER */
139 #define CONFIG_CPU IMX31L
141 /* Define this if you want to use imx31l's i2c interface */
142 #define CONFIG_I2C I2C_IMX31L
144 /* Define the bitmask of modules used */
145 #define SPI_MODULE_MASK (USE_CSPI2_MODULE)
146 #define I2C_MODULE_MASK (USE_I2C1_MODULE | USE_I2C2_MODULE)
147 #define GPIO_EVENT_MASK (USE_GPIO1_EVENTS)
149 /* Define this if target has an additional number of threads specific to it */
150 #define TARGET_EXTRA_THREADS 2
152 /* Type of mobile power - check this out */
153 #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
154 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
155 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
156 #define BATTERY_CAPACITY_INC 25 /* capacity increment */
157 #define BATTERY_TYPES_COUNT 1 /* only one type */
159 /* TODO: have a proper status displayed in the bootloader and have it
160 * work! */
161 /* Charging implemented in a target-specific algorithm */
162 #define CONFIG_CHARGING CHARGING_TARGET
164 /* define this if the hardware can be powered off while charging */
165 /* We don't charge while powered down so maybe implement a
166 finish-charging-and-then-poweroff mode */
167 //#define HAVE_POWEROFF_WHILE_CHARGING
169 /* The size of the flash ROM */
170 #define FLASH_SIZE 0x200000
172 /* Define this to the CPU frequency */
173 #define CPU_FREQ 264000000 /* Set by retailOS loader */
175 #define FREQ cpu_frequency
177 /* define this if the unit can be powered or charged via USB */
178 #define HAVE_USB_POWER
179 #define USBPOWER_BUTTON BUTTON_MENU
180 #define USBPOWER_BTN_IGNORE BUTTON_POWER
182 /* define this if the unit has a battery switch or battery can be removed
183 * when running */
184 #define HAVE_BATTERY_SWITCH
186 /* USB On-the-go */
187 #define CONFIG_USBOTG USBOTG_ARC
189 /* enable these for the usb stack */
190 #define USE_ROCKBOX_USB
191 #define HAVE_USBSTACK
192 /* usb stack and driver settings */
193 #define USB_PORTSCX_PHY_TYPE PORTSCX_PTS_ULPI
194 #define USB_VENDOR_ID 0x0930
195 #define USB_PRODUCT_ID 0x0010
196 #define HAVE_USB_HID_MOUSE
198 /* Define this if you have ATA power-off control */
199 #define HAVE_ATA_POWER_OFF
201 /* Define this to add support for ATA DMA */
202 #define HAVE_ATA_DMA
204 #define CONFIG_LCD LCD_GIGABEAT
206 /* Offset ( in the firmware file's header ) to the file CRC */
207 #define FIRMWARE_OFFSET_FILE_CRC 0
209 /* Offset ( in the firmware file's header ) to the real data */
210 #define FIRMWARE_OFFSET_FILE_DATA 8
212 //#define HAVE_SERIAL
213 #define HAVE_VOLUME_IN_LIST
215 /*Remove Comments from UART_INT to enable the UART interrupts,*/
216 /*otherwise iterrupts will be disabled. For now we will test */
217 /*UART state by polling the registers, and if necessary update this */
218 /*method by using the interrupts instead*/
219 //#define UART_INT
221 /* Define this if you have adjustable CPU frequency */
222 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
224 #define HAVE_PCM_DMA_ADDRESS
225 #define HAVE_PCM_REC_DMA_ADDRESS
227 #define BOOTFILE_EXT "gigabeat"
228 #define BOOTFILE "rockbox." BOOTFILE_EXT
229 #define BOOTDIR "/.rockbox"
231 /* Define this if a programmable hotkey is mapped */
232 #define HAVE_HOTKEY