merge 19488 back from the 3.1 branch
[kugel-rb.git] / firmware / export / config-m200v4.h
blobec264d0fe1f0477f88662e17f29fd6cd262f0670
1 /*
2 * This config file is for the Sansa M200 V4 series
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 42
9 #define MODEL_NAME "Sandisk Sansa m200 v4 series"
11 /* Enable FAT16 support */
12 #define HAVE_FAT16SUPPORT
14 #if 0 /* disabled since there is no driver (yet) */
16 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
18 /* define this if you have recording possibility */
19 #define HAVE_RECORDING
21 #define REC_SAMPR_CAPS (SAMPR_CAP_22)
22 #define REC_FREQ_DEFAULT REC_FREQ_22 /* Default is not 44.1kHz */
23 #define REC_SAMPR_DEFAULT SAMPR_22
25 /* Define bitmask of input sources - recordable bitmask can be defined
26 explicitly if different */
27 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
29 #endif
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 /* define this to indicate your device's keypad */
62 #define CONFIG_KEYPAD SANSA_M200_PAD
64 /* define this if you have a real-time clock */
65 #ifndef BOOTLOADER
66 #define CONFIG_RTC RTC_AS3514
67 #endif
69 /* define this if you have RTC RAM available for settings */
70 //#define HAVE_RTC_RAM
72 /* Define this if you have a software controlled poweroff */
73 #define HAVE_SW_POWEROFF
75 /* The number of bytes reserved for loadable codecs */
76 #define CODEC_SIZE 0x48000 /* in IRAM */
78 /* The number of bytes reserved for loadable plugins */
79 #define PLUGIN_BUFFER_SIZE 0x60000
81 #define AB_REPEAT_ENABLE 1
83 /* Define this if you do software codec */
84 #define CONFIG_CODEC SWCODEC
86 /* Define this if you have the TLV320 audio codec */
87 /*#define HAVE_TLV320*/
89 /* TLV320 has no tone controls, so we use the software ones */
90 #define HAVE_SW_TONE_CONTROLS
92 /* We're working on the assumption that the AS3525 has something
93 similar to the AS3514 for audio codec etc */
94 #define HAVE_AS3514
96 /* Define this for LCD backlight available */
97 #define HAVE_BACKLIGHT
99 #define CONFIG_I2C I2C_AS3525
101 #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */
102 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
103 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
104 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
105 #define BATTERY_TYPES_COUNT 1 /* only one type */
107 /* define this if the unit should not shut down on low battery. */
108 #define NO_LOW_BATTERY_SHUTDOWN
110 #ifndef SIMULATOR
112 /* Define this if you have an AMS AS3525 */
113 #define CONFIG_CPU AS3525
115 /* Define this if you want to use the AS3525 i2c interface */
116 #define CONFIG_I2C I2C_AS3525
118 /* Define this to the CPU frequency */
119 #define CPU_FREQ 250000000
121 /* Define this if you have adjustable CPU frequency */
122 #define HAVE_ADJUSTABLE_CPU_FREQ
124 /* Offset ( in the firmware file's header ) to the file CRC */
125 #define FIRMWARE_OFFSET_FILE_CRC 0
127 /* Offset ( in the firmware file's header ) to the real data */
128 #define FIRMWARE_OFFSET_FILE_DATA 8
130 /* Software controlled LED */
131 #define CONFIG_LED LED_VIRTUAL
133 #define CONFIG_LCD LCD_SSD1815
135 #define BOOTFILE_EXT "sansa"
136 #define BOOTFILE "rockbox." BOOTFILE_EXT
137 #define BOOTDIR "/.rockbox"
139 #define IBSS_ATTR_VOICE_STACK
140 #define ICODE_ATTR_TREMOR_NOT_MDCT
141 #define ICODE_ATTR_TREMOR_MDCT
142 #define ICODE_ATTR_FLAC
143 #define IBSS_ATTR_FLAC_DECODED0
144 #define ICONST_ATTR_MPA_HUFFMAN
145 #define IBSS_ATTR_MPC_SAMPLE_BUF
146 #define ICODE_ATTR_ALAC
147 #define IBSS_ATTR_SHORTEN_DECODED0
149 #endif /* SIMULATOR */