From 6a94f1e995fee94c792a4bef2fd0bce1974ede7b Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 18 Oct 2020 10:16:27 -0400 Subject: sonynwz: Properly support multidrive, with hotswap of the SD card Change-Id: I7eb8efb0986a395d5ffbcc06a54bb680e0b59e9d --- firmware/export/config/sonynwzlinux.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'firmware/export/config/sonynwzlinux.h') diff --git a/firmware/export/config/sonynwzlinux.h b/firmware/export/config/sonynwzlinux.h index 074ad1c417..71affd1584 100644 --- a/firmware/export/config/sonynwzlinux.h +++ b/firmware/export/config/sonynwzlinux.h @@ -57,9 +57,6 @@ /* The number of bytes reserved for loadable plugins */ #define PLUGIN_BUFFER_SIZE 0x100000 - - - #define CONFIG_TUNER SI4700 /* There is no hardware tone control */ @@ -105,8 +102,18 @@ /* Define this to the CPU frequency */ #define CPU_FREQ 532000000 +#ifdef NWZ_HAS_SD +/* External SD card can be mounted */ +#define CONFIG_STORAGE (STORAGE_HOSTFS|STORAGE_SD) +#define HAVE_MULTIDRIVE /* But _not_ CONFIG_STORAGE_MULTI */ +#define NUM_DRIVES 2 +#define HAVE_HOTSWAP +#define MULTIDRIVE_DIR "/mnt/media" +#define MULTIDRIVE_DEV "/sys/block/mmcblk1" +#else /* No special storage */ #define CONFIG_STORAGE STORAGE_HOSTFS +#endif #define HAVE_STORAGE_FLUSH /* Battery */ -- cgit v1.2.3