When setting a cache path also enable the cache implicitly.
[Rockbox.git] / firmware / export / config-h10_5gb.h
blobe7c77e4f4d8855a9a264157cda1d4251ea58a325
1 /*
2 * This config file is for the iriver H10 5/6Gb model
3 */
5 #define TARGET_TREE /* this target is using the target tree system */
7 /* For Rolo and boot loader */
8 #define MODEL_NUMBER 14
9 #define MODEL_NAME "iriver H10 5/6GB"
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 128
46 #define LCD_HEIGHT 128
47 #define LCD_DEPTH 16 /* 65536 colours */
48 #define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 byte-swapped */
50 /*#define IRAM_LCDFRAMEBUFFER IDATA_ATTR*//* put the lcd frame buffer in IRAM */
52 #define CONFIG_KEYPAD IRIVER_H10_PAD
54 /* Define this if you do software codec */
55 #define CONFIG_CODEC SWCODEC
57 /* define this if you have a real-time clock */
58 #ifndef BOOTLOADER
59 #define CONFIG_RTC RTC_E8564
60 #define HAVE_RTC_ALARM
61 #endif
63 /* Define this if you have a software controlled poweroff */
64 #define HAVE_SW_POWEROFF
66 /* The number of bytes reserved for loadable codecs */
67 #define CODEC_SIZE 0x80000
69 /* The number of bytes reserved for loadable plugins */
70 #define PLUGIN_BUFFER_SIZE 0x80000
72 /* Define this if you have the WM8731 audio codec */
73 #define HAVE_WM8731
75 /* WM8731 has no tone controls, so we use the software ones */
76 #define HAVE_SW_TONE_CONTROLS
78 #define AB_REPEAT_ENABLE 1
80 /* FM Tuner */
81 #define CONFIG_TUNER TEA5767
82 #define CONFIG_TUNER_XTAL 32768
84 /* Define this for LCD backlight available */
85 #define HAVE_BACKLIGHT
87 #define AB_REPEAT_ENABLE 1
89 #define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */
90 #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */
91 #define BATTERY_CAPACITY_MAX 900 /* max. capacity selectable */
92 #define BATTERY_CAPACITY_INC 10 /* capacity increment */
93 #define BATTERY_TYPES_COUNT 1 /* only one type */
95 /* Hardware controlled charging */
96 #define CONFIG_CHARGING CHARGING_SIMPLE
98 /* define this if the unit can be powered or charged via USB */
99 #define HAVE_USB_POWER
101 #ifndef SIMULATOR
103 /* Define this if you have a PortalPlayer PP5020 */
104 #define CONFIG_CPU PP5020
106 /* Define this if you want to use the PP5020 i2c interface */
107 #define CONFIG_I2C I2C_PP5020
109 /* define this if the hardware can be powered off while charging */
110 #define HAVE_POWEROFF_WHILE_CHARGING
112 /* The start address index for ROM builds */
113 #define ROM_START 0x00000000
115 /* The size of the flash ROM */
116 #define FLASH_SIZE 0x100000
118 /* Define this to the CPU frequency */
119 /* TODO: this is probably wrong */
120 #define CPU_FREQ 75000000
122 /* Type of LCD */
123 #define CONFIG_LCD LCD_H10_5GB
125 /* We're able to shut off power to the HDD */
126 #define HAVE_ATA_POWER_OFF
128 /* Offset ( in the firmware file's header ) to the file length */
129 #define FIRMWARE_OFFSET_FILE_LENGTH 0x8
131 /* Offset ( in the firmware file's header ) to the file CRC and data. These are
132 only used when loading the old format rockbox.h10 file */
133 #define FIRMWARE_OFFSET_FILE_CRC 0x0
134 #define FIRMWARE_OFFSET_FILE_DATA 0x8
136 /* #define USB_IPODSTYLE */
138 /* USB On-the-go */
139 #define CONFIG_USBOTG USBOTG_ARC
141 /* enable these for the experimental usb stack */
142 #define HAVE_USBSTACK
143 #define USB_VENDOR_ID 0x0B70
144 #define USB_PRODUCT_ID 0x00BA
146 /* Virtual LED (icon) */
147 #define CONFIG_LED LED_VIRTUAL
149 /* Define this if you have adjustable CPU frequency */
150 #define HAVE_ADJUSTABLE_CPU_FREQ
152 #define MI4_FORMAT
153 #define BOOTFILE_EXT "mi4"
154 #define BOOTFILE "rockbox." BOOTFILE_EXT
155 #define OLD_BOOTFILE "rockbox.h10"
156 #define BOOTDIR "/.rockbox"
158 #define ICODE_ATTR_TREMOR_NOT_MDCT
160 #endif