TARGET_TREE is not needed anymore
[maemo-rb.git] / firmware / export / config / sansac100.h
blob960169fab454c34accb9a2e47f169f57b1f0052d
1 /*
2 * This config file is for the Sansa C100 series
3 */
5 #define MODEL_NAME "Sandisk Sansa c100 series"
7 /* For Rolo and bootloader */
8 #define MODEL_NUMBER 30
10 /* define hardware samples rate caps mask */
11 #define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
13 /* define this if you have a bitmap LCD display */
14 #define HAVE_LCD_BITMAP
16 /* define this if you have a colour LCD */
17 #define HAVE_LCD_COLOR
19 /* define this if you can flip your LCD */
20 /*#define HAVE_LCD_FLIP*/
22 /* define this if you can invert the colours on your LCD */
23 /*#define HAVE_LCD_INVERT*/
25 /* define this if you have access to the quickscreen */
26 #define HAVE_QUICKSCREEN
28 /* define this if you have access to the pitchscreen */
29 #define HAVE_PITCHSCREEN
31 /* define this if you would like tagcache to build on this target */
32 #define HAVE_TAGCACHE
34 /* define this if you have a flash memory storage */
35 #define HAVE_FLASH_STORAGE
37 /* Only v1 */
38 #define CONFIG_STORAGE STORAGE_NAND
39 #define CONFIG_NAND NAND_TCC
41 /* c100's with direct-to-NAND access are FAT16 */
42 #define HAVE_FAT16SUPPORT
44 /* LCD dimensions */
45 #define LCD_WIDTH 128
46 #define LCD_HEIGHT 64
47 #define LCD_DEPTH 16 /* 65536 colours */
48 #define LCD_PIXELFORMAT RGB565 /*rgb565*/
50 /*#define LCD_PIXELFORMAT VERTICAL_PACKING*/
52 /* define this to indicate your device's keypad */
53 #define CONFIG_KEYPAD SANSA_C100_PAD
55 /* define this if you have a real-time clock */
56 #define CONFIG_RTC RTC_TCC77X
58 /* define this if you have RTC RAM available for settings */
59 //#define HAVE_RTC_RAM
61 /* Define this if you have a software controlled poweroff */
62 #define HAVE_SW_POWEROFF
64 /* The number of bytes reserved for loadable codecs */
65 #define CODEC_SIZE 0x50000
67 /* The number of bytes reserved for loadable plugins */
68 #define PLUGIN_BUFFER_SIZE 0x50000
70 #define AB_REPEAT_ENABLE
72 /* Define this if you do software codec */
73 #define CONFIG_CODEC SWCODEC
75 /* Define this if you have the TLV320 audio codec */
76 #define HAVE_TLV320
78 /*#define CONFIG_TUNER TEA5767*/
80 /* TLV320 has no tone controls, so we use the software ones */
81 #define HAVE_SW_TONE_CONTROLS
83 /* Define this for LCD backlight available */
84 #define HAVE_BACKLIGHT
86 #define CONFIG_I2C I2C_TCC77X
88 #define BATTERY_CAPACITY_DEFAULT 540 /* default battery capacity */
89 #define BATTERY_CAPACITY_MIN 540 /* min. capacity selectable */
90 #define BATTERY_CAPACITY_MAX 540 /* max. capacity selectable */
91 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
92 #define BATTERY_TYPES_COUNT 1 /* only one type */
94 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
96 /* define this if the unit should not shut down on low battery. */
97 #define NO_LOW_BATTERY_SHUTDOWN
99 /* Define this if you have a TCC770 */
100 #define CONFIG_CPU TCC770
102 /* Define this if you have ATA power-off control */
103 #define HAVE_ATA_POWER_OFF
105 /* Define this to the CPU frequency */
106 #define CPU_FREQ 120000000
108 /* Offset ( in the firmware file's header ) to the file CRC */
109 #define FIRMWARE_OFFSET_FILE_CRC 0
111 /* Offset ( in the firmware file's header ) to the real data */
112 #define FIRMWARE_OFFSET_FILE_DATA 8
114 /* The start address index for ROM builds */
115 /* #define ROM_START 0x11010 for behind original Archos */
116 #define ROM_START 0x7010 /* for behind BootBox */
118 #define CONFIG_LCD LCD_S6B33B2
120 #define BOOTFILE_EXT "c100"
121 #define BOOTFILE "rockbox." BOOTFILE_EXT
122 #define BOOTDIR "/.rockbox"
124 #ifdef BOOTLOADER
125 #define TCCBOOT
126 #endif
128 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
130 /* Define this if a programmable hotkey is mapped */
131 #define HAVE_HOTKEY