Colour targets: Revert an optimisation from almost 18 months ago that actually turned...
[Rockbox.git] / firmware / export / config-gigabeat-s.h
blobcafb202ebe78ffef0502ce4da3d5db0f877c142e
1 /*
2 * This config file is for toshiba Gigabeat S
3 */
5 #define NO_LOW_BATTERY_SHUTDOWN
6 #define TARGET_TREE /* this target is using the target tree system */
8 #define TOSHIBA_GIGABEAT_S 1
10 /* For Rolo and boot loader */
11 #define MODEL_NUMBER 21
13 /* define this if you use an ATA controller */
14 #define HAVE_ATA
16 /* define this if you have a bitmap LCD display */
17 #define HAVE_LCD_BITMAP
19 /* define this if you have a colour LCD */
20 #define HAVE_LCD_COLOR
22 /* define this if you want album art for this target */
23 #define HAVE_ALBUMART
25 /* define this if you have access to the quickscreen */
26 #define HAVE_QUICKSCREEN
28 /* define this if you have access to the pitchscreen */
29 #define HAVE_PITCHSCREEN
31 /* define this if you would like tagcache to build on this target */
32 #define HAVE_TAGCACHE
34 /* define this if the target has volume keys which can be used in the lists */
35 #define HAVE_VOLUME_IN_LIST
37 /* LCD dimensions */
38 #define LCD_WIDTH 240
39 #define LCD_HEIGHT 320
40 #define LCD_DEPTH 16 /* 65k colours */
41 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
43 #define CONFIG_KEYPAD GIGABEAT_S_PAD
45 /* Define this if you do software codec */
46 #define CONFIG_CODEC SWCODEC
48 /* define this if you have a real-time clock */
49 #define CONFIG_RTC RTC_MC13783
51 /* Define if the device can wake from an RTC alarm */
52 #define HAVE_RTC_ALARM
54 /* Define this for LCD backlight available */
55 #define HAVE_BACKLIGHT
57 /* Define this if you have a software controlled poweroff */
58 #define HAVE_SW_POWEROFF
60 /* The number of bytes reserved for loadable codecs */
61 #define CODEC_SIZE 0x80000
63 /* The number of bytes reserved for loadable plugins */
64 #define PLUGIN_BUFFER_SIZE 0x80000
66 /* Define this if you have the WM8978 audio codec */
67 #define HAVE_WM8978
69 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
70 SAMPR_CAP_11)
72 #ifndef BOOTLOADER
73 /* Not for bootloader */
74 #define HAVE_LCD_ENABLE
76 #define HAVE_BACKLIGHT_BRIGHTNESS
78 /* Main LCD backlight brightness range and defaults */
79 #define MIN_BRIGHTNESS_SETTING 0
80 #define MAX_BRIGHTNESS_SETTING 24
81 #define DEFAULT_BRIGHTNESS_SETTING 12
84 #define HAVE_HEADPHONE_DETECTION
85 #endif /* BOOTLOADER */
87 #ifndef SIMULATOR
89 /* The LCD on a Gigabeat is 240x320 - it is portrait */
90 #define HAVE_PORTRAIT_LCD
92 #define CONFIG_CPU IMX31L
94 /* Define this if you want to use coldfire's i2c interface */
95 #define CONFIG_I2C I2C_IMX31L
97 /* Define the bitmask of modules used */
98 #define SPI_MODULE_MASK (USE_CSPI2_MODULE)
99 #define I2C_MODULE_MASK (USE_I2C1_MODULE)
100 #define GPIO_EVENT_MASK (USE_GPIO1_EVENTS)
102 /* Define this if target has an additional number of threads specific to it */
103 #define TARGET_EXTRA_THREADS 1
105 /* Type of mobile power - check this out */
106 #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
107 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
108 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
109 #define BATTERY_CAPACITY_INC 25 /* capacity increment */
110 #define BATTERY_TYPES_COUNT 1 /* only one type */
112 /* Hardware controlled charging with monitoring */
113 #define CONFIG_CHARGING CHARGING_MONITOR
115 /* define this if the hardware can be powered off while charging */
116 #define HAVE_POWEROFF_WHILE_CHARGING
118 /* The size of the flash ROM */
119 #define FLASH_SIZE 0x400000
121 /* Define this to the CPU frequency */
122 /* TODO */
123 #define CPU_FREQ 264000000 /* Set by retailOS loader */
125 /* define this if the unit can be powered or charged via USB */
126 //#define HAVE_USB_POWER /* Disable for now */
128 /* USB On-the-go */
129 #define CONFIG_USBOTG USBOTG_ARC
131 /* enable these for the experimental usb stack */
132 #define USE_HIGH_SPEED
133 #define USE_ROCKBOX_USB
134 #define HAVE_USBSTACK
135 #define USB_STORAGE
136 #define USB_VENDOR_ID 0x0930
137 #define USB_PRODUCT_ID 0x0010
139 /* Define this if you have ATA power-off control */
140 #define HAVE_ATA_POWER_OFF
142 /* Virtual LED (icon) */
143 #define CONFIG_LED LED_VIRTUAL
145 #define CONFIG_LCD LCD_GIGABEAT
147 /* define this if the backlight can be set to a brightness */
148 //#define HAVE_BACKLIGHT_SET_FADING
149 #define __BACKLIGHT_INIT
151 /* Offset ( in the firmware file's header ) to the file CRC */
152 #define FIRMWARE_OFFSET_FILE_CRC 0
154 /* Offset ( in the firmware file's header ) to the real data */
155 #define FIRMWARE_OFFSET_FILE_DATA 8
157 #define HAVE_SERIAL
158 #define HAVE_VOLUME_IN_LIST
160 /*Remove Comments from UART_INT to enable the UART interrupts,*/
161 /*otherwise iterrupts will be disabled. For now we will test */
162 /*UART state by polling the registers, and if necessary update this */
163 /*method by using the interrupts instead*/
164 //#define UART_INT
166 /* Define this if you have adjustable CPU frequency */
167 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
169 #define BOOTFILE_EXT "gigabeat"
170 #define BOOTFILE "rockbox." BOOTFILE_EXT
171 #define BOOTDIR "/.rockbox"
173 #endif