qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [PATCH v2 2/2] arm: exynos4: Add dma support for smdkc210


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-arm] [PATCH v2 2/2] arm: exynos4: Add dma support for smdkc210
Date: Tue, 30 Oct 2018 15:27:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 30/10/18 15:06, Peter Maydell wrote:
On 30 October 2018 at 11:40, Philippe Mathieu-Daudé <address@hidden> wrote:
From: Guenter Roeck <address@hidden>

QEMU already supports pl330. Instantiate it for smdkc210.

Signed-off-by: Guenter Roeck <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
[PMD: Do not set default qdev properties]
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
  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 :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]