From: John Snow <jsnow@redhat.com>
To: Peter Crosthwaite <crosthwaitepeter@gmail.com>, qemu-devel@nongnu.org
Cc: b.galvani@gmail.com, Peter Crosthwaite <crosthwaite.peter@gmail.com>
Subject: Re: [Qemu-devel] [RFC 4/4] arm: allwinner-a10: Add SATA
Date: Mon, 12 Oct 2015 18:32:38 -0400 [thread overview]
Message-ID: <561C3506.9030400@redhat.com> (raw)
In-Reply-To: <7f3e4015110f8a5696c521a7572c3f968210f134.1444448892.git.crosthwaite.peter@gmail.com>
On 10/11/2015 12:21 PM, Peter Crosthwaite wrote:
> Add the Allwinner A10 AHCI controller module to the SoC.
>
> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
> ---
> hw/arm/allwinner-a10.c | 11 +++++++++++
> include/hw/arm/allwinner-a10.h | 5 +++++
> 2 files changed, 16 insertions(+)
>
> diff --git a/hw/arm/allwinner-a10.c b/hw/arm/allwinner-a10.c
> index 56e924d..145038d 100644
> --- a/hw/arm/allwinner-a10.c
> +++ b/hw/arm/allwinner-a10.c
> @@ -42,6 +42,9 @@ static void aw_a10_init(Object *obj)
>
> object_initialize(&s->ccm, sizeof(s->ccm), TYPE_AW_A10_CCM);
> qdev_set_parent_bus(DEVICE(&s->ccm), sysbus_get_default());
> +
> + object_initialize(&s->sata, sizeof(s->sata), TYPE_ALLWINNER_AHCI);
> + qdev_set_parent_bus(DEVICE(&s->sata), sysbus_get_default());
> }
>
> static void aw_a10_realize(DeviceState *dev, Error **errp)
> @@ -104,6 +107,14 @@ static void aw_a10_realize(DeviceState *dev, Error **errp)
> sysbusdev = SYS_BUS_DEVICE(&s->ccm);
> sysbus_mmio_map(sysbusdev, 0, AW_A10_CCM_REG_BASE);
>
> + object_property_set_bool(OBJECT(&s->sata), true, "realized", &err);
> + if (err) {
> + error_propagate(errp, err);
> + return;
> + }
> + sysbus_mmio_map(SYS_BUS_DEVICE(&s->sata), 0, AW_A10_SATA_BASE);
> + sysbus_connect_irq(SYS_BUS_DEVICE(&s->sata), 0, s->irq[56]);
> +
> /* FIXME use a qdev chardev prop instead of serial_hds[] */
> serial_mm_init(get_system_memory(), AW_A10_UART0_REG_BASE, 2, s->irq[1],
> 115200, serial_hds[0], DEVICE_NATIVE_ENDIAN);
> diff --git a/include/hw/arm/allwinner-a10.h b/include/hw/arm/allwinner-a10.h
> index 88632c0..e0daff8 100644
> --- a/include/hw/arm/allwinner-a10.h
> +++ b/include/hw/arm/allwinner-a10.h
> @@ -8,6 +8,8 @@
> #include "hw/intc/allwinner-a10-pic.h"
> #include "hw/net/allwinner_emac.h"
> #include "hw/misc/allwinner-a10-ccm.h"
> +#include "hw/ide/pci.h"
> +#include "hw/ide/ahci.h"
>
> #include "sysemu/sysemu.h"
> #include "exec/address-spaces.h"
> @@ -18,6 +20,7 @@
> #define AW_A10_PIT_REG_BASE 0x01c20c00
> #define AW_A10_UART0_REG_BASE 0x01c28000
> #define AW_A10_EMAC_BASE 0x01c0b000
> +#define AW_A10_SATA_BASE 0x01c18000
>
> #define AW_A10_SDRAM_BASE 0x40000000
>
> @@ -35,6 +38,8 @@ typedef struct AwA10State {
> AwA10PICState intc;
> AwEmacState emac;
> AwA10CCMState ccm;
> +
> + AllwinnerAHCIState sata;
> } AwA10State;
>
> #define ALLWINNER_H_
>
Does this series have a pre-requisite patchset for this to apply cleanly?
--js
next prev parent reply other threads:[~2015-10-12 22:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-11 16:21 [Qemu-devel] [RFC 0/4] AHCI patches + Allwinner SATA Peter Crosthwaite
2015-10-11 16:21 ` [Qemu-devel] [RFC 1/4] ahci: Add some MMIO debug printfs Peter Crosthwaite
2015-10-11 16:21 ` [Qemu-devel] [RFC 2/4] ahci: split realize and init Peter Crosthwaite
2015-10-11 16:21 ` [Qemu-devel] [RFC 3/4] ahci: Add allwinner AHCI Peter Crosthwaite
2015-10-12 23:09 ` John Snow
2015-10-13 4:58 ` Peter Crosthwaite
2015-10-13 18:28 ` Beniamino Galvani
2015-10-26 15:48 ` Peter Crosthwaite
2015-10-11 16:21 ` [Qemu-devel] [RFC 4/4] arm: allwinner-a10: Add SATA Peter Crosthwaite
2015-10-12 22:32 ` John Snow [this message]
2015-10-13 4:55 ` Peter Crosthwaite
2015-10-12 20:41 ` [Qemu-devel] [RFC 0/4] AHCI patches + Allwinner SATA Beniamino Galvani
2015-10-13 5:02 ` Peter Crosthwaite
2015-10-26 15:25 ` John Snow
2015-10-29 16:41 ` Peter Crosthwaite
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=561C3506.9030400@redhat.com \
--to=jsnow@redhat.com \
--cc=b.galvani@gmail.com \
--cc=crosthwaite.peter@gmail.com \
--cc=crosthwaitepeter@gmail.com \
--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.