TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / sansam200v4.h
blob2db3d84452fb1b1faa0ed62425354b694612f5e3
1 /*
2 * This config file is for the Sansa M200 V4 series
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 42
8 #define MODEL_NAME "Sandisk Sansa m200 v4 series"
10 /* Enable FAT16 support */
11 #define HAVE_FAT16SUPPORT
13 #define HW_SAMPR_CAPS SAMPR_CAP_ALL
15 /* define this if you have recording possibility */
16 #define HAVE_RECORDING
18 #define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
19 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
20 SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
22 /* because the samplerates don't match at each point, we must be able to
23 * tell PCM which set of rates to use. not needed if recording rates are
24 * a simple subset of playback rates and are equal values. */
25 #define CONFIG_SAMPR_TYPES
27 /* Define bitmask of input sources - recordable bitmask can be defined
28 explicitly if different */
29 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
31 /* define this if you have a bitmap LCD display */
32 #define HAVE_LCD_BITMAP
34 /* define this if you can flip your LCD */
35 #define HAVE_LCD_FLIP
37 /* define this if you can invert the colours on your LCD */
38 #define HAVE_LCD_INVERT
40 /* define this if you have access to the quickscreen */
41 //#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 you have a flash memory storage */
49 #define HAVE_FLASH_STORAGE
51 /* define this if the flash memory uses the SecureDigital Memory Card protocol */
52 #define CONFIG_STORAGE STORAGE_SD
54 /* LCD dimensions */
55 #define LCD_WIDTH 128
56 #define LCD_HEIGHT 64
57 #define LCD_DEPTH 1
59 #define LCD_PIXELFORMAT VERTICAL_PACKING
61 /* Display colours, for screenshots and sim (0xRRGGBB) */
62 #define LCD_DARKCOLOR 0x000000
63 #define LCD_BRIGHTCOLOR 0x5e6854
64 #define LCD_BL_DARKCOLOR 0x000000
65 #define LCD_BL_BRIGHTCOLOR 0x3ca0e6
67 /* define this to indicate your device's keypad */
68 #define CONFIG_KEYPAD SANSA_M200_PAD
70 /* Define this to enable morse code input */
71 #define HAVE_MORSE_INPUT
73 /* define this if you have a real-time clock */
74 #ifndef BOOTLOADER
75 #define CONFIG_RTC RTC_AS3514
76 #endif
78 /* define this if you have RTC RAM available for settings */
79 //#define HAVE_RTC_RAM
81 /* Define this if you have a software controlled poweroff */
82 #define HAVE_SW_POWEROFF
84 /* The number of bytes reserved for loadable codecs */
85 #define CODEC_SIZE 0x48000 /* in IRAM */
87 /* The number of bytes reserved for loadable plugins */
88 #define PLUGIN_BUFFER_SIZE 0x10000
90 #define AB_REPEAT_ENABLE
92 #define CONFIG_TUNER TEA5767
93 #define CONFIG_TUNER_XTAL 32768
95 /* Define this if you do software codec */
96 #define CONFIG_CODEC SWCODEC
98 /* Define this if you have the TLV320 audio codec */
99 /*#define HAVE_TLV320*/
101 /* TLV320 has no tone controls, so we use the software ones */
102 #define HAVE_SW_TONE_CONTROLS
104 /* We're working on the assumption that the AS3525 has something
105 similar to the AS3514 for audio codec etc */
106 #define HAVE_AS3514
108 /* Define this for LCD backlight available */
109 #define HAVE_BACKLIGHT
111 /* Define how much SD sectors are reserved for OF */
112 #define AMS_OF_SIZE 0x5000
114 #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
115 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
116 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
117 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
118 #define BATTERY_TYPES_COUNT 1 /* only one type */
120 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
122 /* define this if the unit should not shut down on low battery. */
123 #define NO_LOW_BATTERY_SHUTDOWN
125 /* Define this if you have an AMS AS3525 */
126 #define CONFIG_CPU AS3525
128 /* Define this if you want to use the AS3525 i2c interface */
129 #define CONFIG_I2C I2C_AS3525
131 /* Define this to the CPU frequency */
132 #define CPU_FREQ 248000000
134 /* Define this if you have adjustable CPU frequency */
135 #define HAVE_ADJUSTABLE_CPU_FREQ
137 /* Offset ( in the firmware file's header ) to the file CRC */
138 #define FIRMWARE_OFFSET_FILE_CRC 0
140 /* Offset ( in the firmware file's header ) to the real data */
141 #define FIRMWARE_OFFSET_FILE_DATA 8
143 #define CONFIG_USBOTG USBOTG_AS3525
145 /* enable these for the experimental usb stack */
146 #define HAVE_USBSTACK
147 //#define USB_HANDLED_BY_OF
148 #define USE_ROCKBOX_USB
149 #define USB_VENDOR_ID 0x0781
150 #define USB_PRODUCT_ID 0x7431
151 #define HAVE_USB_HID_MOUSE
153 #define CONFIG_LCD LCD_SSD1815
155 #define BOOTFILE_EXT "sansa"
156 #define BOOTFILE "rockbox." BOOTFILE_EXT
157 #define BOOTDIR "/.rockbox"
159 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
161 /* Define this if a programmable hotkey is mapped */
162 #define HAVE_HOTKEY