summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/usb-jz4740.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-26 21:15:40 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-26 21:15:40 +0000
commit38436038a9e50e8314967672fb5e7b9a5009a4be (patch)
treede8509ed132bbc5a4c039b33950284d525f0485a /firmware/target/mips/ingenic_jz47xx/usb-jz4740.c
parent935fad7fd1bf16477447f0ff9745f5a72e3bfd62 (diff)
downloadrockbox-38436038a9e50e8314967672fb5e7b9a5009a4be.tar.gz
rockbox-38436038a9e50e8314967672fb5e7b9a5009a4be.tar.bz2
rockbox-38436038a9e50e8314967672fb5e7b9a5009a4be.zip
Ingenic Jz4740:
* Add initial RoLo support * Don't enable IRAM in plugins for now * Initial try at getting PCM working (doesn't crash anymore at least) * Replace hard-coded constant with #define in usb-jz4740 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20115 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/usb-jz4740.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/usb-jz4740.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/usb-jz4740.c b/firmware/target/mips/ingenic_jz47xx/usb-jz4740.c
index 2dd73c01a4..14656eed5f 100644
--- a/firmware/target/mips/ingenic_jz47xx/usb-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/usb-jz4740.c
@@ -730,7 +730,7 @@ int usb_drv_send_nonblocking(int endpoint, void* ptr, int length)
{
//dma_cache_wback_inv((unsigned long)ptr, length);
__dcache_writeback_all();
- REG_USB_REG_ADDR1 = (unsigned long)ptr & 0x7fffffff;
+ REG_USB_REG_ADDR1 = PHYSADDR((unsigned long)ptr);
REG_USB_REG_COUNT1 = length;
REG_USB_REG_CNTL1 = (USB_CNTL_INTR_EN | USB_CNTL_MODE_1 |
USB_CNTL_DIR_IN | USB_CNTL_ENA |
@@ -780,7 +780,7 @@ int usb_drv_recv(int endpoint, void* ptr, int length)
{
//dma_cache_wback_inv((unsigned long)ptr, length);
__dcache_writeback_all();
- REG_USB_REG_ADDR2 = (unsigned long)ptr & 0x7fffffff;
+ REG_USB_REG_ADDR2 = PHYSADDR((unsigned long)ptr);
REG_USB_REG_COUNT2 = length;
REG_USB_REG_CNTL2 = (USB_CNTL_INTR_EN | USB_CNTL_MODE_1 |
USB_CNTL_ENA | USB_CNTL_EP(endpoint) |