aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuha Riihimäki <juha.riihimaki@nokia.com>2012-06-07 13:02:29 +0930
committerPeter Maydell <peter.maydell@linaro.org>2012-07-25 13:35:05 +0100
commit2324f4fe8172d9016f5ed3bdfc6cab81bd36c2ae (patch)
treebd034219290be7eaa1a1dd7464ad0308060412ad
parent86f03b67bbcef5472afaaf41017e8fe29a300bf4 (diff)
downloadqemu-arm-2324f4fe8172d9016f5ed3bdfc6cab81bd36c2ae.tar.gz
musb: add dummy support for ulpi pass-through registers
Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
-rw-r--r--hw/usb/hcd-musb.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/hw/usb/hcd-musb.c b/hw/usb/hcd-musb.c
index fa9385ee49..0e860dadb3 100644
--- a/hw/usb/hcd-musb.c
+++ b/hw/usb/hcd-musb.c
@@ -65,6 +65,7 @@
#define MUSB_HDRC_ULPI_REGDATA 0x74
#define MUSB_HDRC_ULPI_REGADDR 0x75
#define MUSB_HDRC_ULPI_REGCTL 0x76
+#define MUSB_HDRC_ULPI_RAWDATA 0x77
/* Extended config & PHY control */
#define MUSB_HDRC_ENDCOUNT 0x78 /* 8 bit */
@@ -1291,6 +1292,16 @@ static uint32_t musb_readb(void *opaque, target_phys_addr_t addr)
ep = ((addr - MUSB_HDRC_FIFO) >> 2) & 0xf;
return musb_read_fifo(s->ep + ep);
+ case MUSB_HDRC_ULPI_REGADDR:
+ case MUSB_HDRC_ULPI_REGDATA:
+ case MUSB_HDRC_ULPI_RAWDATA:
+ /* TODO */
+ return 0x00;
+
+ case MUSB_HDRC_ULPI_REGCTL:
+ /* TODO */
+ return 0x02;
+
default:
TRACE("unknown register 0x%02x", (int) addr);
return 0x00;
@@ -1378,6 +1389,13 @@ static void musb_writeb(void *opaque, target_phys_addr_t addr, uint32_t value)
musb_write_fifo(s->ep + ep, value & 0xff);
break;
+ case MUSB_HDRC_ULPI_REGADDR:
+ case MUSB_HDRC_ULPI_REGCTL:
+ case MUSB_HDRC_ULPI_REGDATA:
+ case MUSB_HDRC_ULPI_RAWDATA:
+ /* TODO */
+ break;
+
default:
TRACE("unknown register 0x%02x", (int) addr);
break;