summaryrefslogtreecommitdiff
path: root/firmware/export/config/hifimanhm801.h
diff options
context:
space:
mode:
authorAndrew Ryabinin <ryabinin.a.a@gmail.com>2011-11-03 11:53:02 +0000
committerAndrew Ryabinin <ryabinin.a.a@gmail.com>2011-11-03 11:53:02 +0000
commit2164aab9020bb37ec71a24461c4c42bc4e2eb2d3 (patch)
treedbf138f0f8d84789b335e6059508176a71fe0cde /firmware/export/config/hifimanhm801.h
parent50211e20548bf3a5f7781489269a297cad58713e (diff)
downloadrockbox-2164aab9020bb37ec71a24461c4c42bc4e2eb2d3.tar.gz
rockbox-2164aab9020bb37ec71a24461c4c42bc4e2eb2d3.zip
Added HiFiMAN HM-801 target. FS#12355. This also renames tda1543.{ch} used by HM-60x to dummy_codec.{ch} as it works for PCM1704 used by HM-801.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30891 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config/hifimanhm801.h')
-rw-r--r--firmware/export/config/hifimanhm801.h171
1 files changed, 171 insertions, 0 deletions
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"