Delete superfluous image which seems to have been accidentally committed to the wrong...
[kugel-rb.git] / firmware / export / config-gigabeat-s.h
blob1f403390655407d4f6fc7a00bcab7dcc889f64fc
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 #define MODEL_NAME "Toshiba Gigabeat S"
12 /* For Rolo and boot loader */
13 #define MODEL_NUMBER 21
15 /* define this if you use an ATA controller */
16 #define HAVE_ATA
18 /* define this if you have a bitmap LCD display */
19 #define HAVE_LCD_BITMAP
21 /* define this if you have a colour LCD */
22 #define HAVE_LCD_COLOR
24 /* define this if you want album art for this target */
25 #define HAVE_ALBUMART
27 /* define this if you have access to the quickscreen */
28 #define HAVE_QUICKSCREEN
30 /* define this if you have access to the pitchscreen */
31 #define HAVE_PITCHSCREEN
33 /* define this if you would like tagcache to build on this target */
34 #define HAVE_TAGCACHE
36 /* define this if the target has volume keys which can be used in the lists */
37 #define HAVE_VOLUME_IN_LIST
39 /* LCD dimensions */
40 #define LCD_WIDTH 240
41 #define LCD_HEIGHT 320
42 #define LCD_DEPTH 16 /* 65k colours */
43 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
45 #define CONFIG_KEYPAD GIGABEAT_S_PAD
47 /* Define this if you do software codec */
48 #define CONFIG_CODEC SWCODEC
50 /* define this if you have a real-time clock */
51 #define CONFIG_RTC RTC_MC13783
53 /* Define if the device can wake from an RTC alarm */
54 #define HAVE_RTC_ALARM
56 /* Define this for LCD backlight available */
57 #define HAVE_BACKLIGHT
59 /* Define this if you have a software controlled poweroff */
60 #define HAVE_SW_POWEROFF
62 /* The number of bytes reserved for loadable codecs */
63 #define CODEC_SIZE 0x80000
65 /* The number of bytes reserved for loadable plugins */
66 #define PLUGIN_BUFFER_SIZE 0x80000
68 /* Define this if you have the WM8978 audio codec */
69 #define HAVE_WM8978
71 #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \
72 SAMPR_CAP_11)
74 #ifndef BOOTLOADER
75 /* Not for bootloader */
76 #define HAVE_LCD_ENABLE
78 #define HAVE_BACKLIGHT_BRIGHTNESS
80 /* Main LCD backlight brightness range and defaults */
81 #define MIN_BRIGHTNESS_SETTING 0
82 #define MAX_BRIGHTNESS_SETTING 24
83 #define DEFAULT_BRIGHTNESS_SETTING 12
86 #define HAVE_HEADPHONE_DETECTION
87 #endif /* BOOTLOADER */
89 #ifndef SIMULATOR
91 /* The LCD on a Gigabeat is 240x320 - it is portrait */
92 #define HAVE_PORTRAIT_LCD
94 #define CONFIG_CPU IMX31L
96 /* Define this if you want to use coldfire's i2c interface */
97 #define CONFIG_I2C I2C_IMX31L
99 /* Define the bitmask of modules used */
100 #define SPI_MODULE_MASK (USE_CSPI2_MODULE)
101 #define I2C_MODULE_MASK (USE_I2C1_MODULE)
102 #define GPIO_EVENT_MASK (USE_GPIO1_EVENTS)
104 /* Define this if target has an additional number of threads specific to it */
105 #define TARGET_EXTRA_THREADS 1
107 /* Type of mobile power - check this out */
108 #define BATTERY_CAPACITY_DEFAULT 700 /* default battery capacity */
109 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
110 #define BATTERY_CAPACITY_MAX 1200 /* max. capacity selectable */
111 #define BATTERY_CAPACITY_INC 25 /* capacity increment */
112 #define BATTERY_TYPES_COUNT 1 /* only one type */
114 /* Hardware controlled charging with monitoring */
115 #define CONFIG_CHARGING CHARGING_MONITOR
117 /* define this if the hardware can be powered off while charging */
118 #define HAVE_POWEROFF_WHILE_CHARGING
120 /* The size of the flash ROM */
121 #define FLASH_SIZE 0x400000
123 /* Define this to the CPU frequency */
124 /* TODO */
125 #define CPU_FREQ 264000000 /* Set by retailOS loader */
127 /* define this if the unit can be powered or charged via USB */
128 //#define HAVE_USB_POWER /* Disable for now */
130 /* USB On-the-go */
131 #define CONFIG_USBOTG USBOTG_ARC
133 /* enable these for the experimental usb stack */
134 #define USE_HIGH_SPEED
135 #define USE_ROCKBOX_USB
136 #define HAVE_USBSTACK
137 #define USB_STORAGE
138 #define USB_VENDOR_ID 0x0930
139 #define USB_PRODUCT_ID 0x0010
141 /* Define this if you have ATA power-off control */
142 #define HAVE_ATA_POWER_OFF
144 /* Virtual LED (icon) */
145 #define CONFIG_LED LED_VIRTUAL
147 #define CONFIG_LCD LCD_GIGABEAT
149 /* define this if the backlight can be set to a brightness */
150 //#define HAVE_BACKLIGHT_SET_FADING
151 #define __BACKLIGHT_INIT
153 /* Offset ( in the firmware file's header ) to the file CRC */
154 #define FIRMWARE_OFFSET_FILE_CRC 0
156 /* Offset ( in the firmware file's header ) to the real data */
157 #define FIRMWARE_OFFSET_FILE_DATA 8
159 #define HAVE_SERIAL
160 #define HAVE_VOLUME_IN_LIST
162 /*Remove Comments from UART_INT to enable the UART interrupts,*/
163 /*otherwise iterrupts will be disabled. For now we will test */
164 /*UART state by polling the registers, and if necessary update this */
165 /*method by using the interrupts instead*/
166 //#define UART_INT
168 /* Define this if you have adjustable CPU frequency */
169 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
171 #define BOOTFILE_EXT "gigabeat"
172 #define BOOTFILE "rockbox." BOOTFILE_EXT
173 #define BOOTDIR "/.rockbox"
175 #endif