Skip to contentSkip to conversation

hw/arm: add cache controller for Freescale i.MX6

PATCH Applied Nikita Ostrenkov 3 participants 5 messages Dec 19, 2023 – Jan 5, 2024 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm: add cache controller for Freescale i.MX6

---
 hw/arm/Kconfig    | 1 +
 hw/arm/fsl-imx6.c | 3 +++
 2 files changed, 4 insertions(+)
hw/arm/Kconfig +1 -0
index 3ada335a24..386f06840c 100644
@@ -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
hw/arm/fsl-imx6.c +3 -0
index 7dc42cbfe6..f56130a7a7 100644
@@ -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;
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Nikita Ostrenkov
---
 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

#2 lore raw

thanks for letting me know! Enjoy your holidays.

вт, 19 дек. 2023 г., 19:08 Peter Maydell <[email protected]>:

Quoted 16 lines
Quoted 6 lines · Nikita Ostrenkov
---
 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

Reviewed-by on v1 1/1
#3 lore raw
In reply to Nikita Ostrenkov

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.

Quoted 5 lines
---
  hw/arm/Kconfig    | 1 +
  hw/arm/fsl-imx6.c | 3 +++
  2 files changed, 4 insertions(+)