summaryrefslogtreecommitdiff
path: root/firmware/export/config-yh820.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config-yh820.h')
-rw-r--r--firmware/export/config-yh820.h187
1 files changed, 187 insertions, 0 deletions
diff --git a/firmware/export/config-yh820.h b/firmware/export/config-yh820.h
new file mode 100644
index 0000000000..b96a7c72ea
--- /dev/null
+++ b/firmware/export/config-yh820.h
@@ -0,0 +1,187 @@
1/*
2 * This config file is for the Samsung YH-820
3 */
4
5#define TARGET_TREE /* this target is using the target tree system */
6
7/* For Rolo and boot loader */
8#define MODEL_NUMBER 57
9#define MODEL_NAME "Samsung YH-820"
10
11/* define this if you have recording possibility */
12/* todo #define HAVE_RECORDING */
13
14/* Define bitmask of input sources - recordable bitmask can be defined
15 explicitly if different */
16#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN )
17
18/* define the bitmask of hardware sample rates */
19#define HW_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
20 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
21 SAMPR_CAP_11 | SAMPR_CAP_8)
22
23/* define the bitmask of recording sample rates */
24#define REC_SAMPR_CAPS (SAMPR_CAP_48 | SAMPR_CAP_44 | SAMPR_CAP_32 | \
25 SAMPR_CAP_24 | SAMPR_CAP_22 | SAMPR_CAP_16 | \
26 SAMPR_CAP_11 | SAMPR_CAP_8)
27
28/* Type of LCD */
29#define CONFIG_LCD LCD_S6B33B2
30
31/* LCD dimensions */
32#define LCD_WIDTH 128
33#define LCD_HEIGHT 96
34#define LCD_DEPTH 16 /* 65536 colours */
35#define LCD_PIXELFORMAT RGB565
36
37#ifndef BOOTLOADER
38/* Define this if your LCD can be enabled/disabled */
39#define HAVE_LCD_ENABLE
40
41/* Define this if your LCD can be put to sleep.
42 HAVE_LCD_ENABLE should be defined as well. */
43/* todo #define HAVE_LCD_SLEEP*/
44/* todo #define HAVE_LCD_SLEEP_SETTING */
45#endif /* !BOOTLOADER */
46
47/* Define this for LCD backlight available */
48#define HAVE_BACKLIGHT
49
50/* Define this if your LCD can set contrast */
51#define HAVE_LCD_CONTRAST
52
53#define MIN_CONTRAST_SETTING 0
54#define MAX_CONTRAST_SETTING 255
55#define DEFAULT_CONTRAST_SETTING 137
56
57/* define this if you can flip your LCD */
58/* #define HAVE_LCD_FLIP */
59
60/* define this if you can invert the colours on your LCD */
61/* todo #define HAVE_LCD_INVERT */
62
63/* put the lcd frame buffer in IRAM */
64/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
65
66/* define this if you have a bitmap LCD display */
67#define HAVE_LCD_BITMAP
68
69/* define this if you have a colour LCD */
70#define HAVE_LCD_COLOR
71
72/* define this if you want album art for this target */
73#define HAVE_ALBUMART
74
75/* define this if you have access to the quickscreen */
76#define HAVE_QUICKSCREEN
77
78/* define this if you have access to the pitchscreen */
79#define HAVE_PITCHSCREEN
80
81/* define this if you would like tagcache to build on this target */
82#define HAVE_TAGCACHE
83
84#define CONFIG_KEYPAD SAMSUNG_YH_PAD
85
86/* Define this if you do software codec */
87#define CONFIG_CODEC SWCODEC
88
89/* define this if you have a real-time clock */
90/* todo verify rtc (or none) */
91/* #ifndef BOOTLOADER */
92#if 0
93#define CONFIG_RTC RTC_E8564
94#define HAVE_RTC_ALARM
95#endif
96
97/* define this if you have a disk storage, i.e. something
98 that needs spinups and can cause skips when shaked */
99#define HAVE_DISK_STORAGE
100
101/* define this if you use an ATA controller */
102#define CONFIG_STORAGE STORAGE_ATA
103
104/* We're able to shut off power to the HDD */
105#ifndef SIMULATOR
106/* todo #define HAVE_ATA_POWER_OFF */
107#endif
108
109/* Define this if you have a software controlled poweroff */
110#define HAVE_SW_POWEROFF
111
112/* The number of bytes reserved for loadable codecs */
113#define CODEC_SIZE 0x100000
114
115/* The number of bytes reserved for loadable plugins */
116#define PLUGIN_BUFFER_SIZE 0x80000
117
118/* Define this if you have the AK4537 audio codec */
119#define HAVE_AK4537
120
121/* AK4537 has no tone controls, so we use the software ones */
122#define HAVE_SW_TONE_CONTROLS
123
124#define AB_REPEAT_ENABLE 1
125
126#define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */
127#define BATTERY_CAPACITY_MIN 1500 /* min. capacity selectable */
128#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable */
129#define BATTERY_CAPACITY_INC 50 /* capacity increment */
130#define BATTERY_TYPES_COUNT 1 /* only one type */
131
132/* Hardware controlled charging */
133#define CONFIG_CHARGING CHARGING_SIMPLE
134
135/* define this if the unit can be powered or charged via USB */
136#define HAVE_USB_POWER
137
138#ifndef SIMULATOR
139
140/* Define this if you have a PortalPlayer PP5020 */
141#define CONFIG_CPU PP5020
142
143/* Define this if you want to use the PP5020 i2c interface */
144#define CONFIG_I2C I2C_PP5020
145
146/* define this if the hardware can be powered off while charging */
147#define HAVE_POWEROFF_WHILE_CHARGING
148
149/* The start address index for ROM builds */
150#define ROM_START 0x00000000
151
152/* The size of the flash ROM */
153#define FLASH_SIZE 0x100000
154
155/* Define this to the CPU frequency */
156#define CPU_FREQ 75000000
157
158/* USB On-the-go */
159#define CONFIG_USBOTG USBOTG_ARC
160
161/* enable these for the experimental usb stack */
162#define HAVE_USBSTACK
163#define USE_ROCKBOX_USB
164/* todo - check */
165#define USB_VENDOR_ID 0x04e8
166#define USB_PRODUCT_ID 0x5023
167
168/* Virtual LED (icon) */
169#define CONFIG_LED LED_VIRTUAL
170
171/* Define this if you have adjustable CPU frequency */
172#define HAVE_ADJUSTABLE_CPU_FREQ
173
174#define MI4_FORMAT
175#define BOOTFILE_EXT "mi4"
176#define BOOTFILE "rockbox." BOOTFILE_EXT
177#define BOOTDIR "/.rockbox"
178
179/* Offset ( in the firmware file's header ) to the file CRC */
180#define FIRMWARE_OFFSET_FILE_CRC 0x00
181
182/* Offset ( in the firmware file's header ) to the real data */
183#define FIRMWARE_OFFSET_FILE_DATA 0x00
184
185#define ICODE_ATTR_TREMOR_NOT_MDCT
186
187#endif /* !SIMULATOR */