From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Guenter Roeck <linux@roeck-us.net>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Igor Mitsyanko <i.mitsyanko@gmail.com>,
Alistair Francis <alistair@alistair23.me>,
QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
Richard Henderson <richard.henderson@linaro.org>
Subject: Re: [Qemu-devel] [PATCH v2 2/2] arm: exynos4: Add dma support for smdkc210
Date: Tue, 30 Oct 2018 15:27:08 +0100 [thread overview]
Message-ID: <b27c4766-794e-a3dd-7931-6c54e30bd30d@redhat.com> (raw)
In-Reply-To: <CAFEAcA-4_fn19H9aCio4QKikdMBv_oicgWNrThCXshNJ3HOnig@mail.gmail.com>
On 30/10/18 15:06, Peter Maydell wrote:
> On 30 October 2018 at 11:40, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>> From: Guenter Roeck <linux@roeck-us.net>
>>
>> QEMU already supports pl330. Instantiate it for smdkc210.
>>
>> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
>> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
>> [PMD: Do not set default qdev properties]
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>> ---
>> hw/arm/exynos4_boards.c | 24 ++++++++++++++++++++++++
>> 1 file changed, 24 insertions(+)
>
>> static void exynos4_boards_init_ram(Exynos4BoardState *s,
>> MemoryRegion *system_mem,
>> unsigned long ram_size)
>> @@ -171,6 +187,14 @@ static void smdkc210_init(MachineState *machine)
>>
>> lan9215_init(SMDK_LAN9118_BASE_ADDR,
>> qemu_irq_invert(s->soc->irq_table[exynos4210_get_irq(37, 1)]));
>> +
>> + pl330_init(SMDK_PL330_BASE0_ADDR,
>> + qemu_irq_invert(s->soc->irq_table[exynos4210_get_irq(35, 1)]), 32);
>> + pl330_init(SMDK_PL330_BASE1_ADDR,
>> + qemu_irq_invert(s->soc->irq_table[exynos4210_get_irq(36, 1)]), 32);
>> + pl330_init(SMDK_PL330_BASE2_ADDR,
>> + qemu_irq_invert(s->soc->irq_table[exynos4210_get_irq(34, 1)]), 1);
>> +
>> arm_load_kernel(ARM_CPU(first_cpu), &exynos4_board_binfo);
>> }
>
> Are the PL330s really on the board and not part of the SoC? The
> layout of the dts files in the kernel suggests they're in the
> SoC, in which case they would belong in hw/arm/exynos4210.c.
Yes you are right, I missed that :|
next prev parent reply other threads:[~2018-10-30 14:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-30 11:40 [Qemu-devel] [PATCH v2 0/2] hw/arm/exynos4: Add DMA support for SMDKC210 board Philippe Mathieu-Daudé
2018-10-30 11:40 ` [Qemu-devel] [PATCH v2 1/2] hw/arm/xilinx_zynq: Use the ARRAY_SIZE macro Philippe Mathieu-Daudé
2018-10-30 14:07 ` Peter Maydell
2018-10-30 14:26 ` Philippe Mathieu-Daudé
2018-10-30 11:40 ` [Qemu-devel] [PATCH v2 2/2] arm: exynos4: Add dma support for smdkc210 Philippe Mathieu-Daudé
2018-10-30 14:06 ` Peter Maydell
2018-10-30 14:27 ` Philippe Mathieu-Daudé [this message]
2018-10-31 11:20 ` [Qemu-devel] [PATCH v2 0/2] hw/arm/exynos4: Add DMA support for SMDKC210 board no-reply
2018-10-31 16:00 ` Philippe Mathieu-Daudé
2018-11-01 17:18 ` Peter Maydell
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=b27c4766-794e-a3dd-7931-6c54e30bd30d@redhat.com \
--to=philmd@redhat.com \
--cc=alistair@alistair23.me \
--cc=edgar.iglesias@gmail.com \
--cc=i.mitsyanko@gmail.com \
--cc=linux@roeck-us.net \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).