diff options
author | Lorenzo Miori <memorys60@gmail.com> | 2013-02-23 16:59:49 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2013-03-06 00:21:22 +0100 |
commit | 60592165ca998875e4bc46c4396c5a123a7e9dbb (patch) | |
tree | 60b53e6b733fd49bef249761789e97a4bedbef03 /firmware/export/config/samsungypr0.h | |
parent | 3e4be68f8b596cf3467f993dc9a210a3d901ca1c (diff) | |
download | rockbox-60592165ca998875e4bc46c4396c5a123a7e9dbb.tar.gz rockbox-60592165ca998875e4bc46c4396c5a123a7e9dbb.zip |
Samsung YP-R0 hosted target code refactoring
As per title this patch aims at splitting common target
code and specific target code in a better way to
support future ports within the same environment
(e.g. Samsung YP-R1 where the Linux and the SoC
are the same, with differences in hardware devices
handling)
Change-Id: I67b4918c46403b184d3d8f42ab5aae7d01037fd0
Reviewed-on: http://gerrit.rockbox.org/409
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
Tested-by: Thomas Martitz <kugel@rockbox.org>
Diffstat (limited to 'firmware/export/config/samsungypr0.h')
-rw-r--r-- | firmware/export/config/samsungypr0.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/firmware/export/config/samsungypr0.h b/firmware/export/config/samsungypr0.h index debe9a3f80..c81fc645bb 100644 --- a/firmware/export/config/samsungypr0.h +++ b/firmware/export/config/samsungypr0.h | |||
@@ -12,9 +12,6 @@ | |||
12 | 12 | ||
13 | #define MODEL_NAME "Samsung YP-R0" | 13 | #define MODEL_NAME "Samsung YP-R0" |
14 | 14 | ||
15 | /* Indeed to check that */ | ||
16 | /*TODO: R0 should charge battery automatically, no software stuff to manage that. Just to know about some as3543 registers, that should be set after loading samsung's afe.ko module | ||
17 | */ | ||
18 | /*TODO: implement USB data transfer management -> see safe mode script and think a way to implemtent it in the code */ | 15 | /*TODO: implement USB data transfer management -> see safe mode script and think a way to implemtent it in the code */ |
19 | #define USB_NONE | 16 | #define USB_NONE |
20 | 17 | ||
@@ -94,20 +91,26 @@ | |||
94 | #define HAVE_AS3514 | 91 | #define HAVE_AS3514 |
95 | #define HAVE_AS3543 | 92 | #define HAVE_AS3543 |
96 | 93 | ||
94 | /* We don't have hardware controls */ | ||
97 | #define HAVE_SW_TONE_CONTROLS | 95 | #define HAVE_SW_TONE_CONTROLS |
98 | 96 | ||
97 | /* We have the Si4709, which supports RDS */ | ||
99 | #define CONFIG_TUNER SI4700 | 98 | #define CONFIG_TUNER SI4700 |
100 | #define HAVE_TUNER_PWR_CTRL | 99 | #define HAVE_TUNER_PWR_CTRL |
101 | |||
102 | #define HAVE_RDS_CAP | 100 | #define HAVE_RDS_CAP |
103 | 101 | ||
104 | /* Define this for FM radio input available */ | 102 | /* Define this for FM radio input available */ |
105 | #define HAVE_FMRADIO_IN | 103 | #define HAVE_FMRADIO_IN |
106 | #define INPUT_SRC_CAPS SRC_CAP_FMRADIO | 104 | #define INPUT_SRC_CAPS SRC_CAP_FMRADIO |
107 | 105 | ||
108 | /* We have a GPIO that detects it */ | 106 | /* We have a GPIO pin that detects this */ |
109 | #define HAVE_HEADPHONE_DETECTION | 107 | #define HAVE_HEADPHONE_DETECTION |
110 | 108 | ||
109 | /* FIXME | ||
110 | * Lot of people reports bad battery life and funny charging times. | ||
111 | * Check what's going on... | ||
112 | */ | ||
113 | |||
111 | #define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity */ | 114 | #define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity */ |
112 | #define BATTERY_CAPACITY_MIN 600 /* min. capacity selectable */ | 115 | #define BATTERY_CAPACITY_MIN 600 /* min. capacity selectable */ |
113 | #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */ | 116 | #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */ |