FS#11081 - Hotkey patch. Many targets supported, but some keymaps need work before...
[kugel-rb.git] / firmware / export / config / iaudio7.h
blob6698e13931813c95d79ce1062fe7b7c1cbfda260
1 /*
2 * This config file is for the Iaudio7 series
3 */
4 #define TARGET_TREE /* this target is using the target tree system */
6 /* For Rolo and boot loader */
7 #define MODEL_NUMBER 32
8 #define MODEL_NAME "Cowon iAudio7"
10 /* define this if you have recording possibility */
11 #define HAVE_RECORDING
13 /* Define bitmask of input sources - recordable bitmask can be defined
14 explicitly if different */
15 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
17 /* FM Tuner */
18 #define CONFIG_TUNER LV24020LP
19 #define HAVE_TUNER_PWR_CTRL
21 /* Define this for FM radio input available */
22 #define HAVE_FMRADIO_IN
24 /* define hardware samples rate caps mask */
25 #define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
27 /* define the bitmask of recording sample rates */
28 #define REC_SAMPR_CAPS (SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
30 /* define this if you have a bitmap LCD display */
31 #define HAVE_LCD_BITMAP
33 /* define this if you have a colour LCD */
34 #define HAVE_LCD_COLOR
36 /* define this if you can flip your LCD */
37 //#define HAVE_LCD_FLIP
39 /* define this if you can invert the colours on your LCD */
40 //#define HAVE_LCD_INVERT
42 /* define this if you want album art for this target */
43 #define HAVE_ALBUMART
45 /* define this to enable bitmap scaling */
46 #define HAVE_BMP_SCALING
48 /* define this to enable JPEG decoding */
49 #define HAVE_JPEG
51 /* define this if you have access to the quickscreen */
52 #define HAVE_QUICKSCREEN
54 /* define this if you have access to the pitchscreen */
55 #define HAVE_PITCHSCREEN
57 /* define this if you have LCD enable function */
58 #define HAVE_LCD_ENABLE
60 /* define this if you would like tagcache to build on this target */
61 #define HAVE_TAGCACHE
63 #define HAVE_FAT16SUPPORT
65 #if 0 && !defined(SIMULATOR) /* Enable for USB driver test */
66 #define HAVE_USBSTACK
67 #define USB_VENDOR_ID 0x0e21
68 #define USB_PRODUCT_ID 0x0750
69 #endif
71 /* define this if you have a flash memory storage */
72 #define HAVE_FLASH_STORAGE
74 #define CONFIG_STORAGE STORAGE_NAND
76 #define CONFIG_NAND NAND_TCC
78 /* LCD dimensions */
79 #define LCD_WIDTH 160
80 #define LCD_HEIGHT 128
81 /* 16bits for now... */
82 #define LCD_DEPTH 16 /* 262144 colours */
83 #define LCD_PIXELFORMAT RGB565 /*rgb565*/
85 /*#define LCD_PIXELFORMAT VERTICAL_PACKING*/
87 /* define this to indicate your device's keypad */
88 #define CONFIG_KEYPAD IAUDIO67_PAD
90 /* #define HAVE_BUTTON_DATA */
92 /* define this if you have a real-time clock */
93 #define CONFIG_RTC RTC_PCF50606
95 /* define this if you have RTC RAM available for settings */
96 //#define HAVE_RTC_RAM
98 /* Define this if you have a software controlled poweroff */
99 #define HAVE_SW_POWEROFF
101 /* Reduce Tremor's ICODE usage */
102 #define ICODE_ATTR_TREMOR_NOT_MDCT
104 /* The number of bytes reserved for loadable codecs */
105 #define CODEC_SIZE 0x100000
107 /* The number of bytes reserved for loadable plugins */
108 #define PLUGIN_BUFFER_SIZE 0x80000
110 #define AB_REPEAT_ENABLE 1
112 /* Define this if you do software codec */
113 #define CONFIG_CODEC SWCODEC
115 /* The iaudio7 uses built-in WM8731 codec */
116 #define HAVE_WM8731
117 /* Codec is slave on serial bus */
118 #define CODEC_SLAVE
120 /* WM8731 has no tone controls, so we use the software ones */
121 #define HAVE_SW_TONE_CONTROLS
123 /* Define this for LCD backlight available */
124 #define HAVE_BACKLIGHT
126 #define CONFIG_I2C I2C_TCC77X
128 #define BATTERY_CAPACITY_DEFAULT 540 /* default battery capacity */
129 #define BATTERY_CAPACITY_MIN 540 /* min. capacity selectable */
130 #define BATTERY_CAPACITY_MAX 540 /* max. capacity selectable */
131 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
132 #define BATTERY_TYPES_COUNT 1 /* only one type */
134 #define CONFIG_CHARGING CHARGING_SIMPLE
136 /* Define this if you have a TCC770 */
137 #define CONFIG_CPU TCC770
139 /* Define this if you have ATA power-off control */
140 #define HAVE_ATA_POWER_OFF
142 /* Define this to the CPU frequency */
143 #define CPU_FREQ 120000000
145 /* Offset ( in the firmware file's header ) to the file CRC */
146 #define FIRMWARE_OFFSET_FILE_CRC 0
148 /* Offset ( in the firmware file's header ) to the real data */
149 #define FIRMWARE_OFFSET_FILE_DATA 8
151 #define CONFIG_LCD LCD_IAUDIO67
153 #define BOOTFILE_EXT "iaudio"
154 #define BOOTFILE "rockbox." BOOTFILE_EXT
155 #define BOOTDIR "/.rockbox"
157 #ifdef BOOTLOADER
158 #define TCCBOOT
159 #endif
161 #define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
163 /* Define this if a programmable hotkey is mapped */
164 //#define HAVE_HOTKEY