summaryrefslogtreecommitdiff
path: root/firmware/export/config/sonynwzlinux.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-09-16 23:29:50 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-09-17 00:03:45 +0200
commita0fca0c7bf3bd1c121667a1e66614646a6b96752 (patch)
treee5e53563357dd75a057531cad5f293f99c26fa57 /firmware/export/config/sonynwzlinux.h
parentac57f96838b53e574477d13bf41bc54711a70c21 (diff)
Add simulator support for the A860
This requires a few changes unrelated to the A860 because configure unsets APPLICATION but the NWZ is an application! Change-Id: Id91aa23193383ac95886b281653da5286edd9caf
Diffstat (limited to 'firmware/export/config/sonynwzlinux.h')
-rw-r--r--firmware/export/config/sonynwzlinux.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/firmware/export/config/sonynwzlinux.h b/firmware/export/config/sonynwzlinux.h
index 4c66651e6b..4d95ef9cdd 100644
--- a/firmware/export/config/sonynwzlinux.h
+++ b/firmware/export/config/sonynwzlinux.h
@@ -2,7 +2,9 @@
* This config file is for the Sony NWZ Linux based targets
*/
+#ifndef SIMULATOR
#define CONFIG_PLATFORM (PLATFORM_HOSTED)
+#endif
/* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP
@@ -64,10 +66,17 @@
#define CONFIG_KEYPAD SONY_NWZ_PAD
#define HAS_BUTTON_HOLD
+/** Non-simulator section **/
+#ifndef SIMULATOR
/* We have usb power and can detect usb but it is handled by Linux */
#define HAVE_USB_POWER
#define USB_NONE
+/* Audio codec */
+#define HAVE_NWZ_LINUX_CODEC
+
+#endif /* SIMULATOR */
+
#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
/* Linux controlls charging, we can monitor */
@@ -92,9 +101,6 @@
/* Battery */
#define BATTERY_TYPES_COUNT 1
-/* Audio codec */
-#define HAVE_NWZ_LINUX_CODEC
-
/* special define to be use in various places */
#define SONY_NWZ_LINUX