diff options
Diffstat (limited to 'firmware/export/config')
-rw-r--r-- | firmware/export/config/fiiom3k.h | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/firmware/export/config/fiiom3k.h b/firmware/export/config/fiiom3k.h new file mode 100644 index 0000000000..5b68f3738e --- /dev/null +++ b/firmware/export/config/fiiom3k.h | |||
@@ -0,0 +1,127 @@ | |||
1 | /* | ||
2 | * This config file is for the FiiO M3K | ||
3 | */ | ||
4 | |||
5 | /* For Rolo and boot loader */ | ||
6 | #define MODEL_NUMBER 112 | ||
7 | |||
8 | #define MODEL_NAME "FiiO M3K" | ||
9 | |||
10 | /* LCD dimensions */ | ||
11 | #define LCD_WIDTH 240 | ||
12 | #define LCD_HEIGHT 320 | ||
13 | /* sqrt(240^2 + 320^2) / 2.0 = 200 */ | ||
14 | #define LCD_DPI 200 | ||
15 | |||
16 | #ifndef SIMULATOR | ||
17 | #define CONFIG_PLATFORM (PLATFORM_HOSTED) | ||
18 | #endif | ||
19 | |||
20 | #define HW_SAMPR_CAPS (SAMPR_CAP_44 | SAMPR_CAP_48 | SAMPR_CAP_88 | SAMPR_CAP_96 | SAMPR_CAP_176 | SAMPR_CAP_192) | ||
21 | |||
22 | /* define this if you have a bitmap LCD display */ | ||
23 | #define HAVE_LCD_BITMAP | ||
24 | |||
25 | /* define this if you have a colour LCD */ | ||
26 | #define HAVE_LCD_COLOR | ||
27 | |||
28 | #define HAVE_LCD_ENABLE | ||
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 have access to the quickscreen */ | ||
40 | #define HAVE_QUICKSCREEN | ||
41 | |||
42 | /* define this if you would like tagcache to build on this target */ | ||
43 | #define HAVE_TAGCACHE | ||
44 | |||
45 | #define LCD_DEPTH 16 | ||
46 | /* Check that but should not matter */ | ||
47 | #define LCD_PIXELFORMAT RGB565 | ||
48 | |||
49 | #define HAVE_BACKLIGHT | ||
50 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
51 | |||
52 | /* define this if you have a light associated with the buttons */ | ||
53 | #define HAVE_BUTTON_LIGHT | ||
54 | #define HAVE_BUTTONLIGHT_BRIGHTNESS | ||
55 | |||
56 | /* Main LCD backlight brightness range and defaults: the backlight driver | ||
57 | * has levels from 0 to 32. But 0 is off so start at 1. | ||
58 | */ | ||
59 | #define MIN_BRIGHTNESS_SETTING 1 | ||
60 | #define MAX_BRIGHTNESS_SETTING 255 | ||
61 | #define BRIGHTNESS_STEP 5 | ||
62 | #define DEFAULT_BRIGHTNESS_SETTING 70 | ||
63 | |||
64 | /* Which backlight fading type? */ | ||
65 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
66 | |||
67 | /* define this if you have a real-time clock */ | ||
68 | #define CONFIG_RTC APPLICATION | ||
69 | |||
70 | /* The number of bytes reserved for loadable codecs */ | ||
71 | #define CODEC_SIZE 0x80000 | ||
72 | |||
73 | /* The number of bytes reserved for loadable plugins */ | ||
74 | #define PLUGIN_BUFFER_SIZE 0x100000 | ||
75 | |||
76 | #define HAVE_HEADPHONE_DETECTION | ||
77 | |||
78 | /* KeyPad configuration for plugins */ | ||
79 | #define CONFIG_KEYPAD FIIO_M3K_PAD | ||
80 | |||
81 | /* Define this if a programmable hotkey is mapped */ | ||
82 | #define HAVE_HOTKEY | ||
83 | |||
84 | /* define this if the target has volume keys which can be used in the lists */ | ||
85 | #define HAVE_VOLUME_IN_LIST | ||
86 | |||
87 | #ifndef SIMULATOR | ||
88 | /* We have usb power and can detect usb but it is handled by Linux */ | ||
89 | #define HAVE_USB_POWER | ||
90 | |||
91 | #endif | ||
92 | |||
93 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | ||
94 | |||
95 | /* Linux controlls charging, we can monitor */ | ||
96 | #define CONFIG_CHARGING CHARGING_MONITOR | ||
97 | |||
98 | /* define this if the hardware can be powered off while charging */ | ||
99 | #define HAVE_POWEROFF_WHILE_CHARGING | ||
100 | |||
101 | /* same dimensions as gigabeats */ | ||
102 | #define CONFIG_LCD LCD_INGENIC_LINUX | ||
103 | |||
104 | /* Define this if you have a software controlled poweroff */ | ||
105 | #define HAVE_SW_POWEROFF | ||
106 | |||
107 | /* Define this to the CPU frequency */ | ||
108 | #define CPU_FREQ 1008000000 | ||
109 | |||
110 | /* No special storage */ | ||
111 | #define CONFIG_STORAGE STORAGE_HOSTFS | ||
112 | #define HAVE_STORAGE_FLUSH | ||
113 | |||
114 | /* Battery */ | ||
115 | #define BATTERY_TYPES_COUNT 1 | ||
116 | |||
117 | /* Audio codec */ | ||
118 | #define HAVE_FIIO_LINUX_CODEC | ||
119 | |||
120 | /* We don't have hardware controls */ | ||
121 | #define HAVE_SW_TONE_CONTROLS | ||
122 | |||
123 | /* Battery */ | ||
124 | #define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */ | ||
125 | #define BATTERY_CAPACITY_MIN 1100 /* min. capacity selectable */ | ||
126 | #define BATTERY_CAPACITY_MAX 1100 /* max. capacity selectable */ | ||
127 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||