diff options
Diffstat (limited to 'firmware/export/config/ihifi760.h')
-rw-r--r-- | firmware/export/config/ihifi760.h | 187 |
1 files changed, 187 insertions, 0 deletions
diff --git a/firmware/export/config/ihifi760.h b/firmware/export/config/ihifi760.h new file mode 100644 index 0000000000..ea84a4a891 --- /dev/null +++ b/firmware/export/config/ihifi760.h | |||
@@ -0,0 +1,187 @@ | |||
1 | /* | ||
2 | * This config file is for IHIFI 760 | ||
3 | */ | ||
4 | |||
5 | /* For Rolo and boot loader */ | ||
6 | #define MODEL_NUMBER 92 | ||
7 | |||
8 | #define MODEL_NAME "IHIFI 760" | ||
9 | |||
10 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
11 | explicitly if different */ | ||
12 | /* #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FM) */ | ||
13 | |||
14 | /* define the bitmask of hardware sample rates */ | ||
15 | #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_48 | SAMPR_CAP_44 | \ | ||
16 | SAMPR_CAP_32 | SAMPR_CAP_24 | SAMPR_CAP_22 | \ | ||
17 | SAMPR_CAP_16 | SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8) | ||
18 | |||
19 | #define HAVE_DUMMY_CODEC | ||
20 | #define CODEC_SLAVE | ||
21 | /* define this if you have a bitmap LCD display */ | ||
22 | #define HAVE_LCD_BITMAP | ||
23 | |||
24 | /* define this if you can flip your LCD */ | ||
25 | /* #define HAVE_LCD_FLIP */ | ||
26 | |||
27 | /* define this if you have a colour LCD */ | ||
28 | #define HAVE_LCD_COLOR | ||
29 | |||
30 | /* define this if you want album art for this target */ | ||
31 | #define HAVE_ALBUMART | ||
32 | |||
33 | /* define this to enable bitmap scaling */ | ||
34 | #define HAVE_BMP_SCALING | ||
35 | |||
36 | /* define this to enable JPEG decoding */ | ||
37 | #define HAVE_JPEG | ||
38 | |||
39 | /* define this if you can invert the colours on your LCD */ | ||
40 | /* #define HAVE_LCD_INVERT */ | ||
41 | |||
42 | /* define this if you have access to the quickscreen */ | ||
43 | #define HAVE_QUICKSCREEN | ||
44 | |||
45 | /* define this if you would like tagcache to build on this target */ | ||
46 | #define HAVE_TAGCACHE | ||
47 | |||
48 | /* define this if you have a flash memory storage */ | ||
49 | #define HAVE_FLASH_STORAGE | ||
50 | |||
51 | #define CONFIG_STORAGE (STORAGE_SD | STORAGE_NAND) | ||
52 | |||
53 | #define CONFIG_NAND NAND_RK27XX | ||
54 | #define HAVE_SW_TONE_CONTROLS | ||
55 | |||
56 | #define HAVE_SW_VOLUME_CONTROL | ||
57 | |||
58 | /* commented for now */ | ||
59 | /* #define HAVE_HOTSWAP */ | ||
60 | |||
61 | #define NUM_DRIVES 1 | ||
62 | #define SECTOR_SIZE 512 | ||
63 | |||
64 | /* for small(ish) SD cards */ | ||
65 | #define HAVE_FAT16SUPPORT | ||
66 | |||
67 | /* LCD dimensions */ | ||
68 | #define LCD_WIDTH 320 | ||
69 | #define LCD_HEIGHT 240 | ||
70 | #define LCD_DEPTH 16 /* pseudo 262.144 colors */ | ||
71 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
72 | |||
73 | /* Define this if the LCD can shut down */ | ||
74 | /* #define HAVE_LCD_SHUTDOWN */ | ||
75 | |||
76 | /* Define this if your LCD can be enabled/disabled */ | ||
77 | #define HAVE_LCD_ENABLE | ||
78 | |||
79 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
80 | should be defined as well. */ | ||
81 | #ifndef BOOTLOADER | ||
82 | /* TODO: #define HAVE_LCD_SLEEP */ | ||
83 | /* TODO: #define HAVE_LCD_SLEEP_SETTING */ | ||
84 | #endif | ||
85 | |||
86 | #define CONFIG_KEYPAD IHIFI_PAD | ||
87 | |||
88 | /* Define this to enable morse code input */ | ||
89 | #define HAVE_MORSE_INPUT | ||
90 | |||
91 | /* Define this if you do software codec */ | ||
92 | #define CONFIG_CODEC SWCODEC | ||
93 | |||
94 | /* define this if you have a real-time clock */ | ||
95 | /* #define CONFIG_RTC RTC_NANO2G */ | ||
96 | |||
97 | /* Define if the device can wake from an RTC alarm */ | ||
98 | /* #define HAVE_RTC_ALARM */ | ||
99 | |||
100 | #define CONFIG_LCD LCD_IHIFI | ||
101 | |||
102 | /* Define the type of audio codec */ | ||
103 | /*#define HAVE_RK27XX_CODEC */ | ||
104 | |||
105 | /* #define HAVE_PCM_DMA_ADDRESS */ | ||
106 | |||
107 | /* Define this for LCD backlight available */ | ||
108 | #define HAVE_BACKLIGHT | ||
109 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
110 | #define MIN_BRIGHTNESS_SETTING 0 | ||
111 | #define MAX_BRIGHTNESS_SETTING 31 | ||
112 | #define DEFAULT_BRIGHTNESS_SETTING 20 | ||
113 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG | ||
114 | |||
115 | /* Define this if you have a software controlled poweroff */ | ||
116 | #define HAVE_SW_POWEROFF | ||
117 | |||
118 | /* The number of bytes reserved for loadable codecs */ | ||
119 | #define CODEC_SIZE 0x100000 | ||
120 | |||
121 | /* The number of bytes reserved for loadable plugins */ | ||
122 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
123 | |||
124 | /* TODO: Figure out real values */ | ||
125 | #define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity */ | ||
126 | #define BATTERY_CAPACITY_MIN 300 /* min. capacity selectable */ | ||
127 | #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */ | ||
128 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | ||
129 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
130 | |||
131 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | ||
132 | |||
133 | /* Hardware controlled charging with monitoring */ | ||
134 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
135 | |||
136 | /* define current usage levels */ | ||
137 | /* TODO: #define CURRENT_NORMAL | ||
138 | * TODO: #define CURRENT_BACKLIGHT 23 | ||
139 | */ | ||
140 | |||
141 | /* define this if the unit can be powered or charged via USB */ | ||
142 | #define HAVE_USB_POWER | ||
143 | |||
144 | /* USB On-the-go */ | ||
145 | #define CONFIG_USBOTG USBOTG_RK27XX | ||
146 | |||
147 | /* enable these for the experimental usb stack */ | ||
148 | #define HAVE_USBSTACK | ||
149 | |||
150 | #define USE_ROCKBOX_USB | ||
151 | #define USB_VENDOR_ID 0x071b | ||
152 | #define USB_PRODUCT_ID 0x3202 | ||
153 | #define HAVE_BOOTLOADER_USB_MODE | ||
154 | |||
155 | /* Define this if your LCD can set contrast */ | ||
156 | /* #define HAVE_LCD_CONTRAST */ | ||
157 | |||
158 | /* The exact type of CPU */ | ||
159 | #define CONFIG_CPU RK27XX | ||
160 | |||
161 | /* I2C interface */ | ||
162 | #define CONFIG_I2C I2C_RK27XX | ||
163 | |||
164 | /* Define this to the CPU frequency */ | ||
165 | #define CPU_FREQ 200000000 | ||
166 | |||
167 | /* define this if the hardware can be powered off while charging */ | ||
168 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ | ||
169 | |||
170 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
171 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
172 | |||
173 | /* Offset ( in the firmware file's header ) to the real data */ | ||
174 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
175 | |||
176 | #define STORAGE_NEEDS_ALIGN | ||
177 | |||
178 | /* Define this if you have adjustable CPU frequency */ | ||
179 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
180 | |||
181 | /* Virtual LED (icon) */ | ||
182 | #define CONFIG_LED LED_VIRTUAL | ||
183 | |||
184 | #define RKW_FORMAT | ||
185 | #define BOOTFILE_EXT "rkw" | ||
186 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
187 | #define BOOTDIR "/.rockbox" | ||