Introduce new config header 'config-sim.h' that takes care of undefining things that...
[kugel-rb.git] / firmware / export / config-c100.h
bloba332bf5670ad621e2ca10de515f9097d0c110c58
1 /*
2 * This config file is for the Sansa C100 series
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 #define MODEL_NAME "Sandisk Sansa c100 series"
8 /* For Rolo and bootloader */
9 #define MODEL_NUMBER 30
11 /* define hardware samples rate caps mask */
12 #define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
14 /* define this if you have a bitmap LCD display */
15 #define HAVE_LCD_BITMAP
17 /* define this if you have a colour LCD */
18 #define HAVE_LCD_COLOR
20 /* define this if you can flip your LCD */
21 /*#define HAVE_LCD_FLIP*/
23 /* define this if you can invert the colours on your LCD */
24 /*#define HAVE_LCD_INVERT*/
26 /* define this if you have access to the quickscreen */
27 #define HAVE_QUICKSCREEN
29 /* define this if you have access to the pitchscreen */
30 #define HAVE_PITCHSCREEN
32 /* define this if you would like tagcache to build on this target */
33 #define HAVE_TAGCACHE
35 /* define this if you have a flash memory storage */
36 #define HAVE_FLASH_STORAGE
38 /* Only v1 */
39 #define CONFIG_STORAGE STORAGE_NAND
40 #define CONFIG_NAND NAND_TCC
42 /* c100's with direct-to-NAND access are FAT16 */
43 #define HAVE_FAT16SUPPORT
45 /* LCD dimensions */
46 #define LCD_WIDTH 128
47 #define LCD_HEIGHT 64
48 #define LCD_DEPTH 16 /* 65536 colours */
49 #define LCD_PIXELFORMAT RGB565 /*rgb565*/
51 /*#define LCD_PIXELFORMAT VERTICAL_PACKING*/
53 /* define this to indicate your device's keypad */
54 #define CONFIG_KEYPAD SANSA_C100_PAD
56 /* define this if you have a real-time clock */
57 #define CONFIG_RTC RTC_TCC77X
59 /* define this if you have RTC RAM available for settings */
60 //#define HAVE_RTC_RAM
62 /* Define this if you have a software controlled poweroff */
63 #define HAVE_SW_POWEROFF
65 /* The number of bytes reserved for loadable codecs */
66 #define CODEC_SIZE 0x50000
68 /* The number of bytes reserved for loadable plugins */
69 #define PLUGIN_BUFFER_SIZE 0x50000
71 #define AB_REPEAT_ENABLE 1
73 /* Define this if you do software codec */
74 #define CONFIG_CODEC SWCODEC
76 /* Define this if you have the TLV320 audio codec */
77 #define HAVE_TLV320
79 /*#define CONFIG_TUNER TEA5767*/
81 /* TLV320 has no tone controls, so we use the software ones */
82 #define HAVE_SW_TONE_CONTROLS
84 /* Define this for LCD backlight available */
85 #define HAVE_BACKLIGHT
87 #define CONFIG_I2C I2C_TCC77X
89 #define BATTERY_CAPACITY_DEFAULT 540 /* default battery capacity */
90 #define BATTERY_CAPACITY_MIN 540 /* min. capacity selectable */
91 #define BATTERY_CAPACITY_MAX 540 /* max. capacity selectable */
92 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
93 #define BATTERY_TYPES_COUNT 1 /* only one type */
95 /* define this if the unit should not shut down on low battery. */
96 #define NO_LOW_BATTERY_SHUTDOWN
98 /* Define this if you have a TCC770 */
99 #define CONFIG_CPU TCC770
101 /* Define this if you have ATA power-off control */
102 #define HAVE_ATA_POWER_OFF
104 /* Define this to the CPU frequency */
105 #define CPU_FREQ 120000000
107 /* Offset ( in the firmware file's header ) to the file CRC */
108 #define FIRMWARE_OFFSET_FILE_CRC 0
110 /* Offset ( in the firmware file's header ) to the real data */
111 #define FIRMWARE_OFFSET_FILE_DATA 8
113 /* The start address index for ROM builds */
114 /* #define ROM_START 0x11010 for behind original Archos */
115 #define ROM_START 0x7010 /* for behind BootBox */
117 #define CONFIG_LCD LCD_S6B33B2
119 #define BOOTFILE_EXT "c100"
120 #define BOOTFILE "rockbox." BOOTFILE_EXT
121 #define BOOTDIR "/.rockbox"
123 #ifdef BOOTLOADER
124 #define TCCBOOT
125 #endif
127 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */