Should clear up rest of red. Add a required #define in the config for c200. Fix up...
[kugel-rb.git] / firmware / export / config / tatungtpj1022.h
blobbda08c8a3ef29f480910e59d829132424675376c
1 /*
2 * This config file is for the Tatung Elio TPJ-1022
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 #define MODEL_NAME "Tatung Elio TPJ-1022"
9 /* For Rolo and boot loader */
10 #define MODEL_NUMBER 15
12 /* define this if you use an ATA controller */
13 #define CONFIG_STORAGE STORAGE_ATA
15 /*define this if the ATA controller and method of USB access support LBA48 */
16 #define HAVE_LBA48
18 /* define this if you have recording possibility */
19 /*#define HAVE_RECORDING*/ /* TODO: add support for this */
21 /* define the bitmask of hardware sample rates */
22 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
23 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
25 /* define the bitmask of recording sample rates
26 #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
27 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
29 /* define this if you have a bitmap LCD display */
30 #define HAVE_LCD_BITMAP
32 /* define this if you have a colour LCD */
33 #define HAVE_LCD_COLOR
35 /* define this if you have access to the quickscreen */
36 #define HAVE_QUICKSCREEN
38 /* define this if you have access to the pitchscreen */
39 #define HAVE_PITCHSCREEN
41 /* LCD dimensions */
42 #define LCD_WIDTH 220
43 #define LCD_HEIGHT 176
44 #define LCD_DEPTH 16 /* 65536 colours */
45 #define LCD_PIXELFORMAT RGB565
47 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
49 #define CONFIG_KEYPAD TATUNG_TPJ1022_PAD
51 /* Define this if you do software codec */
52 #define CONFIG_CODEC SWCODEC
54 /* define this if you have a real-time clock */
55 #ifndef BOOTLOADER
56 //#define CONFIG_RTC RTC_E8564
57 #endif
59 /* Define this if you have a software controlled poweroff */
60 #define HAVE_SW_POWEROFF
62 /* The number of bytes reserved for loadable codecs */
63 #define CODEC_SIZE 0x100000
65 /* The number of bytes reserved for loadable plugins */
66 #define PLUGIN_BUFFER_SIZE 0x80000
68 /* Define this if you have the WM8731 audio codec */
69 #define HAVE_WM8731
71 #define AB_REPEAT_ENABLE 1
73 /* define this if you have a disk storage, i.e. something
74 that needs spinups and can cause skips when shaked */
75 #define HAVE_DISK_STORAGE
77 /* Define this for LCD backlight available */
78 #define HAVE_BACKLIGHT
80 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity
81 TODO: check this, probably different
82 for different models too */
83 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
84 #define BATTERY_CAPACITY_MAX 1600 /* max. capacity selectable */
85 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
86 #define BATTERY_TYPES_COUNT 1 /* only one type */
88 /* Hardware controlled charging? FIXME */
89 #define CONFIG_CHARGING CHARGING_SIMPLE
91 /* define this if the unit can be powered or charged via USB */
92 /*#define HAVE_USB_POWER*/
94 /* Define this if you have a PortalPlayer PP5020 */
95 #define CONFIG_CPU PP5020
97 /* Define this if you want to use the PP5020 i2c interface */
98 #define CONFIG_I2C I2C_PP5020
100 /* define this if the hardware can be powered off while charging */
101 /* TODO: should this be set for the H10? */
102 //#define HAVE_POWEROFF_WHILE_CHARGING
104 /* The start address index for ROM builds */
105 #define ROM_START 0x00000000
107 /* Define this to the CPU frequency */
108 /* TODO: this is probably wrong */
109 #define CPU_FREQ 11289600
111 /* Type of LCD */
112 #define CONFIG_LCD LCD_TPJ1022
114 #define DEFAULT_CONTRAST_SETTING 19
116 /* Offset ( in the firmware file's header ) to the file length */
117 #define FIRMWARE_OFFSET_FILE_LENGTH 0
119 /* Offset ( in the firmware file's header ) to the file CRC */
120 #define FIRMWARE_OFFSET_FILE_CRC 0
122 /* Offset ( in the firmware file's header ) to the real data */
123 #define FIRMWARE_OFFSET_FILE_DATA 8
125 /* USB On-the-go */
126 #define CONFIG_USBOTG USBOTG_ARC
128 /* define this if the unit can be powered or charged via USB */
129 #define HAVE_USB_POWER
131 /* enable these for the experimental usb stack ROOLKU */
132 #define HAVE_USBSTACK
133 #define USB_VENDOR_ID 0x07B4
134 #define USB_PRODUCT_ID 0x0280
136 /* Define this if you have adjustable CPU frequency */
137 #define HAVE_ADJUSTABLE_CPU_FREQ
139 #define BOOTFILE_EXT "elio"
140 #define BOOTFILE "rockbox." BOOTFILE_EXT
141 #define BOOTDIR "/.rockbox"
144 /* DMA is used only for reading on PP502x because although reads are ~8x faster
145 * writes appear to be ~25% slower.
147 #define HAVE_ATA_DMA
149 /* Define this if a programmable hotkey is mapped */
150 //#define HAVE_HOTKEY