summaryrefslogtreecommitdiff
path: root/firmware/export/config
diff options
context:
space:
mode:
authorLorenzo Miori <memoryS60@gmail.com>2013-09-10 22:48:34 +0200
committerThomas Martitz <kugel@rockbox.org>2014-02-05 09:56:21 +0100
commite876f4df6d240bd2e319b1e63be95a625f049a97 (patch)
treece2fe1b24650e3be7a6cd2d346d29090a5422a8c /firmware/export/config
parentb828b9d99bff2acc0e1f543f3176fd4b632cba68 (diff)
downloadrockbox-e876f4df6d240bd2e319b1e63be95a625f049a97.tar.gz
rockbox-e876f4df6d240bd2e319b1e63be95a625f049a97.zip
Samsung YP-R1 target port
This is the basic port to the new target Samsung YP-R1, which runs on a similar platform as YP-R0. Port is usable, although there are still some optimizations that have to be done. Change-Id: If83a8e386369e413581753780c159026d9e41f04
Diffstat (limited to 'firmware/export/config')
-rw-r--r--firmware/export/config/samsungypr1.h152
1 files changed, 152 insertions, 0 deletions
diff --git a/firmware/export/config/samsungypr1.h b/firmware/export/config/samsungypr1.h
new file mode 100644
index 0000000000..a590dd553d
--- /dev/null
+++ b/firmware/export/config/samsungypr1.h
@@ -0,0 +1,152 @@
1/*
2 * This config file is for the RockBox as application on the Samsung YP-R1 player.
3 * The target name for ifdefs is: SAMSUNG_YPR1; or CONFIG_PLATFORM & PLAFTORM_YPR1
4 */
5
6/* We don't run on hardware directly */
7/* YP-R1 need it too of course */
8#define CONFIG_PLATFORM (PLATFORM_HOSTED)
9
10/* For Rolo and boot loader */
11#define MODEL_NUMBER 101
12
13#define MODEL_NAME "Samsung YP-R1"
14
15#define USB_NONE
16
17/* define this if you have a bitmap LCD display */
18#define HAVE_LCD_BITMAP
19
20/* define this if you have a colour LCD */
21#define HAVE_LCD_COLOR
22
23/* Define this if the LCD can shut down */
24#define HAVE_LCD_SHUTDOWN
25
26/* define this if you have LCD enable function */
27#define HAVE_LCD_ENABLE
28
29/* define this if you want album art for this target */
30#define HAVE_ALBUMART
31
32/* define this to enable bitmap scaling */
33#define HAVE_BMP_SCALING
34
35/* define this to enable JPEG decoding */
36#define HAVE_JPEG
37
38/* define this if you have access to the quickscreen */
39#define HAVE_QUICKSCREEN
40
41/* define this if you would like tagcache to build on this target */
42#define HAVE_TAGCACHE
43
44/* We try to support both orientation, looking forward for a future dynamic switch */
45#define CONFIG_ORIENTATION SCREEN_PORTRAIT
46
47/* LCD dimensions */
48#if CONFIG_ORIENTATION == SCREEN_PORTRAIT
49#define LCD_WIDTH 240
50#define LCD_HEIGHT 400
51#else
52#define LCD_WIDTH 400
53#define LCD_HEIGHT 240
54#endif
55
56#define LCD_DEPTH 16
57/* Calculated value, important for touch sensor */
58#define LCD_DPI 180
59/* Check that but should not matter */
60#define LCD_PIXELFORMAT RGB565
61
62/* Capacitive touchscreen */
63#define HAVE_TOUCHSCREEN
64#define HAVE_BUTTON_DATA
65
66/* We have backlight to control */
67#define HAVE_BACKLIGHT
68
69/* Define this for LCD backlight brightness available */
70#define HAVE_BACKLIGHT_BRIGHTNESS
71
72/* Main LCD backlight brightness range and defaults */
73/* From 0 to 32. Default is 18, that is set by the bootloader
74 * We stay a little lower since OF makes a distinction between
75 * two LCD screens (there is no reason to go further than 25 in any case)
76 */
77#define MIN_BRIGHTNESS_SETTING 1
78#define MAX_BRIGHTNESS_SETTING 25
79#define DEFAULT_BRIGHTNESS_SETTING 18
80
81/* Which backlight fading type? */
82#define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_SETTING
83
84/* The number of bytes reserved for loadable codecs */
85#define CODEC_SIZE 0x80000
86
87/* The number of bytes reserved for loadable plugins */
88#define PLUGIN_BUFFER_SIZE 0x100000
89
90#define AB_REPEAT_ENABLE
91
92/* Define this if you do software codec */
93#define CONFIG_CODEC SWCODEC
94
95/* R1 KeyPad configuration for plugins */
96#define CONFIG_KEYPAD SAMSUNG_YPR1_PAD
97#define BUTTON_DRIVER_CLOSE
98
99/* We have WM1808, which so far is compatible with the following */
100#define HAVE_WM8978
101
102/* For the moment the only supported frequency is 44kHz,
103 * even if the codec supports more (see wmcodec-ypr1.c)
104 */
105#define HW_SAMPR_CAPS SAMPR_CAP_44
106
107/* define the bitmask of recording sample rates */
108#define REC_SAMPR_CAPS HW_SAMPR_CAPS /* Same as playback */
109
110/* We have the Si4709 */
111#define CONFIG_TUNER SI4700
112#define HAVE_TUNER_PWR_CTRL
113#define HAVE_RDS_CAP
114
115/* Define this for FM radio input available */
116#define HAVE_FMRADIO_IN
117#define INPUT_SRC_CAPS SRC_CAP_FMRADIO
118
119/* We have a GPIO pin that detects it */
120#define HAVE_HEADPHONE_DETECTION
121
122/* R1 has a standard linux RTC driver on /dev/rtc1 (->/dev/rtc)
123 * The RTC is S35392 A
124 */
125#define CONFIG_RTC APPLICATION
126
127#define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity */
128#define BATTERY_CAPACITY_MIN 600 /* min. capacity selectable */
129#define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */
130#define BATTERY_CAPACITY_INC 0 /* capacity increment */
131#define BATTERY_TYPES_COUNT 1 /* only one type */
132
133/* Define current usage levels. */
134#define CURRENT_NORMAL 24 /* ~25h, on 600mAh that's about 24mA */
135#define CURRENT_BACKLIGHT 62 /* ~6,5h -> 92mA. Minus 24mA normal that gives us 68mA */
136
137/* R1's fuel gauge max17040 can supply both kind of values */
138#define CONFIG_BATTERY_MEASURE PERCENTAGE_MEASURE
139
140/* Hardware controls charging, we can monitor */
141#define CONFIG_CHARGING CHARGING_MONITOR
142
143#define CONFIG_LCD LCD_SAMSUNGYPR1
144
145/* Define this if you have a software controlled poweroff */
146#define HAVE_SW_POWEROFF
147
148/* define this if the target has volume keys which can be used in the lists */
149#define HAVE_VOLUME_IN_LIST
150
151/* This mount point resides in the rootfs, binded to /mnt/media0/.rockbox */
152#define BOOTDIR "/.rockbox"