[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 13/45] Add memory region for BCM2837 RPiVid ASB
From: |
Sergey Kambalin |
Subject: |
[PATCH v3 13/45] Add memory region for BCM2837 RPiVid ASB |
Date: |
Sun, 3 Dec 2023 15:48:38 -0600 |
Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com>
---
hw/arm/bcm2838_peripherals.c | 3 +++
include/hw/arm/bcm2838_peripherals.h | 3 ++-
include/hw/arm/raspi_platform.h | 1 +
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/hw/arm/bcm2838_peripherals.c b/hw/arm/bcm2838_peripherals.c
index 196fb890a2..d3b42cf25b 100644
--- a/hw/arm/bcm2838_peripherals.c
+++ b/hw/arm/bcm2838_peripherals.c
@@ -182,6 +182,9 @@ static void bcm2838_peripherals_realize(DeviceState *dev,
Error **errp)
sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->gpio), 0));
object_property_add_alias(OBJECT(s), "sd-bus", OBJECT(&s->gpio), "sd-bus");
+
+ /* BCM2838 RPiVid ASB must be mapped to prevent kernel crash */
+ create_unimp(s_base, &s->asb, "bcm2838-asb", RPI4B_ASB_OFFSET, 0x24);
}
static void bcm2838_peripherals_class_init(ObjectClass *oc, void *data)
diff --git a/include/hw/arm/bcm2838_peripherals.h
b/include/hw/arm/bcm2838_peripherals.h
index 0a87645e01..af085934c9 100644
--- a/include/hw/arm/bcm2838_peripherals.h
+++ b/include/hw/arm/bcm2838_peripherals.h
@@ -64,12 +64,13 @@ struct BCM2838PeripheralState {
MemoryRegion mphi_mr_alias;
SDHCIState emmc2;
- UnimplementedDeviceState clkisp;
BCM2838GpioState gpio;
OrIRQState mmc_irq_orgate;
OrIRQState dma_7_8_irq_orgate;
OrIRQState dma_9_10_irq_orgate;
+
+ UnimplementedDeviceState asb;
};
struct BCM2838PeripheralClass {
diff --git a/include/hw/arm/raspi_platform.h b/include/hw/arm/raspi_platform.h
index 0db146e592..537fc6b4af 100644
--- a/include/hw/arm/raspi_platform.h
+++ b/include/hw/arm/raspi_platform.h
@@ -74,6 +74,7 @@ uint64_t board_ram_size(uint32_t board_rev);
#define DMA_OFFSET 0x7000 /* DMA controller, channels 0-14 */
#define ARBA_OFFSET 0x9000
#define BRDG_OFFSET 0xa000
+#define RPI4B_ASB_OFFSET 0xa000 /* BCM2838 (BCM2711) RPiVid ASB */
#define ARM_OFFSET 0xB000 /* ARM control block */
#define ARMCTRL_OFFSET (ARM_OFFSET + 0x000)
#define ARMCTRL_IC_OFFSET (ARM_OFFSET + 0x200) /* Interrupt controller */
--
2.34.1
- [PATCH v3 03/45] Split out raspi machine common part, (continued)
- [PATCH v3 03/45] Split out raspi machine common part, Sergey Kambalin, 2023/12/03
- [PATCH v3 04/45] Introduce BCM2838 SoC, Sergey Kambalin, 2023/12/03
- [PATCH v3 05/45] Add GIC-400 to BCM2838 SoC, Sergey Kambalin, 2023/12/03
- [PATCH v3 06/45] Add BCM2838 GPIO stub, Sergey Kambalin, 2023/12/03
- [PATCH v3 07/45] Implement BCM2838 GPIO functionality, Sergey Kambalin, 2023/12/03
- [PATCH v3 08/45] Connect SD controller to BCM2838 GPIO, Sergey Kambalin, 2023/12/03
- [PATCH v3 09/45] Add GPIO and SD to BCM2838 periph, Sergey Kambalin, 2023/12/03
- [PATCH v3 10/45] Add BCM2838 checkpoint support, Sergey Kambalin, 2023/12/03
- [PATCH v3 11/45] Introduce Raspberry PI 4 machine, Sergey Kambalin, 2023/12/03
- [PATCH v3 12/45] Temporarily disable unimplemented rpi4b devices, Sergey Kambalin, 2023/12/03
- [PATCH v3 13/45] Add memory region for BCM2837 RPiVid ASB,
Sergey Kambalin <=
- [PATCH v3 14/45] Add BCM2838 PCIE Root Complex, Sergey Kambalin, 2023/12/03
- [PATCH v3 15/45] Add BCM2838 PCIE host, Sergey Kambalin, 2023/12/03
- [PATCH v3 16/45] Enable BCM2838 PCIE, Sergey Kambalin, 2023/12/03
- [PATCH v3 17/45] Add RNG200 skeleton, Sergey Kambalin, 2023/12/03
- [PATCH v3 18/45] Add RNG200 RNG and RBG, Sergey Kambalin, 2023/12/03
- [PATCH v3 19/45] Get rid of RNG200 timer, Sergey Kambalin, 2023/12/03
- [PATCH v3 20/45] Implement BCM2838 thermal sensor, Sergey Kambalin, 2023/12/03
- [PATCH v3 21/45] Add clock_isp stub, Sergey Kambalin, 2023/12/03
- [PATCH v3 22/45] Add GENET stub, Sergey Kambalin, 2023/12/03
- [PATCH v3 23/45] Add GENET register structs. Part 1, Sergey Kambalin, 2023/12/03