merge 19488 back from the 3.1 branch
[kugel-rb.git] / firmware / export / config-iaudio7.h
blob89587b552e7f3fb91fbd84b2e7aa66211ccb5ca9
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 if you have access to the quickscreen */
46 #define HAVE_QUICKSCREEN
48 /* define this if you have access to the pitchscreen */
49 #define HAVE_PITCHSCREEN
51 /* define this if you have LCD enable function */
52 #define HAVE_LCD_ENABLE
54 /* define this if you would like tagcache to build on this target */
55 #define HAVE_TAGCACHE
57 #define HAVE_FAT16SUPPORT
59 #if 0 && !defined(SIMULATOR) /* Enable for USB driver test */
60 #define HAVE_USBSTACK
61 #define USB_VENDOR_ID 0x0e21
62 #define USB_PRODUCT_ID 0x0750
64 #define USB_STORAGE
65 #define USB_SERIAL
66 #endif
68 /* define this if you have a flash memory storage */
69 #define HAVE_FLASH_STORAGE
71 #define CONFIG_STORAGE STORAGE_NAND
73 #define CONFIG_NAND NAND_TCC
75 /* LCD dimensions */
76 #define LCD_WIDTH 160
77 #define LCD_HEIGHT 128
78 /* 16bits for now... */
79 #define LCD_DEPTH 16 /* 262144 colours */
80 #define LCD_PIXELFORMAT RGB565 /*rgb565*/
82 /*#define LCD_PIXELFORMAT VERTICAL_PACKING*/
84 /* define this to indicate your device's keypad */
85 #define CONFIG_KEYPAD IAUDIO67_PAD
87 /* #define HAVE_BUTTON_DATA */
89 /* define this if you have a real-time clock */
90 #define CONFIG_RTC RTC_PCF50606
92 /* define this if you have RTC RAM available for settings */
93 //#define HAVE_RTC_RAM
95 /* Define this if you have a software controlled poweroff */
96 #define HAVE_SW_POWEROFF
98 /* Reduce Tremor's ICODE usage */
99 #define ICODE_ATTR_TREMOR_NOT_MDCT
101 /* The number of bytes reserved for loadable codecs */
102 #define CODEC_SIZE 0x100000
104 /* The number of bytes reserved for loadable plugins */
105 #define PLUGIN_BUFFER_SIZE 0x80000
107 #define AB_REPEAT_ENABLE 1
109 /* Define this if you do software codec */
110 #define CONFIG_CODEC SWCODEC
112 /* The iaudio7 uses built-in WM8731 codec */
113 #define HAVE_WM8731
114 /* Codec is slave on serial bus */
115 #define CODEC_SLAVE
117 /* WM8731 has no tone controls, so we use the software ones */
118 #define HAVE_SW_TONE_CONTROLS
120 /* Define this for LCD backlight available */
121 #define HAVE_BACKLIGHT
123 #define CONFIG_I2C I2C_TCC77X
125 #define BATTERY_CAPACITY_DEFAULT 540 /* default battery capacity */
126 #define BATTERY_CAPACITY_MIN 540 /* min. capacity selectable */
127 #define BATTERY_CAPACITY_MAX 540 /* max. capacity selectable */
128 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
129 #define BATTERY_TYPES_COUNT 1 /* only one type */
131 /* define this if the unit should not shut down on low battery. */
132 #define NO_LOW_BATTERY_SHUTDOWN
133 #define CONFIG_CHARGING CHARGING_SIMPLE
135 #ifndef SIMULATOR
137 /* Define this if you have a TCC770 */
138 #define CONFIG_CPU TCC770
140 /* Define this if you have ATA power-off control */
141 #define HAVE_ATA_POWER_OFF
143 /* Define this to the CPU frequency */
144 #define CPU_FREQ 120000000
146 /* Offset ( in the firmware file's header ) to the file CRC */
147 #define FIRMWARE_OFFSET_FILE_CRC 0
149 /* Offset ( in the firmware file's header ) to the real data */
150 #define FIRMWARE_OFFSET_FILE_DATA 8
152 /* Software controlled LED */
153 #define CONFIG_LED LED_VIRTUAL
155 #define CONFIG_LCD LCD_IAUDIO67
157 #define BOOTFILE_EXT "iaudio"
158 #define BOOTFILE "rockbox." BOOTFILE_EXT
159 #define BOOTDIR "/.rockbox"
161 #ifdef BOOTLOADER
162 #define TCCBOOT
163 #endif
164 #endif /* SIMULATOR */