summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/audiohw.h4
-rw-r--r--firmware/export/config.h3
-rw-r--r--firmware/export/config/hifimanhm60x.h2
-rw-r--r--firmware/export/config/hifimanhm801.h171
-rw-r--r--firmware/export/dummy_codec.h (renamed from firmware/export/tda1543.h)6
5 files changed, 180 insertions, 6 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h
index e40ee6ee79..6bf4d71810 100644
--- a/firmware/export/audiohw.h
+++ b/firmware/export/audiohw.h
@@ -74,8 +74,8 @@
74#include "cs42l55.h" 74#include "cs42l55.h"
75#elif defined(HAVE_IMX233_CODEC) 75#elif defined(HAVE_IMX233_CODEC)
76#include "imx233-codec.h" 76#include "imx233-codec.h"
77#elif defined(HAVE_TDA1543) 77#elif defined(HAVE_DUMMY_CODEC)
78#include "tda1543.h" 78#include "dummy_codec.h"
79#endif 79#endif
80#if (CONFIG_PLATFORM & PLATFORM_HOSTED) 80#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
81/* #include <SDL_audio.h> gives errors in other code areas, 81/* #include <SDL_audio.h> gives errors in other code areas,
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 0d0617bb13..65c27ce5e0 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -141,6 +141,7 @@
141#define SANSA_FUZEPLUS_PAD 48 141#define SANSA_FUZEPLUS_PAD 48
142#define RK27XX_GENERIC_PAD 49 142#define RK27XX_GENERIC_PAD 49
143#define HM60X_PAD 50 143#define HM60X_PAD 50
144#define HM801_PAD 51
144 145
145/* CONFIG_REMOTE_KEYPAD */ 146/* CONFIG_REMOTE_KEYPAD */
146#define H100_REMOTE 1 147#define H100_REMOTE 1
@@ -463,6 +464,8 @@ Lyre prototype 1 */
463#include "config/rk27generic.h" 464#include "config/rk27generic.h"
464#elif defined(HM60X) 465#elif defined(HM60X)
465#include "config/hifimanhm60x.h" 466#include "config/hifimanhm60x.h"
467#elif defined(HM801)
468#include "config/hifimanhm801.h"
466#elif defined(SDLAPP) 469#elif defined(SDLAPP)
467#include "config/sdlapp.h" 470#include "config/sdlapp.h"
468#elif defined(ANDROID) 471#elif defined(ANDROID)
diff --git a/firmware/export/config/hifimanhm60x.h b/firmware/export/config/hifimanhm60x.h
index 88af364bc9..6ac43803f3 100644
--- a/firmware/export/config/hifimanhm60x.h
+++ b/firmware/export/config/hifimanhm60x.h
@@ -17,7 +17,7 @@
17 SAMPR_CAP_32 | SAMPR_CAP_24 | SAMPR_CAP_22 | \ 17 SAMPR_CAP_32 | SAMPR_CAP_24 | SAMPR_CAP_22 | \
18 SAMPR_CAP_16 | SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8) 18 SAMPR_CAP_16 | SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
19 19
20#define HAVE_TDA1543 20#define HAVE_DUMMY_CODEC
21#define CODEC_SLAVE 21#define CODEC_SLAVE
22/* define this if you have a bitmap LCD display */ 22/* define this if you have a bitmap LCD display */
23#define HAVE_LCD_BITMAP 23#define HAVE_LCD_BITMAP
diff --git a/firmware/export/config/hifimanhm801.h b/firmware/export/config/hifimanhm801.h
new file mode 100644
index 0000000000..d0e805d7c6
--- /dev/null
+++ b/firmware/export/config/hifimanhm801.h
@@ -0,0 +1,171 @@
1/*
2 * This config file is for HiFiMAN HM-60x reference design
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6/* For Rolo and boot loader */
7#define MODEL_NUMBER 80
8
9#define MODEL_NAME "HiFiMAN HM-801"
10
11
12/* define the bitmask of hardware sample rates */
13#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_48 | SAMPR_CAP_44 | \
14 SAMPR_CAP_32 | SAMPR_CAP_24 | SAMPR_CAP_22 | \
15 SAMPR_CAP_16 | SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
16
17#define HAVE_DUMMY_CODEC
18#define CODEC_SLAVE
19/* define this if you have a bitmap LCD display */
20#define HAVE_LCD_BITMAP
21
22/* define this if you can flip your LCD */
23/* #define HAVE_LCD_FLIP */
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 can invert the colours on your LCD */
38/* #define HAVE_LCD_INVERT */
39
40/* define this if you have access to the quickscreen */
41#define HAVE_QUICKSCREEN
42
43/* define this if you have access to the pitchscreen */
44#define HAVE_PITCHSCREEN
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/* commented for now */
58/* #define HAVE_HOTSWAP */
59
60#define NUM_DRIVES 2
61#define SECTOR_SIZE 512
62
63/* for small(ish) SD cards */
64#define HAVE_FAT16SUPPORT
65
66/* LCD dimensions */
67#define LCD_WIDTH 220
68#define LCD_HEIGHT 176
69#define LCD_DEPTH 16 /* pseudo 262.144 colors */
70#define LCD_PIXELFORMAT RGB565 /* rgb565 */
71
72/* Define this if the LCD can shut down */
73/* #define HAVE_LCD_SHUTDOWN */
74
75/* Define this if your LCD can be enabled/disabled */
76/* #define HAVE_LCD_ENABLE */
77
78/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
79 should be defined as well. */
80#ifndef BOOTLOADER
81/* TODO: #define HAVE_LCD_SLEEP */
82/* TODO: #define HAVE_LCD_SLEEP_SETTING */
83#endif
84
85#define CONFIG_KEYPAD HM801_PAD
86
87/* Define this to enable morse code input */
88#define HAVE_MORSE_INPUT
89
90/* Define this if you do software codec */
91#define CONFIG_CODEC SWCODEC
92
93#define CONFIG_LCD LCD_HX8340B
94
95/* #define HAVE_PCM_DMA_ADDRESS */
96
97/* Define this for LCD backlight available */
98#define HAVE_BACKLIGHT
99#define HAVE_BACKLIGHT_BRIGHTNESS
100#define MIN_BRIGHTNESS_SETTING 0
101#define MAX_BRIGHTNESS_SETTING 31
102#define DEFAULT_BRIGHTNESS_SETTING 20
103#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
104
105/* Define this if you have a software controlled poweroff */
106#define HAVE_SW_POWEROFF
107
108/* The number of bytes reserved for loadable codecs */
109#define CODEC_SIZE 0x100000
110
111/* The number of bytes reserved for loadable plugins */
112#define PLUGIN_BUFFER_SIZE 0x80000
113
114/* TODO: Figure out real values */
115#define BATTERY_CAPACITY_DEFAULT 4000 /* default battery capacity */
116#define BATTERY_CAPACITY_MIN 3000 /* min. capacity selectable */
117#define BATTERY_CAPACITY_MAX 4100 /* max. capacity selectable */
118#define BATTERY_CAPACITY_INC 50 /* capacity increment */
119#define BATTERY_TYPES_COUNT 1 /* only one type */
120
121/* Hardware controlled charging with monitoring */
122#define CONFIG_CHARGING CHARGING_MONITOR
123
124/* define current usage levels */
125/* TODO: #define CURRENT_NORMAL
126 * TODO: #define CURRENT_BACKLIGHT 23
127 */
128
129/* define this if the unit can be powered or charged via USB */
130#define HAVE_USB_POWER
131
132/* USB On-the-go */
133#define CONFIG_USBOTG USBOTG_RK27XX
134
135/* enable these for the experimental usb stack */
136#define HAVE_USBSTACK
137
138#define USE_ROCKBOX_USB
139#define USB_VENDOR_ID 0x071b
140#define USB_PRODUCT_ID 0x3202
141#define HAVE_BOOTLOADER_USB_MODE
142
143/* Define this if your LCD can set contrast */
144/* #define HAVE_LCD_CONTRAST */
145
146/* The exact type of CPU */
147#define CONFIG_CPU RK27XX
148
149/* I2C interface */
150#define CONFIG_I2C I2C_RK27XX
151
152/* Define this to the CPU frequency */
153#define CPU_FREQ 200000000
154
155/* define this if the hardware can be powered off while charging */
156/* #define HAVE_POWEROFF_WHILE_CHARGING */
157
158/* Offset ( in the firmware file's header ) to the file CRC */
159#define FIRMWARE_OFFSET_FILE_CRC 0
160
161/* Offset ( in the firmware file's header ) to the real data */
162#define FIRMWARE_OFFSET_FILE_DATA 8
163
164#define STORAGE_NEEDS_ALIGN
165
166/* Define this if you have adjustable CPU frequency */
167/* #define HAVE_ADJUSTABLE_CPU_FREQ */
168
169#define BOOTFILE_EXT "rk27"
170#define BOOTFILE "rockbox." BOOTFILE_EXT
171#define BOOTDIR "/.rockbox"
diff --git a/firmware/export/tda1543.h b/firmware/export/dummy_codec.h
index 6561f0823a..b85ec8fb0e 100644
--- a/firmware/export/tda1543.h
+++ b/firmware/export/dummy_codec.h
@@ -19,11 +19,11 @@
19 * KIND, either express or implied. 19 * KIND, either express or implied.
20 * 20 *
21 ****************************************************************************/ 21 ****************************************************************************/
22#ifndef __TDA1543_H_ 22#ifndef __DUMMY_CODEC_H_
23#define __TDA1543_H_ 23#define __DUMMY_CODEC_H_
24 24
25#define VOLUME_MIN -1 25#define VOLUME_MIN -1
26#define VOLUME_MAX 0 26#define VOLUME_MAX 0
27 27
28 28
29#endif /* __TDA1543_H_ */ 29#endif /* __DUMMY_CODEC_H_ */