diff options
Diffstat (limited to 'firmware/export/config/sansam200v4.h')
-rw-r--r-- | firmware/export/config/sansam200v4.h | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/firmware/export/config/sansam200v4.h b/firmware/export/config/sansam200v4.h new file mode 100644 index 0000000000..af9f1aedc6 --- /dev/null +++ b/firmware/export/config/sansam200v4.h | |||
@@ -0,0 +1,165 @@ | |||
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 */ | ||
5 | |||
6 | /* For Rolo and boot loader */ | ||
7 | #define MODEL_NUMBER 42 | ||
8 | |||
9 | #define MODEL_NAME "Sandisk Sansa m200 v4 series" | ||
10 | |||
11 | /* Enable FAT16 support */ | ||
12 | #define HAVE_FAT16SUPPORT | ||
13 | |||
14 | #define HW_SAMPR_CAPS SAMPR_CAP_ALL | ||
15 | |||
16 | /* define this if you have recording possibility */ | ||
17 | //#define HAVE_RECORDING | ||
18 | |||
19 | #define REC_SAMPR_CAPS SAMPR_CAP_ALL | ||
20 | |||
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) | ||
24 | |||
25 | /* define this if you have a bitmap LCD display */ | ||
26 | #define HAVE_LCD_BITMAP | ||
27 | |||
28 | /* define this if you can flip your LCD */ | ||
29 | #define HAVE_LCD_FLIP | ||
30 | |||
31 | /* define this if you can invert the colours on your LCD */ | ||
32 | #define HAVE_LCD_INVERT | ||
33 | |||
34 | /* define this if you have access to the quickscreen */ | ||
35 | //#define HAVE_QUICKSCREEN | ||
36 | /* define this if you have access to the pitchscreen */ | ||
37 | #define HAVE_PITCHSCREEN | ||
38 | |||
39 | /* define this if you would like tagcache to build on this target */ | ||
40 | //#define HAVE_TAGCACHE | ||
41 | |||
42 | /* define this if you have a flash memory storage */ | ||
43 | #define HAVE_FLASH_STORAGE | ||
44 | |||
45 | /* define this if the flash memory uses the SecureDigital Memory Card protocol */ | ||
46 | #define CONFIG_STORAGE STORAGE_SD | ||
47 | |||
48 | /* LCD dimensions */ | ||
49 | #define LCD_WIDTH 128 | ||
50 | #define LCD_HEIGHT 64 | ||
51 | #define LCD_DEPTH 1 | ||
52 | |||
53 | #define LCD_PIXELFORMAT VERTICAL_PACKING | ||
54 | |||
55 | /* Display colours, for screenshots and sim (0xRRGGBB) */ | ||
56 | #define LCD_DARKCOLOR 0x000000 | ||
57 | #define LCD_BRIGHTCOLOR 0x5e6854 | ||
58 | #define LCD_BL_DARKCOLOR 0x000000 | ||
59 | #define LCD_BL_BRIGHTCOLOR 0x3ca0e6 | ||
60 | |||
61 | /* define this to indicate your device's keypad */ | ||
62 | #define CONFIG_KEYPAD SANSA_M200_PAD | ||
63 | |||
64 | /* Define this to enable morse code input */ | ||
65 | #define HAVE_MORSE_INPUT | ||
66 | |||
67 | /* define this if you have a real-time clock */ | ||
68 | #ifndef BOOTLOADER | ||
69 | #define CONFIG_RTC RTC_AS3514 | ||
70 | #endif | ||
71 | |||
72 | /* define this if you have RTC RAM available for settings */ | ||
73 | //#define HAVE_RTC_RAM | ||
74 | |||
75 | /* Define this if you have a software controlled poweroff */ | ||
76 | #define HAVE_SW_POWEROFF | ||
77 | |||
78 | /* The number of bytes reserved for loadable codecs */ | ||
79 | #define CODEC_SIZE 0x48000 /* in IRAM */ | ||
80 | |||
81 | /* The number of bytes reserved for loadable plugins */ | ||
82 | #define PLUGIN_BUFFER_SIZE 0x60000 | ||
83 | |||
84 | #define AB_REPEAT_ENABLE 1 | ||
85 | |||
86 | #define CONFIG_TUNER TEA5767 | ||
87 | #define CONFIG_TUNER_XTAL 32768 | ||
88 | |||
89 | /* Define this if you do software codec */ | ||
90 | #define CONFIG_CODEC SWCODEC | ||
91 | |||
92 | /* Define this if you have the TLV320 audio codec */ | ||
93 | /*#define HAVE_TLV320*/ | ||
94 | |||
95 | /* TLV320 has no tone controls, so we use the software ones */ | ||
96 | #define HAVE_SW_TONE_CONTROLS | ||
97 | |||
98 | /* We're working on the assumption that the AS3525 has something | ||
99 | similar to the AS3514 for audio codec etc */ | ||
100 | #define HAVE_AS3514 | ||
101 | |||
102 | /* Define this for LCD backlight available */ | ||
103 | #define HAVE_BACKLIGHT | ||
104 | |||
105 | /* Define how much SD sectors are reserved for OF */ | ||
106 | #define AMS_OF_SIZE 0x5000 | ||
107 | |||
108 | #define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ | ||
109 | #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */ | ||
110 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */ | ||
111 | #define BATTERY_CAPACITY_INC 50 /* capacity increment */ | ||
112 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
113 | |||
114 | /* define this if the unit should not shut down on low battery. */ | ||
115 | #define NO_LOW_BATTERY_SHUTDOWN | ||
116 | |||
117 | /* Define this if you have an AMS AS3525 */ | ||
118 | #define CONFIG_CPU AS3525 | ||
119 | |||
120 | /* Define this if you want to use the AS3525 i2c interface */ | ||
121 | #define CONFIG_I2C I2C_AS3525 | ||
122 | |||
123 | /* Define this to the CPU frequency */ | ||
124 | #define CPU_FREQ 250000000 | ||
125 | |||
126 | /* Define this if you have adjustable CPU frequency */ | ||
127 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
128 | |||
129 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
130 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
131 | |||
132 | /* Offset ( in the firmware file's header ) to the real data */ | ||
133 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
134 | |||
135 | #ifndef BOOTLOADER | ||
136 | |||
137 | #define USB_HANDLED_BY_OF | ||
138 | |||
139 | #define CONFIG_USBOTG USBOTG_AS3525 | ||
140 | |||
141 | /* enable these for the experimental usb stack */ | ||
142 | #define HAVE_USBSTACK | ||
143 | #define USB_VENDOR_ID 0x0781 | ||
144 | #define USB_PRODUCT_ID 0x7431 | ||
145 | |||
146 | #endif /* BOOTLOADER */ | ||
147 | |||
148 | #define CONFIG_LCD LCD_SSD1815 | ||
149 | |||
150 | #define BOOTFILE_EXT "sansa" | ||
151 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
152 | #define BOOTDIR "/.rockbox" | ||
153 | |||
154 | #define IBSS_ATTR_VOICE_STACK | ||
155 | #define ICODE_ATTR_TREMOR_NOT_MDCT | ||
156 | #define ICODE_ATTR_TREMOR_MDCT | ||
157 | #define ICODE_ATTR_FLAC | ||
158 | #define IBSS_ATTR_FLAC_DECODED0 | ||
159 | #define ICONST_ATTR_MPA_HUFFMAN | ||
160 | #define IBSS_ATTR_MPC_SAMPLE_BUF | ||
161 | #define ICODE_ATTR_ALAC | ||
162 | #define IBSS_ATTR_SHORTEN_DECODED0 | ||
163 | |||
164 | #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */ | ||
165 | |||