diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-04-21 01:47:02 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-04-21 18:31:55 +0000 |
commit | 75cb8ba8a4c3b5f2a5bd7195ef3d61089151a6f5 (patch) | |
tree | c528789d595a3f410baaa595229094932c05d7ff /firmware/target/mips/ingenic_x1000/system-x1000.c | |
parent | 088ebb5fac02932178fe0da31dd8966472225bdf (diff) | |
download | rockbox-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-x1000.c')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/system-x1000.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/system-x1000.c b/firmware/target/mips/ingenic_x1000/system-x1000.c index 33d8db7222..c0b0dbc65e 100644 --- a/firmware/target/mips/ingenic_x1000/system-x1000.c +++ b/firmware/target/mips/ingenic_x1000/system-x1000.c | |||
@@ -191,6 +191,8 @@ static void UIRQ(void) | |||
191 | } | 191 | } |
192 | 192 | ||
193 | #define intr(name) extern __attribute__((weak, alias("UIRQ"))) void name(void) | 193 | #define intr(name) extern __attribute__((weak, alias("UIRQ"))) void name(void) |
194 | /* DWC2 USB interrupt */ | ||
195 | #define OTG INT_USB_FUNC | ||
194 | 196 | ||
195 | /* Main interrupts */ | 197 | /* Main interrupts */ |
196 | intr(DMIC); intr(AIC); intr(SFC); intr(SSI0); intr(OTG); intr(AES); | 198 | intr(DMIC); intr(AIC); intr(SFC); intr(SSI0); intr(OTG); intr(AES); |