summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/system-target.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-04-21 01:47:02 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-04-21 18:31:55 +0000
commit75cb8ba8a4c3b5f2a5bd7195ef3d61089151a6f5 (patch)
treec528789d595a3f410baaa595229094932c05d7ff /firmware/target/mips/ingenic_x1000/system-target.h
parent088ebb5fac02932178fe0da31dd8966472225bdf (diff)
downloadrockbox-75cb8ba8a4c3b5f2a5bd7195ef3d61089151a6f5.tar.gz
rockbox-75cb8ba8a4c3b5f2a5bd7195ef3d61089151a6f5.zip
FiiO M3K/X1000: add USB support
This only required a minor patch to the usb-designware driver due to DMA requiring physical addresses -- on the X1000, these differ from virtual addresses so we have to do the usual conversion. Both the mass storage and HID drivers work, but there are a few issues so this can't be considered 100% stable yet. - Mass storage might not be detected properly on insertion, and USB has to be replugged before it shows up - HID driver may occasionally panic or hang the machine Change-Id: Ia3ce7591d5928ec7cbca7953abfef01bdbd873ef
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/system-target.h')
-rw-r--r--firmware/target/mips/ingenic_x1000/system-target.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/system-target.h b/firmware/target/mips/ingenic_x1000/system-target.h
index 45a1eab1ff..e5e48e382b 100644
--- a/firmware/target/mips/ingenic_x1000/system-target.h
+++ b/firmware/target/mips/ingenic_x1000/system-target.h
@@ -42,6 +42,9 @@
42# define X1000_CPUIDLE_STATS 42# define X1000_CPUIDLE_STATS
43#endif 43#endif
44 44
45#define OTGBASE 0xb3500000
46#define USB_NUM_ENDPOINTS 9
47
45#include "mmu-mips.h" 48#include "mmu-mips.h"
46#include "mipsregs.h" 49#include "mipsregs.h"
47#include "mipsr2-endian.h" 50#include "mipsr2-endian.h"