From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
Icenowy Zheng <icenowy@aosc.xyz>,
Guenter Roeck <linux@roeck-us.net>,
Gerd Hoffmann <kraxel@redhat.com>
Cc: "Beniamino Galvani" <b.galvani@gmail.com>,
qemu-arm@nongnu.org, "Philippe Mathieu-Daudé" <philmd@redhat.com>,
qemu-devel@nongnu.org
Subject: [Qemu-arm] [PATCH 1/3] arm: allwinner: Enable USB OHCI
Date: Mon, 29 Oct 2018 23:32:05 +0100 [thread overview]
Message-ID: <20181029223207.31878-2-philmd@redhat.com> (raw)
In-Reply-To: <20181029223207.31878-1-philmd@redhat.com>
From: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[PMD: Intented tabs -> space]
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
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"
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]);
+ }
}
static void aw_a10_class_init(ObjectClass *oc, void *data)
--
2.17.2
WARNING: multiple messages have this Message-ID (diff)
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
Icenowy Zheng <icenowy@aosc.xyz>,
Guenter Roeck <linux@roeck-us.net>,
Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Beniamino Galvani" <b.galvani@gmail.com>
Subject: [Qemu-devel] [PATCH 1/3] arm: allwinner: Enable USB OHCI
Date: Mon, 29 Oct 2018 23:32:05 +0100 [thread overview]
Message-ID: <20181029223207.31878-2-philmd@redhat.com> (raw)
In-Reply-To: <20181029223207.31878-1-philmd@redhat.com>
From: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[PMD: Intented tabs -> space]
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
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"
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]);
+ }
}
static void aw_a10_class_init(ObjectClass *oc, void *data)
--
2.17.2
next prev parent reply other threads:[~2018-10-29 22:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-29 22:32 [Qemu-arm] [PATCH 0/3] hw/arm: Enable USB OHCI/EHCI on Allwinner A10 Philippe Mathieu-Daudé
2018-10-29 22:32 ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-10-29 22:32 ` Philippe Mathieu-Daudé [this message]
2018-10-29 22:32 ` [Qemu-devel] [PATCH 1/3] arm: allwinner: Enable USB OHCI Philippe Mathieu-Daudé
2018-10-29 22:32 ` [Qemu-arm] [PATCH 2/3] usb: ehci: Add support for Allwinner A10 Philippe Mathieu-Daudé
2018-10-29 22:32 ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-10-30 6:37 ` [Qemu-arm] " Gerd Hoffmann
2018-10-30 6:37 ` [Qemu-devel] " Gerd Hoffmann
2018-10-29 22:32 ` [Qemu-devel] [PATCH 3/3] arm: allwinner: Enable USB EHCI Philippe Mathieu-Daudé
2018-10-29 22:32 ` Philippe Mathieu-Daudé
2018-10-30 6:38 ` [Qemu-arm] " Gerd Hoffmann
2018-10-30 6:38 ` [Qemu-devel] " Gerd Hoffmann
2018-10-30 22:39 ` Philippe Mathieu-Daudé
2018-10-30 22:39 ` Philippe Mathieu-Daudé
2018-11-05 8:16 ` [Qemu-arm] " Gerd Hoffmann
2018-11-05 8:16 ` [Qemu-devel] " Gerd Hoffmann
2018-11-07 18:38 ` [Qemu-arm] " Guenter Roeck
2018-11-07 18:38 ` [Qemu-devel] " Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181029223207.31878-2-philmd@redhat.com \
--to=philmd@redhat.com \
--cc=b.galvani@gmail.com \
--cc=icenowy@aosc.xyz \
--cc=kraxel@redhat.com \
--cc=linux@roeck-us.net \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.