qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Frederic Konrad <fred.konrad@greensocs.com>
To: Alistair Francis <alistair.francis@xilinx.com>
Cc: Edgar Iglesias <edgar.iglesias@xilinx.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	hyunk@xilinx.com, Mark Burton <mark.burton@greensocs.com>,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	Peter Crosthwaite <crosthwaitepeter@gmail.com>,
	Guillaume Delbergue <guillaume.delbergue@greensocs.com>
Subject: Re: [Qemu-devel] [PATCH V5 8/8] arm: xlnx-zynqmp: Add xlnx-dp and xlnx-dpdma
Date: Mon, 30 Nov 2015 10:27:54 +0100	[thread overview]
Message-ID: <565C169A.4090407@greensocs.com> (raw)
In-Reply-To: <CAKmqyKPkOfmr4tnnq0+QfatbajLD0Gr1EFPWqTAVy=g3h6qsxA@mail.gmail.com>

On 24/11/2015 04:42, Alistair Francis wrote:
> On Mon, Nov 23, 2015 at 6:53 PM, KONRAD Frederic
> <fred.konrad@greensocs.com> wrote:
>>
>> Le 20/11/2015 13:21, Alistair Francis a écrit :
>>> On Fri, Oct 16, 2015 at 7:11 PM,  <fred.konrad@greensocs.com> wrote:
>>>> From: KONRAD Frederic <fred.konrad@greensocs.com>
>>>>
>>>> This adds the DP and the DPDMA to the Zynq MP platform.
>>>>
>>>> Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
>>>> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>>>> Tested-By: Hyun Kwon <hyun.kwon@xilinx.com>
>>>> ---
>>>>   hw/arm/xlnx-zynqmp.c         | 20 ++++++++++++++++++++
>>>>   include/hw/arm/xlnx-zynqmp.h |  5 +++++
>>>>   2 files changed, 25 insertions(+)
>>>>
>>>> diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c
>>>> index b36ca3d..dfed5cd 100644
>>>> --- a/hw/arm/xlnx-zynqmp.c
>>>> +++ b/hw/arm/xlnx-zynqmp.c
>>>> @@ -32,6 +32,12 @@
>>>>   #define SATA_ADDR           0xFD0C0000
>>>>   #define SATA_NUM_PORTS      2
>>>>
>>>> +#define DP_ADDR             0xfd4a0000
>>>> +#define DP_IRQ              113
>>>> +
>>>> +#define DPDMA_ADDR          0xfd4c0000
>>>> +#define DPDMA_IRQ           116
>>>> +
>>>>   static const uint64_t gem_addr[XLNX_ZYNQMP_NUM_GEMS] = {
>>>>       0xFF0B0000, 0xFF0C0000, 0xFF0D0000, 0xFF0E0000,
>>>>   };
>>>> @@ -97,6 +103,11 @@ static void xlnx_zynqmp_init(Object *obj)
>>>>
>>>>       object_initialize(&s->sata, sizeof(s->sata), TYPE_SYSBUS_AHCI);
>>>>       qdev_set_parent_bus(DEVICE(&s->sata), sysbus_get_default());
>>>> +
>>>> +    object_initialize(&s->dp, sizeof(s->dp), TYPE_XLNX_DP);
>>>> +    qdev_set_parent_bus(DEVICE(&s->dp), sysbus_get_default());
>>> New line
>>>
>>>> +    object_initialize(&s->dpdma, sizeof(s->dpdma), TYPE_XLNX_DPDMA);
>>>> +    qdev_set_parent_bus(DEVICE(&s->dpdma), sysbus_get_default());
>>>>   }
>>>>
>>>>   static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
>>>> @@ -258,6 +269,15 @@ static void xlnx_zynqmp_realize(DeviceState *dev,
>>>> Error **errp)
>>>>
>>>>       sysbus_mmio_map(SYS_BUS_DEVICE(&s->sata), 0, SATA_ADDR);
>>>>       sysbus_connect_irq(SYS_BUS_DEVICE(&s->sata), 0,
>>>> gic_spi[SATA_INTR]);
>>>> +
>>>> +    sysbus_mmio_map(SYS_BUS_DEVICE(&s->dp), 0, DP_ADDR);
>>>> +    sysbus_connect_irq(SYS_BUS_DEVICE(&s->dp), 0, gic_spi[DP_IRQ]);
>>> New line
>>>
>>>> +    sysbus_mmio_map(SYS_BUS_DEVICE(&s->dpdma), 0, DPDMA_ADDR);
>>>> +    sysbus_connect_irq(SYS_BUS_DEVICE(&s->dpdma), 0,
>>>> gic_spi[DPDMA_IRQ]);
>>>> +    object_property_set_bool(OBJECT(&s->dp), true, "realized", &err);
>>>> +    object_property_set_bool(OBJECT(&s->dpdma), true, "realized", &err);
>>> Can you add something to check these errors?
>>
>> Ok.
> Thanks
>
>> BTW I'll move the I2C and AUX device out of xlnx-dp and put that here.
>> Is that ok with you?
> That should be fine. Is there a reason you are doing that? Does
> anything else need to access them?
No I don't thing anything else is accessing that. It's just a screen
specific stuff.
If it's fine like this then I don't bother changing that.

