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)
downloadrockbox-a0fca0c7bf3bd1c121667a1e66614646a6b96752.tar.gz
rockbox-a0fca0c7bf3bd1c121667a1e66614646a6b96752.zip
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 @@
2 * This config file is for the Sony NWZ Linux based targets 2 * This config file is for the Sony NWZ Linux based targets
3 */ 3 */
4 4
5#ifndef SIMULATOR
5#define CONFIG_PLATFORM (PLATFORM_HOSTED) 6#define CONFIG_PLATFORM (PLATFORM_HOSTED)
7#endif
6 8
7/* define this if you have a bitmap LCD display */ 9/* define this if you have a bitmap LCD display */
8#define HAVE_LCD_BITMAP 10#define HAVE_LCD_BITMAP
@@ -64,10 +66,17 @@
64#define CONFIG_KEYPAD SONY_NWZ_PAD 66#define CONFIG_KEYPAD SONY_NWZ_PAD
65#define HAS_BUTTON_HOLD 67#define HAS_BUTTON_HOLD
66 68
69/** Non-simulator section **/
70#ifndef SIMULATOR
67/* We have usb power and can detect usb but it is handled by Linux */ 71/* We have usb power and can detect usb but it is handled by Linux */
68#define HAVE_USB_POWER 72#define HAVE_USB_POWER
69#define USB_NONE 73#define USB_NONE
70 74
75/* Audio codec */
76#define HAVE_NWZ_LINUX_CODEC
77
78#endif /* SIMULATOR */
79
71#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE 80#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
72 81
73/* Linux controlls charging, we can monitor */ 82/* Linux controlls charging, we can monitor */
@@ -92,9 +101,6 @@
92/* Battery */ 101/* Battery */
93#define BATTERY_TYPES_COUNT 1 102#define BATTERY_TYPES_COUNT 1
94 103
95/* Audio codec */
96#define HAVE_NWZ_LINUX_CODEC
97
98/* special define to be use in various places */ 104/* special define to be use in various places */
99#define SONY_NWZ_LINUX 105#define SONY_NWZ_LINUX
100 106