bulgarian update by Hristo Kovachev
[Rockbox.git] / firmware / export / config-tpj1022.h
blob5a633ecee136618ed54873ed65114dd1d0dfb27a
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 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 15
10 /* define this if you use an ATA controller */
11 #define HAVE_ATA
13 /* define this if you have recording possibility */
14 /*#define HAVE_RECORDING*/ /* TODO: add support for this */
16 /* define this if you have a bitmap LCD display */
17 #define HAVE_LCD_BITMAP
19 /* define this if you have a colour LCD */
20 #define HAVE_LCD_COLOR
22 /* define this if you have access to the quickscreen */
23 #define HAVE_QUICKSCREEN
25 /* define this if you have access to the pitchscreen */
26 #define HAVE_PITCHSCREEN
28 /* LCD dimensions */
29 #define LCD_WIDTH 220
30 #define LCD_HEIGHT 176
31 #define LCD_DEPTH 16 /* 65536 colours */
32 #define LCD_PIXELFORMAT RGB565
34 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
36 #define CONFIG_KEYPAD ELIO_TPJ1022_PAD
38 /* Define this if you do software codec */
39 #define CONFIG_CODEC SWCODEC
41 /* define this if you have a real-time clock */
42 #ifndef BOOTLOADER
43 //#define CONFIG_RTC RTC_E8564
44 #endif
46 /* Define this if you have a software controlled poweroff */
47 #define HAVE_SW_POWEROFF
49 /* The number of bytes reserved for loadable codecs */
50 #define CODEC_SIZE 0x80000
52 /* The number of bytes reserved for loadable plugins */
53 #define PLUGIN_BUFFER_SIZE 0x80000
55 /* Define this if you have the WM8731 audio codec */
56 #define HAVE_WM8731
58 #define AB_REPEAT_ENABLE 1
60 /* Define this for LCD backlight available */
61 #define HAVE_BACKLIGHT
63 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity
64 TODO: check this, probably different
65 for different models too */
66 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
67 #define BATTERY_CAPACITY_MAX 1600 /* max. capacity selectable */
68 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
69 #define BATTERY_TYPES_COUNT 1 /* only one type */
71 /* Hardware controlled charging? FIXME */
72 //#define CONFIG_CHARGING CHARGING_SIMPLE
74 /* define this if the unit can be powered or charged via USB */
75 /*#define HAVE_USB_POWER*/
77 #ifndef SIMULATOR
79 /* Define this if you have a PortalPlayer PP5020 */
80 #define CONFIG_CPU PP5020
82 /* Define this if you want to use the PP5020 i2c interface */
83 #define CONFIG_I2C I2C_PP5020
85 /* define this if the hardware can be powered off while charging */
86 /* TODO: should this be set for the H10? */
87 //#define HAVE_POWEROFF_WHILE_CHARGING
89 /* The start address index for ROM builds */
90 #define ROM_START 0x00000000
92 /* Define this to the CPU frequency */
93 /* TODO: this is probably wrong */
94 #define CPU_FREQ 11289600
96 /* Type of LCD */
97 #define CONFIG_LCD LCD_TPJ1022
99 #define DEFAULT_CONTRAST_SETTING 19
101 /* Offset ( in the firmware file's header ) to the file length */
102 #define FIRMWARE_OFFSET_FILE_LENGTH 0
104 /* Offset ( in the firmware file's header ) to the file CRC */
105 #define FIRMWARE_OFFSET_FILE_CRC 0
107 /* Offset ( in the firmware file's header ) to the real data */
108 #define FIRMWARE_OFFSET_FILE_DATA 8
110 /* #define USB_IPODSTYLE */
112 /* USB On-the-go */
113 #define CONFIG_USBOTG USBOTG_ARC
115 /* Virtual LED (icon) */
116 #define CONFIG_LED LED_VIRTUAL
118 /* Define this if you have adjustable CPU frequency */
119 #define HAVE_ADJUSTABLE_CPU_FREQ
121 #define BOOTFILE_EXT "elio"
122 #define BOOTFILE "rockbox." BOOTFILE_EXT
123 #define BOOTDIR "/.rockbox"
125 #endif