From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHG5p-00004t-1a for qemu-devel@nongnu.org; Mon, 29 Oct 2018 18:33:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHG5o-0006SU-CH for qemu-devel@nongnu.org; Mon, 29 Oct 2018 18:33:05 -0400 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Mon, 29 Oct 2018 23:32:05 +0100 Message-Id: <20181029223207.31878-2-philmd@redhat.com> In-Reply-To: <20181029223207.31878-1-philmd@redhat.com> References: <20181029223207.31878-1-philmd@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 1/3] arm: allwinner: Enable USB OHCI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Icenowy Zheng , Guenter Roeck , Gerd Hoffmann Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Beniamino Galvani From: Guenter Roeck Signed-off-by: Guenter Roeck Reviewed-by: Philippe Mathieu-Daud=C3=A9 [PMD: Intented tabs -> space] Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/allwinner-a10.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/arm/allwinner-a10.c b/hw/arm/allwinner-a10.c index 9fe875cdb5..0a8ac929f5 100644 --- a/hw/arm/allwinner-a10.c +++ b/hw/arm/allwinner-a10.c @@ -22,6 +22,8 @@ #include "hw/sysbus.h" #include "hw/devices.h" #include "hw/arm/allwinner-a10.h" +#include "hw/boards.h" +#include "hw/usb/hcd-ehci.h" =20 static void aw_a10_init(Object *obj) { @@ -110,6 +112,11 @@ static void aw_a10_realize(DeviceState *dev, Error *= *errp) /* FIXME use a qdev chardev prop instead of serial_hd() */ serial_mm_init(get_system_memory(), AW_A10_UART0_REG_BASE, 2, s->irq= [1], 115200, serial_hd(0), DEVICE_NATIVE_ENDIAN); + + if (machine_usb(current_machine)) { + sysbus_create_simple("sysbus-ohci", 0x01c14400, s->irq[64]); + sysbus_create_simple("sysbus-ohci", 0x01c1c400, s->irq[65]); + } } =20 static void aw_a10_class_init(ObjectClass *oc, void *data) --=20 2.17.2