diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2018-06-29 16:09:28 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2019-01-02 08:10:01 -0500 |
commit | d4942cc74c82c465ea395637c77ed06565b8b497 (patch) | |
tree | 8c1fa737c93f8a2ade5a1566857dc4dc8f578bd6 /firmware/export/config/ihifi800.h | |
parent | af9459a7992596e932c6d8cc0a6366ff0f0b0fca (diff) | |
download | rockbox-d4942cc74c82c465ea395637c77ed06565b8b497.tar.gz rockbox-d4942cc74c82c465ea395637c77ed06565b8b497.zip |
Add Xuelin iHIFI 770/770C/800 support
Taken from the xvortex fork (Roman Stolyarov)
Ported, rebased, and cleaned up by myself.
Change-Id: I7b2bca2d29502f2e4544e42f3d122786dd4b7978
Diffstat (limited to 'firmware/export/config/ihifi800.h')
-rw-r--r-- | firmware/export/config/ihifi800.h | 198 |
1 files changed, 198 insertions, 0 deletions
diff --git a/firmware/export/config/ihifi800.h b/firmware/export/config/ihifi800.h new file mode 100644 index 0000000000..eb1c2015ad --- /dev/null +++ b/firmware/export/config/ihifi800.h | |||
@@ -0,0 +1,198 @@ | |||
1 | /* | ||
2 | * This config file is for IHIFI 800 | ||
3 | */ | ||
4 | |||
5 | /* For Rolo and boot loader */ | ||
6 | #define MODEL_NUMBER 109 | ||
7 | |||
8 | #define MODEL_NAME "IHIFI 800" | ||
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_ES9018 | ||
20 | #define CODEC_SLAVE | ||
21 | |||
22 | /* define this if you have a bitmap LCD display */ | ||
23 | #define HAVE_LCD_BITMAP | ||
24 | |||
25 | /* define this if you can flip your LCD */ | ||
26 | /* #define HAVE_LCD_FLIP */ | ||
27 | |||
28 | /* define this if you have a colour LCD */ | ||
29 | #define HAVE_LCD_COLOR | ||
30 | |||
31 | /* define this if you want album art for this target */ | ||
32 | #define HAVE_ALBUMART | ||
33 | |||
34 | /* define this to enable bitmap scaling */ | ||
35 | #define HAVE_BMP_SCALING | ||
36 | |||
37 | /* define this to enable JPEG decoding */ | ||
38 | #define HAVE_JPEG | ||
39 | |||
40 | /* define this if you can invert the colours on your LCD */ | ||
41 | /* #define HAVE_LCD_INVERT */ | ||
42 | |||
43 | /* define this if you have access to the quickscreen */ | ||
44 | #define HAVE_QUICKSCREEN | ||
45 | |||
46 | /* define this if you would like tagcache to build on this target */ | ||
47 | #define HAVE_TAGCACHE | ||
48 | |||
49 | /* define this if you have a flash memory storage */ | ||
50 | #define HAVE_FLASH_STORAGE | ||
51 | |||
52 | #define CONFIG_STORAGE (STORAGE_SD | STORAGE_NAND) | ||
53 | |||
54 | #define CONFIG_NAND NAND_RK27XX | ||
55 | #define HAVE_SW_TONE_CONTROLS | ||
56 | |||
57 | #define HAVE_HOTSWAP | ||
58 | |||
59 | #define NUM_DRIVES 1 | ||
60 | #define SECTOR_SIZE 512 | ||
61 | |||
62 | /* for small(ish) SD cards */ | ||
63 | #define HAVE_FAT16SUPPORT | ||
64 | |||
65 | /* LCD dimensions */ | ||
66 | #define LCD_WIDTH 240 | ||
67 | #define LCD_HEIGHT 320 | ||
68 | /* sqrt(240^2 + 320^2) / 2.4 = 166.7 */ | ||
69 | #define LCD_DPI 167 | ||
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_800_PAD | ||
87 | |||
88 | /* define this if the target has volume keys which can be used in the lists */ | ||
89 | #define HAVE_VOLUME_IN_LIST | ||
90 | |||
91 | /* Define this if a programmable hotkey is mapped */ | ||
92 | /* #define HAVE_HOTKEY */ | ||
93 | |||
94 | /* Define this if you do software codec */ | ||
95 | #define CONFIG_CODEC SWCODEC | ||
96 | |||
97 | /* define this if you have a real-time clock */ | ||
98 | /* #define CONFIG_RTC RTC_NANO2G */ | ||
99 | |||
100 | /* Define if the device can wake from an RTC alarm */ | ||
101 | /* #define HAVE_RTC_ALARM */ | ||
102 | |||
103 | /* Define the type of audio codec */ | ||
104 | /*#define HAVE_RK27XX_CODEC */ | ||
105 | |||
106 | /* #define HAVE_PCM_DMA_ADDRESS */ | ||
107 | |||
108 | /* Define this for LCD backlight available */ | ||
109 | #define HAVE_BACKLIGHT | ||
110 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
111 | #define MIN_BRIGHTNESS_SETTING 0 | ||
112 | #define MAX_BRIGHTNESS_SETTING 31 | ||
113 | #define DEFAULT_BRIGHTNESS_SETTING 31 | ||
114 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG | ||
115 | |||
116 | /* Define this if you have a software controlled poweroff */ | ||
117 | #define HAVE_SW_POWEROFF | ||
118 | |||
119 | /* The number of bytes reserved for loadable codecs */ | ||
120 | #define CODEC_SIZE 0x100000 | ||
121 | |||
122 | /* The number of bytes reserved for loadable plugins */ | ||
123 | #define PLUGIN_BUFFER_SIZE 0x80000 | ||
124 | |||
125 | /* TODO: Figure out real values */ | ||
126 | #define BATTERY_CAPACITY_DEFAULT 1400 /* default battery capacity */ | ||
127 | #define BATTERY_CAPACITY_MIN 700 /* min. capacity selectable */ | ||
128 | #define BATTERY_CAPACITY_MAX 1400 /* max. capacity selectable */ | ||
129 | #define BATTERY_CAPACITY_INC 10 /* capacity increment */ | ||
130 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
131 | |||
132 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | ||
133 | |||
134 | /* Hardware controlled charging with monitoring */ | ||
135 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
136 | |||
137 | /* define current usage levels */ | ||
138 | /* TODO: #define CURRENT_NORMAL | ||
139 | * TODO: #define CURRENT_BACKLIGHT 23 | ||
140 | */ | ||
141 | |||
142 | /* define this if the unit can be powered or charged via USB */ | ||
143 | #define HAVE_USB_POWER | ||
144 | |||
145 | /* Define this if your LCD can set contrast */ | ||
146 | /* #define HAVE_LCD_CONTRAST */ | ||
147 | |||
148 | /* Offset ( in the firmware file's header ) to the file CRC */ | ||
149 | #define FIRMWARE_OFFSET_FILE_CRC 0 | ||
150 | |||
151 | /* Offset ( in the firmware file's header ) to the real data */ | ||
152 | #define FIRMWARE_OFFSET_FILE_DATA 8 | ||
153 | |||
154 | #define STORAGE_NEEDS_ALIGN | ||
155 | |||
156 | /* Define this if you have adjustable CPU frequency */ | ||
157 | #define HAVE_ADJUSTABLE_CPU_FREQ | ||
158 | |||
159 | /* Virtual LED (icon) */ | ||
160 | #define CONFIG_LED LED_VIRTUAL | ||
161 | |||
162 | /** Non-simulator section **/ | ||
163 | #ifndef SIMULATOR | ||
164 | |||
165 | /* The exact type of CPU */ | ||
166 | #define CONFIG_CPU RK27XX | ||
167 | |||
168 | /* Define this to the CPU frequency */ | ||
169 | #define CPU_FREQ 200000000 | ||
170 | |||
171 | /* I2C interface */ | ||
172 | #define CONFIG_I2C I2C_RK27XX | ||
173 | |||
174 | /* define this if the hardware can be powered off while charging */ | ||
175 | /* #define HAVE_POWEROFF_WHILE_CHARGING */ | ||
176 | |||
177 | /* Type of LCD */ | ||
178 | #define CONFIG_LCD LCD_IHIFI800 | ||
179 | |||
180 | /* USB On-the-go */ | ||
181 | #define CONFIG_USBOTG USBOTG_RK27XX | ||
182 | |||
183 | /* enable these for the experimental usb stack */ | ||
184 | #define HAVE_USBSTACK | ||
185 | |||
186 | #define USB_VENDOR_ID 0x071b | ||
187 | #define USB_PRODUCT_ID 0x3202 | ||
188 | #define HAVE_BOOTLOADER_USB_MODE | ||
189 | |||
190 | #define RKW_FORMAT | ||
191 | #define BOOTFILE_EXT "rkw" | ||
192 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
193 | #define BOOTDIR "/.rockbox" | ||
194 | |||
195 | /* disabled for now */ | ||
196 | #undef HAVE_HOTSWAP | ||
197 | |||
198 | #endif /* SIMULATOR */ | ||