qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hw/arm: add cache controller for Freescale i.MX6
@ 2023-12-19 10:55 Nikita Ostrenkov
  2023-12-19 16:08 ` Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Nikita Ostrenkov @ 2023-12-19 10:55 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Paolo Bonzini, Jean-Christophe Dubois, qemu-arm,
	Nikita Ostrenkov

Signed-off-by: Nikita Ostrenkov <n.ostrenkov@gmail.com>
---
 hw/arm/Kconfig    | 1 +
 hw/arm/fsl-imx6.c | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig
index 3ada335a24..386f06840c 100644
--- a/hw/arm/Kconfig
+++ b/hw/arm/Kconfig
@@ -536,6 +536,7 @@ config FSL_IMX6
     select IMX_I2C
     select IMX_USBPHY
     select WDT_IMX2
+    select PL310  # cache controller
     select SDHCI
 
 config ASPEED_SOC
diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c
index 7dc42cbfe6..f56130a7a7 100644
--- a/hw/arm/fsl-imx6.c
+++ b/hw/arm/fsl-imx6.c
@@ -154,6 +154,9 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp)
         sysbus_connect_irq(SYS_BUS_DEVICE(&s->a9mpcore), i + smp_cpus,
                            qdev_get_gpio_in(DEVICE(&s->cpu[i]), ARM_CPU_FIQ));
     }
+    
+    /* L2 cache controller */
+    sysbus_create_simple("l2x0", FSL_IMX6_PL310_ADDR, NULL);
 
     if (!sysbus_realize(SYS_BUS_DEVICE(&s->ccm), errp)) {
         return;
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] hw/arm: add cache controller for Freescale i.MX6
  2023-12-19 10:55 [PATCH] hw/arm: add cache controller for Freescale i.MX6 Nikita Ostrenkov
@ 2023-12-19 16:08 ` Peter Maydell
  2023-12-19 19:05   ` Nikita Ostrenkov
  2024-01-04 16:36 ` Philippe Mathieu-Daudé
  2024-01-05 16:24 ` Peter Maydell
  2 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2023-12-19 16:08 UTC (permalink / raw)
  To: Nikita Ostrenkov
  Cc: qemu-devel, Paolo Bonzini, Jean-Christophe Dubois, qemu-arm

On Tue, 19 Dec 2023 at 10:55, Nikita Ostrenkov <n.ostrenkov@gmail.com> wrote:
>
> Signed-off-by: Nikita Ostrenkov <n.ostrenkov@gmail.com>
> ---
>  hw/arm/Kconfig    | 1 +
>  hw/arm/fsl-imx6.c | 3 +++
>  2 files changed, 4 insertions(+)

Thanks for this patch; it looks fairly obviously right,
but I wanted to let you know I won't be able to do proper patch
review and take it into the arm queue until I get back from holidays
in January.

-- PMM


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hw/arm: add cache controller for Freescale i.MX6
  2023-12-19 16:08 ` Peter Maydell
@ 2023-12-19 19:05   ` Nikita Ostrenkov
  0 siblings, 0 replies; 5+ messages in thread
From: Nikita Ostrenkov @ 2023-12-19 19:05 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-devel, Paolo Bonzini, Jean-Christophe Dubois, qemu-arm

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

thanks for letting me know! Enjoy your holidays.

вт, 19 дек. 2023 г., 19:08 Peter Maydell <peter.maydell@linaro.org>:

> On Tue, 19 Dec 2023 at 10:55, Nikita Ostrenkov <n.ostrenkov@gmail.com>
> wrote:
> >
> > Signed-off-by: Nikita Ostrenkov <n.ostrenkov@gmail.com>
> > ---
> >  hw/arm/Kconfig    | 1 +
> >  hw/arm/fsl-imx6.c | 3 +++
> >  2 files changed, 4 insertions(+)
>
> Thanks for this patch; it looks fairly obviously right,
> but I wanted to let you know I won't be able to do proper patch
> review and take it into the arm queue until I get back from holidays
> in January.
>
> -- PMM
>

[-- Attachment #2: Type: text/html, Size: 1101 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hw/arm: add cache controller for Freescale i.MX6
  2023-12-19 10:55 [PATCH] hw/arm: add cache controller for Freescale i.MX6 Nikita Ostrenkov
  2023-12-19 16:08 ` Peter Maydell
@ 2024-01-04 16:36 ` Philippe Mathieu-Daudé
  2024-01-05 16:24 ` Peter Maydell
  2 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-01-04 16:36 UTC (permalink / raw)
  To: Nikita Ostrenkov, qemu-devel
  Cc: Peter Maydell, Paolo Bonzini, Jean-Christophe Dubois, qemu-arm

On 19/12/23 11:55, Nikita Ostrenkov wrote:

Per "i.MX 6Dual/6Quad Applications Processor Reference Manual, Rev. 4, 
09/2017", Chapter 2 "Memory Maps", 2.2 ARM Platform Memory Map,
Table 2-1. System memory map.

> Signed-off-by: Nikita Ostrenkov <n.ostrenkov@gmail.com>
> ---
>   hw/arm/Kconfig    | 1 +
>   hw/arm/fsl-imx6.c | 3 +++
>   2 files changed, 4 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] hw/arm: add cache controller for Freescale i.MX6
  2023-12-19 10:55 [PATCH] hw/arm: add cache controller for Freescale i.MX6 Nikita Ostrenkov
  2023-12-19 16:08 ` Peter Maydell
  2024-01-04 16:36 ` Philippe Mathieu-Daudé
@ 2024-01-05 16:24 ` Peter Maydell
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2024-01-05 16:24 UTC (permalink / raw)
  To: Nikita Ostrenkov
  Cc: qemu-devel, Paolo Bonzini, Jean-Christophe Dubois, qemu-arm

On Tue, 19 Dec 2023 at 10:55, Nikita Ostrenkov <n.ostrenkov@gmail.com> wrote:
>
> Signed-off-by: Nikita Ostrenkov <n.ostrenkov@gmail.com>
> ---
>  hw/arm/Kconfig    | 1 +
>  hw/arm/fsl-imx6.c | 3 +++
>  2 files changed, 4 insertions(+)
>



Applied to target-arm.next, thanks.

-- PMM


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-05 16:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-19 10:55 [PATCH] hw/arm: add cache controller for Freescale i.MX6 Nikita Ostrenkov
2023-12-19 16:08 ` Peter Maydell
2023-12-19 19:05   ` Nikita Ostrenkov
2024-01-04 16:36 ` Philippe Mathieu-Daudé
2024-01-05 16:24 ` Peter Maydell

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).