Fred

>
> Thanks,
>
> Alistair
>
>> Thanks,
>> Fred
>>
>>> Thanks,
>>>
>>> Alistair
>>>
>>>> +    object_property_set_link(OBJECT(&s->dp), OBJECT(&s->dpdma), "dpdma",
>>>> +                             &error_abort);
>>>>   }
>>>>
>>>>   static Property xlnx_zynqmp_props[] = {
>>>> diff --git a/include/hw/arm/xlnx-zynqmp.h b/include/hw/arm/xlnx-zynqmp.h
>>>> index 4005a99..5a4d6cc 100644
>>>> --- a/include/hw/arm/xlnx-zynqmp.h
>>>> +++ b/include/hw/arm/xlnx-zynqmp.h
>>>> @@ -24,6 +24,8 @@
>>>>   #include "hw/char/cadence_uart.h"
>>>>   #include "hw/ide/pci.h"
>>>>   #include "hw/ide/ahci.h"
>>>> +#include "hw/dma/xlnx_dpdma.h"
>>>> +#include "hw/display/xlnx_dp.h"
>>>>
>>>>   #define TYPE_XLNX_ZYNQMP "xlnx,zynqmp"
>>>>   #define XLNX_ZYNQMP(obj) OBJECT_CHECK(XlnxZynqMPState, (obj), \
>>>> @@ -66,6 +68,9 @@ typedef struct XlnxZynqMPState {
>>>>
>>>>       char *boot_cpu;
>>>>       ARMCPU *boot_cpu_ptr;
>>>> +
>>>> +    XlnxDPState dp;
>>>> +    XlnxDPDMAState dpdma;
>>>>   }  XlnxZynqMPState;
>>>>
>>>>   #define XLNX_ZYNQMP_H
>>>> --
>>>> 1.9.0
>>>>
>>>>
>>

  reply	other threads:[~2015-11-30  9:28 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-16 13:41 [Qemu-devel] [PATCH V5 0/8] Xilinx DisplayPort fred.konrad
2015-10-16 13:41 ` [Qemu-devel] [PATCH V5 1/8] i2cbus: remove unused dev field fred.konrad
2015-10-18 16:30   ` Peter Crosthwaite
2015-10-16 13:41 ` [Qemu-devel] [PATCH V5 2/8] introduce aux-bus fred.konrad
2015-10-18 17:17   ` Peter Crosthwaite
2015-10-29 15:29     ` Frederic Konrad
2015-10-16 13:41 ` [Qemu-devel] [PATCH V5 3/8] i2c: implement broadcast write fred.konrad
2015-10-18 17:31   ` Peter Crosthwaite
2015-10-16 13:41 ` [Qemu-devel] [PATCH V5 4/8] introduce dpcd module fred.konrad
2015-10-18 17:36   ` Peter Crosthwaite
2015-10-16 13:41 ` [Qemu-devel] [PATCH V5 5/8] hw/i2c-ddc.c: Implement DDC I2C slave fred.konrad
2015-10-16 13:41 ` [Qemu-devel] [PATCH V5 6/8] introduce xlnx-dpdma fred.konrad
2015-10-16 13:41 ` [Qemu-devel] [PATCH V5 7/8] introduce xlnx-dp fred.konrad
2015-11-20 10:06   ` Alistair Francis
2015-11-23 13:21     ` KONRAD Frederic
2015-11-24  3:27       ` Alistair Francis
2015-12-07 16:19     ` Frederic Konrad
2015-10-16 13:41 ` [Qemu-devel] [PATCH V5 8/8] arm: xlnx-zynqmp: Add xlnx-dp and xlnx-dpdma fred.konrad
2015-11-20 12:21   ` Alistair Francis
2015-11-23 13:23     ` KONRAD Frederic
2015-11-24  3:42       ` Alistair Francis
2015-11-30  9:27         ` Frederic Konrad [this message]
2015-12-07 23:43           ` Alistair Francis
2015-10-16 21:57 ` [Qemu-devel] [PATCH V5 0/8] Xilinx DisplayPort Alistair Francis
2015-10-19  7:43   ` Frederic Konrad
2015-11-18  5:13     ` Alistair Francis

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=565C169A.4090407@greensocs.com \
    --to=fred.konrad@greensocs.com \
    --cc=alistair.francis@xilinx.com \
    --cc=crosthwaitepeter@gmail.com \
    --cc=edgar.iglesias@xilinx.com \
    --cc=guillaume.delbergue@greensocs.com \
    --cc=hyunk@xilinx.com \
    --cc=mark.burton@greensocs.com \
    --cc=peter.maydell@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).