fuze+: implement lcd flip and invert
[maemo-rb.git] / firmware / export / config / sansafuzeplus.h
blob5f325cf04845d301b11ce8de0bf8c20cb3b7d924
1 /*
2 * This config file is for the Sandisk Sansa Fuze+
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 72
7 #define MODEL_NAME "Sandisk Sansa Fuze+"
9 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
11 /* define this if you have recording possibility */
12 #define HAVE_RECORDING
14 #define REC_SAMPR_CAPS SAMPR_CAP_ALL
16 /* Default recording levels */
17 #define DEFAULT_REC_MIC_GAIN 23
18 #define DEFAULT_REC_LEFT_GAIN 23
19 #define DEFAULT_REC_RIGHT_GAIN 23
21 /* Define bitmask of input sources - recordable bitmask can be defined
22 explicitly if different */
23 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
25 /* define this if you have a bitmap LCD display */
26 #define HAVE_LCD_BITMAP
27 /* define this if you have a colour LCD */
28 #define HAVE_LCD_COLOR
29 #define HAVE_LCD_FLIP
30 #define HAVE_LCD_INVERT
32 #ifndef BOOTLOADER
33 #define HAVE_ALBUMART
35 /* define this to enable bitmap scaling */
36 #define HAVE_BMP_SCALING
38 /* define this to enable JPEG decoding */
39 #define HAVE_JPEG
41 /* Define this if a programmable hotkey is mapped */
42 #define HAVE_HOTKEY
44 /* define this if you have access to the quickscreen */
45 #define HAVE_QUICKSCREEN
47 /* define this if you would like tagcache to build on this target */
48 #define HAVE_TAGCACHE
50 /* define this if the target has volume keys which can be used in the lists */
51 #define HAVE_VOLUME_IN_LIST
53 /* define this if you have LCD enable function */
54 #define HAVE_LCD_ENABLE
56 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
57 should be defined as well.
58 #define HAVE_LCD_SLEEP
59 #define HAVE_LCD_SLEEP_SETTING
62 /* define this if you can flip your LCD
63 #define HAVE_LCD_FLIP
66 /* define this if you can invert the colours on your LCD
67 #define HAVE_LCD_INVERT
70 /* define this if you have a real-time clock */
71 #define CONFIG_RTC RTC_IMX233
73 /* define this if you have a real-time clock with alarm facilities */
74 #define HAVE_RTC_ALARM
76 #endif /* !BOOTLOADER */
78 /* define this if you have an i.MX23 codec */
79 #define HAVE_IMX233_CODEC
81 #define CONFIG_TUNER SI4700
82 #define HAVE_RDS_CAP
84 /* There is no hardware tone control */
85 #define HAVE_SW_TONE_CONTROLS
87 #define CONFIG_KEYPAD SANSA_FUZEPLUS_PAD
89 /* Define this to enable morse code input */
90 #define HAVE_MORSE_INPUT
92 /* Define this if you do software codec */
93 #define CONFIG_CODEC SWCODEC
95 /* LCD dimensions */
96 #define LCD_WIDTH 240
97 #define LCD_HEIGHT 320
98 #define LCD_DEPTH 16 /* 65536 colours */
99 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
101 /* Define this if you have a software controlled poweroff */
102 #define HAVE_SW_POWEROFF
104 /* Some Sansa Fuzes seem to be FAT16 formatted */
105 #define HAVE_FAT16SUPPORT
107 /* The number of bytes reserved for loadable codecs */
108 #define CODEC_SIZE 0x100000
110 /* The number of bytes reserved for loadable plugins */
111 #define PLUGIN_BUFFER_SIZE 0x80000
113 #define AB_REPEAT_ENABLE
115 /* Define this for LCD backlight available */
116 #define HAVE_BACKLIGHT
117 #define HAVE_BACKLIGHT_BRIGHTNESS
119 /* Main LCD backlight brightness range and defaults */
120 #define MIN_BRIGHTNESS_SETTING 0
121 #define MAX_BRIGHTNESS_SETTING 80
122 #define DEFAULT_BRIGHTNESS_SETTING 40
124 /* Which backlight fading type? */
125 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
127 /* define this if you have a flash memory storage */
128 #define HAVE_FLASH_STORAGE
130 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
131 #define CONFIG_STORAGE (STORAGE_SD | STORAGE_MMC)
132 #define NUM_DRIVES 2
133 #define HAVE_HOTSWAP
135 /* Extra threads: touchpad and rds */
136 #define TARGET_EXTRA_THREADS 2
138 /* todo */
139 #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */
140 #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */
141 #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */
142 #define BATTERY_CAPACITY_INC 0 /* capacity increment */
143 #define BATTERY_TYPES_COUNT 1 /* only one type */
145 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
147 /* Charging implemented in a target-specific algorithm */
148 #define CONFIG_CHARGING CHARGING_TARGET
150 /* define this if the unit can be powered or charged via USB */
151 #define HAVE_USB_POWER
153 /* Define this if you have an IMX233*/
154 #define CONFIG_CPU IMX233
156 /* Define this if you want to use the IMX233 i2c interface */
157 #define CONFIG_I2C I2C_IMX233
159 /* define current usage levels (based on battery bench) */
160 #define CURRENT_NORMAL 35
161 #define CURRENT_BACKLIGHT 30
162 #define CURRENT_RECORD CURRENT_NORMAL
164 /* maximum charging current */
165 #define CURRENT_MAX_CHG 200
167 /* Define this to the CPU frequency */
168 #define CPU_FREQ 454000000
170 /* Type of LCD */
171 #define CONFIG_LCD LCD_FUZEPLUS
173 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
174 only used when loading the old format rockbox.e200 file */
175 #define FIRMWARE_OFFSET_FILE_CRC 0x0
176 #define FIRMWARE_OFFSET_FILE_DATA 0x8
178 /* USB On-the-go */
179 #define CONFIG_USBOTG USBOTG_ARC
181 /* enable these for the experimental usb stack */
182 #define HAVE_USBSTACK
183 //#define USB_HANDLED_BY_OF
184 #define USE_ROCKBOX_USB
185 #define USB_VENDOR_ID 0x0781
186 #define USB_PRODUCT_ID 0x74e1
187 #define HAVE_USB_HID_MOUSE
188 #define HAVE_BOOTLOADER_USB_MODE
190 /* The fuze+ actually interesting partition table does not use 512-byte sector
191 * (usually 2048 logical sector size) */
192 #define MAX_LOG_SECTOR_SIZE 2048
194 /* Define this if you have adjustable CPU frequency */
195 //#define HAVE_ADJUSTABLE_CPU_FREQ
197 /* Virtual LED (icon) */
198 #define CONFIG_LED LED_VIRTUAL
200 #define BOOTFILE_EXT "sansa"
201 #define BOOTFILE "rockbox." BOOTFILE_EXT
202 #define BOOTDIR "/.rockbox"
204 #define INCLUDE_TIMEOUT_API