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