Colour targets: Revert an optimisation from almost 18 months ago that actually turned...
[Rockbox.git] / firmware / export / config-gigabeat.h
blobcf64baab12ecdaf0c041828b4b38b243d4a52506
1 /*
2 * This config file is for toshiba Gigabeat F
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 #define TOSHIBA_GIGABEAT_F 1
8 /* For Rolo and boot loader */
9 #define MODEL_NUMBER 18
11 /* define this if you use an ATA controller */
12 #define HAVE_ATA
14 /* define this if you have a bitmap LCD display */
15 #define HAVE_LCD_BITMAP
17 /* define this if you have a colour LCD */
18 #define HAVE_LCD_COLOR
20 /* define this if you want album art for this target */
21 #define HAVE_ALBUMART
23 /* define this if you have access to the quickscreen */
24 #define HAVE_QUICKSCREEN
26 /* define this if you have access to the pitchscreen */
27 #define HAVE_PITCHSCREEN
29 /* define this if you would like tagcache to build on this target */
30 #define HAVE_TAGCACHE
32 /* define this if the target has volume keys which can be used in the lists */
33 #define HAVE_VOLUME_IN_LIST
35 /* LCD dimensions */
36 #define LCD_WIDTH 240
37 #define LCD_HEIGHT 320
38 #define LCD_DEPTH 16 /* 65k colours */
39 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
41 #ifndef BOOTLOADER
42 /* Define this if your LCD can be enabled/disabled */
43 #define HAVE_LCD_ENABLE
45 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
46 should be defined as well. */
47 #define HAVE_LCD_SLEEP
48 /* We don't use a setting but a fixed delay after the backlight has
49 * turned off */
50 #define LCD_SLEEP_TIMEOUT (5*HZ)
52 #define HAVE_TOUCHPAD_SENSITIVITY_SETTING
53 #endif /* BOOTLOADER */
55 #define CONFIG_KEYPAD GIGABEAT_PAD
57 /* Define this if you do software codec */
58 #define CONFIG_CODEC SWCODEC
60 /* define this if you have a real-time clock */
61 #define CONFIG_RTC RTC_S3C2440
63 /* Define this for LCD backlight available */
64 #define HAVE_BACKLIGHT
66 #define HAVE_BUTTON_LIGHT
68 #define HAVE_BACKLIGHT_BRIGHTNESS
70 #define HAVE_BUTTONLIGHT_BRIGHTNESS
72 /* Main LCD backlight brightness range and defaults */
73 #define MIN_BRIGHTNESS_SETTING 1 /* 0.5 mA */
74 #define MAX_BRIGHTNESS_SETTING 12 /* 32 mA */
75 #define DEFAULT_BRIGHTNESS_SETTING 10 /* 16 mA */
77 /* Define this if you have a software controlled poweroff */
78 #define HAVE_SW_POWEROFF
80 /* The number of bytes reserved for loadable codecs */
81 #define CODEC_SIZE 0x80000
83 /* The number of bytes reserved for loadable plugins */
84 #define PLUGIN_BUFFER_SIZE 0x80000
86 #define AB_REPEAT_ENABLE 1
88 /* Define this if you have the WM8975 audio codec */
89 #define HAVE_WM8751
91 /* Define this if you want to use the adaptive bass capibility of the 8751 */
92 /* #define USE_ADAPTIVE_BASS */
94 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
95 SAMPR_CAP_11)
97 #define HAVE_HEADPHONE_DETECTION
99 #define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */
100 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
101 #define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */
102 #define BATTERY_CAPACITY_INC 25 /* capacity increment */
103 #define BATTERY_TYPES_COUNT 1 /* only one type */
105 /* Hardware controlled charging with monitoring */
106 #define CONFIG_CHARGING CHARGING_MONITOR
108 /* define this if the unit can be powered or charged via USB */
109 #define HAVE_USB_POWER
111 #ifndef SIMULATOR
113 /* The LCD on a Gigabeat is 240x320 - it is portrait */
114 #define HAVE_PORTRAIT_LCD
116 #define HAVE_LCD_FLIP
118 /* Define this if your LCD can set contrast */
119 #define HAVE_LCD_CONTRAST
121 #define MIN_CONTRAST_SETTING 0
122 #define MAX_CONTRAST_SETTING 63
123 #define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */
125 /* LCD invert - does not currently work */
126 /* #define HAVE_LCD_INVERT */
128 /* Define this if you have a Motorola SCF5249 */
129 #define CONFIG_CPU S3C2440
131 /* Define this if you want to use coldfire's i2c interface */
132 #define CONFIG_I2C I2C_S3C2440
134 /* define this if the hardware can be powered off while charging */
135 #define HAVE_POWEROFF_WHILE_CHARGING
137 /* The size of the flash ROM */
138 #define FLASH_SIZE 0x400000
140 /* Define this to the CPU frequency */
141 #define CPU_FREQ 16934400
143 /* Define this if you have ATA power-off control */
144 #define HAVE_ATA_POWER_OFF
146 /* Virtual LED (icon) */
147 #define CONFIG_LED LED_VIRTUAL
149 #define CONFIG_LCD LCD_GIGABEAT
151 /* define this if the backlight can be set to a brightness */
152 #define HAVE_BACKLIGHT_SET_FADING
153 #define __BACKLIGHT_INIT
155 /* Offset ( in the firmware file's header ) to the file CRC */
156 #define FIRMWARE_OFFSET_FILE_CRC 0
158 /* Offset ( in the firmware file's header ) to the real data */
159 #define FIRMWARE_OFFSET_FILE_DATA 8
161 /* Define this if you have adjustable CPU frequency */
162 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
164 #define BOOTFILE_EXT "gigabeat"
165 #define BOOTFILE "rockbox." BOOTFILE_EXT
166 #define BOOTDIR "/.rockbox"
168 #endif