When setting a cache path also enable the cache implicitly.
[Rockbox.git] / firmware / export / config-h10.h
blobf46eb76b5a7bb2a61f1fa20f785d068f50196b62
1 /*
2 * This config file is for the iriver H10 20Gb
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 13
9 #define MODEL_NAME "iriver H10 20GB"
11 /* define this if you use an ATA controller */
12 #define HAVE_ATA
14 /* define this if you have recording possibility */
15 #define HAVE_RECORDING
16 /* Define bitmask of input sources - recordable bitmask can be defined
17 explicitly if different */
18 #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
20 /* define the bitmask of hardware sample rates */
21 #define HW_SAMPR_CAPS (SAMPR_CAP_44)
23 /* define the bitmask of recording sample rates */
24 #define REC_SAMPR_CAPS (SAMPR_CAP_44)
26 /* define this if you have a bitmap LCD display */
27 #define HAVE_LCD_BITMAP
29 /* define this if you have a colour LCD */
30 #define HAVE_LCD_COLOR
32 /* define this if you want album art for this target */
33 #define HAVE_ALBUMART
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 /* define this if you would like tagcache to build on this target */
42 #define HAVE_TAGCACHE
44 /* LCD dimensions */
45 #define LCD_WIDTH 160
46 #define LCD_HEIGHT 128
47 #define LCD_DEPTH 16 /* 65536 colours */
48 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
50 /* Define this if your LCD can be enabled/disabled */
51 #define HAVE_LCD_ENABLE
53 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
54 * should be defined as well.
55 * We can currently put the lcd to sleep but it won't wake up properly */
56 #define HAVE_LCD_SLEEP
58 /* define this if you can flip your LCD */
59 #define HAVE_LCD_FLIP
61 /* define this if you can invert the colours on your LCD */
62 #define HAVE_LCD_INVERT
64 /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
66 #define CONFIG_KEYPAD IRIVER_H10_PAD
68 /* Define this if you do software codec */
69 #define CONFIG_CODEC SWCODEC
71 /* define this if you have a real-time clock */
72 #ifndef BOOTLOADER
73 #define CONFIG_RTC RTC_E8564
74 #define HAVE_RTC_ALARM
75 #endif
77 /* Define this if you have a software controlled poweroff */
78 #define HAVE_SW_POWEROFF
80 /* The number of bytes reserved for loadable codecs */
81 #define CODEC_SIZE 0x80000
83 /* The number of bytes reserved for loadable plugins */
84 #define PLUGIN_BUFFER_SIZE 0x80000
86 /* Define this if you have the WM8731 audio codec */
87 #define HAVE_WM8731
89 /* WM8731 has no tone controls, so we use the software ones */
90 #define HAVE_SW_TONE_CONTROLS
92 #define AB_REPEAT_ENABLE 1
94 /* FM Tuner */
95 #define CONFIG_TUNER TEA5767
96 #define CONFIG_TUNER_XTAL 32768
98 /* Define this for LCD backlight available */
99 #define HAVE_BACKLIGHT
101 #define AB_REPEAT_ENABLE 1
103 #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
104 #define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
105 #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
106 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
107 #define BATTERY_TYPES_COUNT 1 /* only one type */
109 /* Hardware controlled charging */
110 #define CONFIG_CHARGING CHARGING_SIMPLE
112 /* define this if the unit can be powered or charged via USB */
113 #define HAVE_USB_POWER
115 #ifndef SIMULATOR
117 /* Define this if you have a PortalPlayer PP5020 */
118 #define CONFIG_CPU PP5020
120 /* Define this if you want to use the PP5020 i2c interface */
121 #define CONFIG_I2C I2C_PP5020
123 /* define this if the hardware can be powered off while charging */
124 #define HAVE_POWEROFF_WHILE_CHARGING
126 /* The start address index for ROM builds */
127 #define ROM_START 0x00000000
129 /* The size of the flash ROM */
130 #define FLASH_SIZE 0x100000
132 /* Define this to the CPU frequency */
133 #define CPU_FREQ 75000000
135 /* Type of LCD */
136 #define CONFIG_LCD LCD_H10_20GB
138 /* Define this if your LCD can set contrast */
139 #define HAVE_LCD_CONTRAST
141 #define MIN_CONTRAST_SETTING 0
142 #define MAX_CONTRAST_SETTING 30
143 #define DEFAULT_CONTRAST_SETTING 14 /* Match boot contrast */
145 /* We're able to shut off power to the HDD */
146 #define HAVE_ATA_POWER_OFF
148 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
149 only used when loading the old format rockbox.h10 file */
150 #define FIRMWARE_OFFSET_FILE_CRC 0x0
151 #define FIRMWARE_OFFSET_FILE_DATA 0x8
153 /* #define USB_IPODSTYLE */
155 /* USB On-the-go */
156 #define CONFIG_USBOTG USBOTG_ARC
158 /* enable these for the experimental usb stack */
159 #define HAVE_USBSTACK
160 #define USB_VENDOR_ID 0x0B70
161 #define USB_PRODUCT_ID 0x00BA
163 /* Virtual LED (icon) */
164 #define CONFIG_LED LED_VIRTUAL
166 /* Define this if you have adjustable CPU frequency */
167 #define HAVE_ADJUSTABLE_CPU_FREQ
169 #define MI4_FORMAT
170 #define BOOTFILE_EXT "mi4"
171 #define BOOTFILE "rockbox." BOOTFILE_EXT
172 #define OLD_BOOTFILE "rockbox.h10"
173 #define BOOTDIR "/.rockbox"
175 #define ICODE_ATTR_TREMOR_NOT_MDCT
177 #endif