HiFiMAN: Implement lcd powersave mode.
[maemo-rb.git] / firmware / export / config / hifimanhm801.h
blob06154eeb00e3924ab37f408c376e3a591d198840
1 /*
2 * This config file is for HiFiMAN HM-60x reference design
3 */
5 /* For Rolo and boot loader */
6 #define MODEL_NUMBER 82
8 #define MODEL_NAME "HiFiMAN HM-801"
11 /* define the bitmask of hardware sample rates */
12 #define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_48 | SAMPR_CAP_44 | \
13 SAMPR_CAP_32 | SAMPR_CAP_24 | SAMPR_CAP_22 | \
14 SAMPR_CAP_16 | SAMPR_CAP_12 | SAMPR_CAP_11 | SAMPR_CAP_8)
16 #define HAVE_DUMMY_CODEC
17 #define CODEC_SLAVE
18 /* define this if you have a bitmap LCD display */
19 #define HAVE_LCD_BITMAP
21 /* define this if you can flip your LCD */
22 /* #define HAVE_LCD_FLIP */
24 /* define this if you have a colour LCD */
25 #define HAVE_LCD_COLOR
27 /* define this if you want album art for this target */
28 #define HAVE_ALBUMART
30 /* define this to enable bitmap scaling */
31 #define HAVE_BMP_SCALING
33 /* define this to enable JPEG decoding */
34 #define HAVE_JPEG
36 /* define this if you can invert the colours on your LCD */
37 /* #define HAVE_LCD_INVERT */
39 /* define this if you have access to the quickscreen */
40 #define HAVE_QUICKSCREEN
42 /* define this if you have access to the pitchscreen */
43 #define HAVE_PITCHSCREEN
45 /* define this if you would like tagcache to build on this target */
46 #define HAVE_TAGCACHE
48 /* define this if you have a flash memory storage */
49 #define HAVE_FLASH_STORAGE
51 #define CONFIG_STORAGE (STORAGE_SD | STORAGE_NAND)
53 #define CONFIG_NAND NAND_RK27XX
54 #define HAVE_SW_TONE_CONTROLS
56 /* commented for now */
57 /* #define HAVE_HOTSWAP */
59 #define NUM_DRIVES 2
60 #define SECTOR_SIZE 512
62 /* for small(ish) SD cards */
63 #define HAVE_FAT16SUPPORT
65 /* LCD dimensions */
66 #define LCD_WIDTH 220
67 #define LCD_HEIGHT 176
68 #define LCD_DEPTH 16 /* pseudo 262.144 colors */
69 #define LCD_PIXELFORMAT RGB565 /* rgb565 */
71 /* Define this if the LCD can shut down */
72 /* #define HAVE_LCD_SHUTDOWN */
74 /* Define this if your LCD can be enabled/disabled */
75 #define HAVE_LCD_ENABLE
77 /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE
78 should be defined as well. */
79 #ifndef BOOTLOADER
80 /* TODO: #define HAVE_LCD_SLEEP */
81 /* TODO: #define HAVE_LCD_SLEEP_SETTING */
82 #endif
84 #define CONFIG_KEYPAD HM801_PAD
86 /* Define this to enable morse code input */
87 #define HAVE_MORSE_INPUT
89 /* Define this if you do software codec */
90 #define CONFIG_CODEC SWCODEC
92 #define CONFIG_LCD LCD_HX8340B
94 /* #define HAVE_PCM_DMA_ADDRESS */
96 /* Define this for LCD backlight available */
97 #define HAVE_BACKLIGHT
98 #define HAVE_BACKLIGHT_BRIGHTNESS
99 #define MIN_BRIGHTNESS_SETTING 0
100 #define MAX_BRIGHTNESS_SETTING 31
101 #define DEFAULT_BRIGHTNESS_SETTING 20
102 #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG
104 /* Define this if you have a software controlled poweroff */
105 #define HAVE_SW_POWEROFF
107 /* The number of bytes reserved for loadable codecs */
108 #define CODEC_SIZE 0x100000
110 /* The number of bytes reserved for loadable plugins */
111 #define PLUGIN_BUFFER_SIZE 0x80000
113 /* TODO: Figure out real values */
114 #define BATTERY_CAPACITY_DEFAULT 4000 /* default battery capacity */
115 #define BATTERY_CAPACITY_MIN 3000 /* min. capacity selectable */
116 #define BATTERY_CAPACITY_MAX 4100 /* max. capacity selectable */
117 #define BATTERY_CAPACITY_INC 50 /* capacity increment */
118 #define BATTERY_TYPES_COUNT 1 /* only one type */
120 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
122 /* Hardware controlled charging with monitoring */
123 #define CONFIG_CHARGING CHARGING_MONITOR
125 /* define current usage levels */
126 /* TODO: #define CURRENT_NORMAL
127 * TODO: #define CURRENT_BACKLIGHT 23
130 /* define this if the unit can be powered or charged via USB */
131 #define HAVE_USB_POWER
133 /* USB On-the-go */
134 #define CONFIG_USBOTG USBOTG_RK27XX
136 /* enable these for the experimental usb stack */
137 #define HAVE_USBSTACK
139 #define USE_ROCKBOX_USB
140 #define USB_VENDOR_ID 0x071b
141 #define USB_PRODUCT_ID 0x3202
142 #define HAVE_BOOTLOADER_USB_MODE
144 /* Define this if your LCD can set contrast */
145 /* #define HAVE_LCD_CONTRAST */
147 /* The exact type of CPU */
148 #define CONFIG_CPU RK27XX
150 /* I2C interface */
151 #define CONFIG_I2C I2C_RK27XX
153 /* Define this to the CPU frequency */
154 #define CPU_FREQ 200000000
156 /* define this if the hardware can be powered off while charging */
157 /* #define HAVE_POWEROFF_WHILE_CHARGING */
159 /* Offset ( in the firmware file's header ) to the file CRC */
160 #define FIRMWARE_OFFSET_FILE_CRC 0
162 /* Offset ( in the firmware file's header ) to the real data */
163 #define FIRMWARE_OFFSET_FILE_DATA 8
165 #define STORAGE_NEEDS_ALIGN
167 /* Define this if you have adjustable CPU frequency */
168 /* #define HAVE_ADJUSTABLE_CPU_FREQ */
170 #define BOOTFILE_EXT "rk27"
171 #define BOOTFILE "rockbox." BOOTFILE_EXT
172 #define BOOTDIR "/.rockbox"