summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-07 14:33:17 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-07 18:34:28 +0000
commitc0276c83524773e5a64d85936f924e7d85142131 (patch)
treeff0fbf26552511abdad584a3c7a4282847052a7d /firmware
parent7381e8bd4dcaa65b0993bdc0a6b22e4455553898 (diff)
downloadrockbox-c0276c83524773e5a64d85936f924e7d85142131.tar.gz
rockbox-c0276c83524773e5a64d85936f924e7d85142131.tar.bz2
rockbox-c0276c83524773e5a64d85936f924e7d85142131.zip
yp-r1: Fix some of the simulator build issues.
Change-Id: I167b801acaff9d36f3fd2fa57ba295d05816c60d
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config/samsungypr1.h42
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 @@
/* We don't run on hardware directly */
/* YP-R1 need it too of course */
+#ifndef SIMULATOR
#define CONFIG_PLATFORM (PLATFORM_HOSTED)
+#endif
/* For Rolo and boot loader */
#define MODEL_NUMBER 101
#define MODEL_NAME "Samsung YP-R1"
-#define USB_NONE
-
/* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP
@@ -107,17 +107,6 @@
/* define the bitmask of recording sample rates */
#define REC_SAMPR_CAPS HW_SAMPR_CAPS /* Same as playback */
-/* We have the Si4709 */
-#define CONFIG_TUNER SI4700
-#define HAVE_TUNER_PWR_CTRL
-#define HAVE_RDS_CAP
-
-/* Define this for FM radio input available */
-#define HAVE_FMRADIO_IN
-#define INPUT_SRC_CAPS SRC_CAP_FMRADIO
-
-/* We have a GPIO pin that detects it */
-#define HAVE_HEADPHONE_DETECTION
/* R1 has a standard linux RTC driver on /dev/rtc1 (->/dev/rtc)
* The RTC is S35392 A
@@ -130,10 +119,6 @@
#define BATTERY_CAPACITY_INC 0 /* capacity increment */
#define BATTERY_TYPES_COUNT 1 /* only one type */
-/* Define current usage levels. */
-#define CURRENT_NORMAL 24 /* ~25h, on 600mAh that's about 24mA */
-#define CURRENT_BACKLIGHT 62 /* ~6,5h -> 92mA. Minus 24mA normal that gives us 68mA */
-
/* R1's fuel gauge max17040 can supply both kind of values */
#define CONFIG_BATTERY_MEASURE PERCENTAGE_MEASURE
@@ -154,3 +139,26 @@
/* No special storage */
#define CONFIG_STORAGE STORAGE_HOSTFS
#define HAVE_STORAGE_FLUSH
+
+/** Non-simulator section **/
+#ifndef SIMULATOR
+
+#define USB_NONE
+
+/* We have the Si4709 */
+#define CONFIG_TUNER SI4700
+#define HAVE_TUNER_PWR_CTRL
+#define HAVE_RDS_CAP
+
+/* Define this for FM radio input available */
+#define HAVE_FMRADIO_IN
+#define INPUT_SRC_CAPS SRC_CAP_FMRADIO
+
+/* We have a GPIO pin that detects it */
+#define HAVE_HEADPHONE_DETECTION
+
+/* Define current usage levels. */
+#define CURRENT_NORMAL 24 /* ~25h, on 600mAh that's about 24mA */
+#define CURRENT_BACKLIGHT 62 /* ~6,5h -> 92mA. Minus 24mA normal that gives us 68mA */
+
+#endif /* SIMULATOR */