diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/export/config/samsungypz5.h | 201 |
2 files changed, 205 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 3c4c72c054..23ee56fc75 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -150,6 +150,7 @@ | |||
150 | #define MA_PAD 56 | 150 | #define MA_PAD 56 |
151 | #define SONY_NWZ_PAD 57 | 151 | #define SONY_NWZ_PAD 57 |
152 | #define CREATIVE_ZEN_PAD 58 | 152 | #define CREATIVE_ZEN_PAD 58 |
153 | #define SAMSUNG_YPZ5_PAD 59 | ||
153 | 154 | ||
154 | /* CONFIG_REMOTE_KEYPAD */ | 155 | /* CONFIG_REMOTE_KEYPAD */ |
155 | #define H100_REMOTE 1 | 156 | #define H100_REMOTE 1 |
@@ -258,6 +259,7 @@ | |||
258 | #define LCD_CREATIVEZENMOZAIC 56 /* as used by the Creative ZEN Mozaic (FGD0801) */ | 259 | #define LCD_CREATIVEZENMOZAIC 56 /* as used by the Creative ZEN Mozaic (FGD0801) */ |
259 | #define LCD_ILI9342C 57 /* another type of lcd used by HiFi E.T MA9/MA8 */ | 260 | #define LCD_ILI9342C 57 /* another type of lcd used by HiFi E.T MA9/MA8 */ |
260 | #define LCD_CREATIVEZENV 58 /* as used by the Creativr Zen V (Plus) */ | 261 | #define LCD_CREATIVEZENV 58 /* as used by the Creativr Zen V (Plus) */ |
262 | #define LCD_SAMSUNGYPZ5 59 /* as used by Samsung YP-Z5 */ | ||
261 | 263 | ||
262 | /* LCD_PIXELFORMAT */ | 264 | /* LCD_PIXELFORMAT */ |
263 | #define HORIZONTAL_PACKING 1 | 265 | #define HORIZONTAL_PACKING 1 |
@@ -546,6 +548,8 @@ Lyre prototype 1 */ | |||
546 | #include "config/sonynwze370.h" | 548 | #include "config/sonynwze370.h" |
547 | #elif defined(SONY_NWZE360) | 549 | #elif defined(SONY_NWZE360) |
548 | #include "config/sonynwze360.h" | 550 | #include "config/sonynwze360.h" |
551 | #elif defined(SAMSUNG_YPZ5) | ||
552 | #include "config/samsungypz5.h" | ||
549 | #else | 553 | #else |
550 | /* no known platform */ | 554 | /* no known platform */ |
551 | #endif | 555 | #endif |
diff --git a/firmware/export/config/samsungypz5.h b/firmware/export/config/samsungypz5.h new file mode 100644 index 0000000000..651ae21ba3 --- /dev/null +++ b/firmware/export/config/samsungypz5.h | |||
@@ -0,0 +1,201 @@ | |||
1 | /* | ||
2 | * This config file is for the Samsung YP-Z5 | ||
3 | */ | ||
4 | #define IMX233_SUBTARGET 3600 | ||
5 | #define IMX233_PACKAGE IMX233_BGA169 | ||
6 | #define IMX233_PARTITIONS IMX233_FREESCALE | ||
7 | |||
8 | /* For Rolo and boot loader */ | ||
9 | #define MODEL_NUMBER 84 | ||
10 | #define MODEL_NAME "Samsung YP-Z5" | ||
11 | |||
12 | #define HW_SAMPR_CAPS SAMPR_CAP_ALL | ||
13 | |||
14 | /* define this if you have recording possibility */ | ||
15 | #define HAVE_RECORDING | ||
16 | |||
17 | #define REC_SAMPR_CAPS SAMPR_CAP_ALL | ||
18 | |||
19 | /* Default recording levels */ | ||
20 | #define DEFAULT_REC_MIC_GAIN 23 | ||
21 | #define DEFAULT_REC_LEFT_GAIN 23 | ||
22 | #define DEFAULT_REC_RIGHT_GAIN 23 | ||
23 | |||
24 | /* Define bitmask of input sources - recordable bitmask can be defined | ||
25 | explicitly if different */ | ||
26 | #define HAVE_FMRADIO_IN | ||
27 | #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) | ||
28 | |||
29 | /* define this if you have a bitmap LCD display */ | ||
30 | #define HAVE_LCD_BITMAP | ||
31 | /* define this if you have a colour LCD */ | ||
32 | #define HAVE_LCD_COLOR | ||
33 | |||
34 | #ifndef BOOTLOADER | ||
35 | #define HAVE_ALBUMART | ||
36 | |||
37 | /* define this to enable bitmap scaling */ | ||
38 | #define HAVE_BMP_SCALING | ||
39 | |||
40 | /* define this to enable JPEG decoding */ | ||
41 | #define HAVE_JPEG | ||
42 | |||
43 | /* Define this if a programmable hotkey is mapped */ | ||
44 | #define HAVE_HOTKEY | ||
45 | |||
46 | /* define this if you have access to the quickscreen */ | ||
47 | #define HAVE_QUICKSCREEN | ||
48 | |||
49 | /* define this if you would like tagcache to build on this target */ | ||
50 | #define HAVE_TAGCACHE | ||
51 | |||
52 | /* define this if the target has volume keys which can be used in the lists */ | ||
53 | #define HAVE_VOLUME_IN_LIST | ||
54 | |||
55 | /* define this if you have LCD enable function */ | ||
56 | //#define HAVE_LCD_ENABLE | ||
57 | |||
58 | /* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE | ||
59 | should be defined as well. | ||
60 | #define HAVE_LCD_SLEEP | ||
61 | #define HAVE_LCD_SLEEP_SETTING | ||
62 | */ | ||
63 | |||
64 | /* define this if you can flip your LCD | ||
65 | #define HAVE_LCD_FLIP | ||
66 | */ | ||
67 | |||
68 | /* define this if you can invert the colours on your LCD | ||
69 | #define HAVE_LCD_INVERT | ||
70 | */ | ||
71 | |||
72 | /* define this if you have a real-time clock */ | ||
73 | #define CONFIG_RTC RTC_IMX233 | ||
74 | |||
75 | /* define this if you have a real-time clock with alarm facilities */ | ||
76 | #define HAVE_RTC_ALARM | ||
77 | |||
78 | #endif /* !BOOTLOADER */ | ||
79 | |||
80 | /* define this if you have an i.MX23 codec */ | ||
81 | #define HAVE_IMX233_CODEC | ||
82 | |||
83 | #define CONFIG_TUNER TEA5767 | ||
84 | #define CONFIG_TUNER_XTAL 32768 | ||
85 | |||
86 | /* There is no hardware tone control */ | ||
87 | #define HAVE_SW_TONE_CONTROLS | ||
88 | |||
89 | #define CONFIG_KEYPAD SAMSUNG_YPZ5_PAD | ||
90 | #define HAVE_TOUCHPAD_IMX233 | ||
91 | |||
92 | /* Define this to enable morse code input */ | ||
93 | #define HAVE_MORSE_INPUT | ||
94 | |||
95 | /* Define this if you do software codec */ | ||
96 | #define CONFIG_CODEC SWCODEC | ||
97 | |||
98 | /* LCD dimensions */ | ||
99 | #define LCD_WIDTH 128 | ||
100 | #define LCD_HEIGHT 160 | ||
101 | #define LCD_DEPTH 16 /* 65536 colours */ | ||
102 | #define LCD_PIXELFORMAT RGB565 /* rgb565 */ | ||
103 | |||
104 | /* Define this if you have a software controlled poweroff */ | ||
105 | #define HAVE_SW_POWEROFF | ||
106 | |||
107 | /* Some devices seem to be FAT16 formatted */ | ||
108 | #define HAVE_FAT16SUPPORT | ||
109 | |||
110 | /* The number of bytes reserved for loadable codecs */ | ||
111 | #define CODEC_SIZE 0 | ||
112 | |||
113 | /* The number of bytes reserved for loadable plugins */ | ||
114 | #define PLUGIN_BUFFER_SIZE 0 | ||
115 | |||
116 | #define AB_REPEAT_ENABLE | ||
117 | |||
118 | /* Define this for LCD backlight available */ | ||
119 | #define HAVE_BACKLIGHT | ||
120 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
121 | |||
122 | /* Main LCD backlight brightness range and defaults */ | ||
123 | #define MIN_BRIGHTNESS_SETTING 1 | ||
124 | #define MAX_BRIGHTNESS_SETTING 18 | ||
125 | #define DEFAULT_BRIGHTNESS_SETTING 5 | ||
126 | |||
127 | /* Which backlight fading type? */ | ||
128 | #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING | ||
129 | |||
130 | /* define this if you have a flash memory storage */ | ||
131 | //#define HAVE_FLASH_STORAGE | ||
132 | |||
133 | #define CONFIG_STORAGE (STORAGE_RAMDISK) | ||
134 | //#define CONFIG_NAND NAND_IMX233 | ||
135 | //#define NUM_DRIVES 0 | ||
136 | |||
137 | /* Extra threads: touchpad and rds */ | ||
138 | //#define TARGET_EXTRA_THREADS 2 | ||
139 | |||
140 | /* todo */ | ||
141 | #define BATTERY_CAPACITY_DEFAULT 550 /* default battery capacity */ | ||
142 | #define BATTERY_CAPACITY_MIN 550 /* min. capacity selectable */ | ||
143 | #define BATTERY_CAPACITY_MAX 550 /* max. capacity selectable */ | ||
144 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | ||
145 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | ||
146 | |||
147 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | ||
148 | |||
149 | /* Charging implemented in a target-specific algorithm */ | ||
150 | #define CONFIG_CHARGING CHARGING_TARGET | ||
151 | |||
152 | /* define this if the unit can be powered or charged via USB */ | ||
153 | #define HAVE_USB_POWER | ||
154 | |||
155 | /* Define this if you have an IMX233*/ | ||
156 | #define CONFIG_CPU IMX233 | ||
157 | |||
158 | /* Define this if you want to use the IMX233 i2c interface */ | ||
159 | #define CONFIG_I2C I2C_IMX233 | ||
160 | |||
161 | /* define current usage levels (based on battery bench) */ | ||
162 | #define CURRENT_NORMAL 35 | ||
163 | #define CURRENT_BACKLIGHT 30 | ||
164 | #define CURRENT_RECORD CURRENT_NORMAL | ||
165 | |||
166 | /* maximum charging current */ | ||
167 | #define CURRENT_MAX_CHG 200 | ||
168 | |||
169 | /* Define this to the CPU frequency */ | ||
170 | #define CPU_FREQ 454000000 | ||
171 | |||
172 | /* Type of LCD */ | ||
173 | #define CONFIG_LCD LCD_SAMSUNGYPZ5 | ||
174 | |||
175 | /* Offset ( in the firmware file's header ) to the file CRC and data. These are | ||
176 | only used when loading the old format rockbox.e200 file */ | ||
177 | #define FIRMWARE_OFFSET_FILE_CRC 0x0 | ||
178 | #define FIRMWARE_OFFSET_FILE_DATA 0x8 | ||
179 | |||
180 | /* USB On-the-go */ | ||
181 | #define CONFIG_USBOTG USBOTG_ARC | ||
182 | |||
183 | /* enable these for the experimental usb stack */ | ||
184 | #define HAVE_USBSTACK | ||
185 | #define USE_ROCKBOX_USB | ||
186 | #define USB_VENDOR_ID 0x04e8 | ||
187 | #define USB_PRODUCT_ID 0x5041 | ||
188 | #define HAVE_USB_HID_MOUSE | ||
189 | #define HAVE_BOOTLOADER_USB_MODE | ||
190 | |||
191 | /* Define this if you have adjustable CPU frequency */ | ||
192 | //#define HAVE_ADJUSTABLE_CPU_FREQ | ||
193 | |||
194 | /* Virtual LED (icon) */ | ||
195 | #define CONFIG_LED LED_VIRTUAL | ||
196 | |||
197 | #define BOOTFILE_EXT "samsung" | ||
198 | #define BOOTFILE "rockbox." BOOTFILE_EXT | ||
199 | #define BOOTDIR "/.rockbox" | ||
200 | |||
201 | #define INCLUDE_TIMEOUT_API | ||