diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-07 14:33:17 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-07 18:34:28 +0000 |
commit | c0276c83524773e5a64d85936f924e7d85142131 (patch) | |
tree | ff0fbf26552511abdad584a3c7a4282847052a7d /firmware/export/config | |
parent | 7381e8bd4dcaa65b0993bdc0a6b22e4455553898 (diff) | |
download | rockbox-c0276c83524773e5a64d85936f924e7d85142131.tar.gz rockbox-c0276c83524773e5a64d85936f924e7d85142131.zip |
yp-r1: Fix some of the simulator build issues.
Change-Id: I167b801acaff9d36f3fd2fa57ba295d05816c60d
Diffstat (limited to 'firmware/export/config')
-rw-r--r-- | firmware/export/config/samsungypr1.h | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/firmware/export/config/samsungypr1.h b/firmware/export/config/samsungypr1.h index 42b46e0699..710cc3a3db 100644 --- a/firmware/export/config/samsungypr1.h +++ b/firmware/export/config/samsungypr1.h | |||
@@ -5,15 +5,15 @@ | |||
5 | 5 | ||
6 | /* We don't run on hardware directly */ | 6 | /* We don't run on hardware directly */ |
7 | /* YP-R1 need it too of course */ | 7 | /* YP-R1 need it too of course */ |
8 | #ifndef SIMULATOR | ||
8 | #define CONFIG_PLATFORM (PLATFORM_HOSTED) | 9 | #define CONFIG_PLATFORM (PLATFORM_HOSTED) |
10 | #endif | ||
9 | 11 | ||
10 | /* For Rolo and boot loader */ | 12 | /* For Rolo and boot loader */ |
11 | #define MODEL_NUMBER 101 | 13 | #define MODEL_NUMBER 101 |
12 | 14 | ||
13 | #define MODEL_NAME "Samsung YP-R1" | 15 | #define MODEL_NAME "Samsung YP-R1" |
14 | 16 | ||
15 | #define USB_NONE | ||
16 | |||
17 | /* define this if you have a bitmap LCD display */ | 17 | /* define this if you have a bitmap LCD display */ |
18 | #define HAVE_LCD_BITMAP | 18 | #define HAVE_LCD_BITMAP |
19 | 19 | ||
@@ -107,17 +107,6 @@ | |||
107 | /* define the bitmask of recording sample rates */ | 107 | /* define the bitmask of recording sample rates */ |
108 | #define REC_SAMPR_CAPS HW_SAMPR_CAPS /* Same as playback */ | 108 | #define REC_SAMPR_CAPS HW_SAMPR_CAPS /* Same as playback */ |
109 | 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 | 110 | ||
122 | /* R1 has a standard linux RTC driver on /dev/rtc1 (->/dev/rtc) | 111 | /* R1 has a standard linux RTC driver on /dev/rtc1 (->/dev/rtc) |
123 | * The RTC is S35392 A | 112 | * The RTC is S35392 A |
@@ -130,10 +119,6 @@ | |||
130 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ | 119 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ |
131 | #define BATTERY_TYPES_COUNT 1 /* only one type */ | 120 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
132 | 121 | ||
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 */ | 122 | /* R1's fuel gauge max17040 can supply both kind of values */ |
138 | #define CONFIG_BATTERY_MEASURE PERCENTAGE_MEASURE | 123 | #define CONFIG_BATTERY_MEASURE PERCENTAGE_MEASURE |
139 | 124 | ||
@@ -154,3 +139,26 @@ | |||
154 | /* No special storage */ | 139 | /* No special storage */ |
155 | #define CONFIG_STORAGE STORAGE_HOSTFS | 140 | #define CONFIG_STORAGE STORAGE_HOSTFS |
156 | #define HAVE_STORAGE_FLUSH | 141 | #define HAVE_STORAGE_FLUSH |
142 | |||
143 | /** Non-simulator section **/ | ||
144 | #ifndef SIMULATOR | ||
145 | |||
146 | #define USB_NONE | ||
147 | |||
148 | /* We have the Si4709 */ | ||
149 | #define CONFIG_TUNER SI4700 | ||
150 | #define HAVE_TUNER_PWR_CTRL | ||
151 | #define HAVE_RDS_CAP | ||
152 | |||
153 | /* Define this for FM radio input available */ | ||
154 | #define HAVE_FMRADIO_IN | ||
155 | #define INPUT_SRC_CAPS SRC_CAP_FMRADIO | ||
156 | |||
157 | /* We have a GPIO pin that detects it */ | ||
158 | #define HAVE_HEADPHONE_DETECTION | ||
159 | |||
160 | /* Define current usage levels. */ | ||
161 | #define CURRENT_NORMAL 24 /* ~25h, on 600mAh that's about 24mA */ | ||
162 | #define CURRENT_BACKLIGHT 62 /* ~6,5h -> 92mA. Minus 24mA normal that gives us 68mA */ | ||
163 | |||
164 | #endif /* SIMULATOR */ | ||