aboutsummaryrefslogtreecommitdiff
path: root/hw/tosa.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-02-11 23:57:37 +0300
committerAndrzej Zaborowski <balrog@zabor.org>2011-02-11 23:31:16 +0100
commit2e4b4e79c6da9780d5f51a992249b51818ba5959 (patch)
tree488c5faaca936c5c357028323e307d71a5819351 /hw/tosa.c
parentbb70651e45c798d301549aa2e12ea6beb858c21d (diff)
downloadqemu-2e4b4e79c6da9780d5f51a992249b51818ba5959.zip
qemu-2e4b4e79c6da9780d5f51a992249b51818ba5959.tar.gz
qemu-2e4b4e79c6da9780d5f51a992249b51818ba5959.tar.bz2
tosa: we aren't connected to VBus, pass this info to Linux kernel
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/tosa.c')
-rw-r--r--hw/tosa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/tosa.c b/hw/tosa.c
index 0bfab16..b8b6c4f 100644
--- a/hw/tosa.c
+++ b/hw/tosa.c
@@ -25,6 +25,7 @@
#define TOSA_RAM 0x04000000
#define TOSA_ROM 0x00800000
+#define TOSA_GPIO_USB_IN (5)
#define TOSA_GPIO_nSD_DETECT (9)
#define TOSA_GPIO_ON_RESET (19)
#define TOSA_GPIO_CF_IRQ (21) /* CF slot0 Ready */
@@ -115,6 +116,9 @@ static void tosa_gpio_setup(PXA2xxState *cpu,
qdev_connect_gpio_out(scp1, TOSA_GPIO_WLAN_LED, outsignals[3]);
qdev_connect_gpio_out(scp1, TOSA_GPIO_TC6393XB_L3V_ON, tc6393xb_l3v_get(tmio));
+
+ /* UDC Vbus */
+ qemu_irq_raise(qdev_get_gpio_in(cpu->gpio, TOSA_GPIO_USB_IN));
}
static uint32_t tosa_ssp_tansfer(SSISlave *dev, uint32_t value)