[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 32/45] hw/arm: Add memory region for BCM2837 RPiVid ASB
From: |
Peter Maydell |
Subject: |
[PULL 32/45] hw/arm: Add memory region for BCM2837 RPiVid ASB |
Date: |
Tue, 27 Feb 2024 13:33:01 +0000 |
From: Sergey Kambalin <serg.oker@gmail.com>
Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20240226000259.2752893-13-sergey.kambalin@auriga.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
include/hw/arm/bcm2838_peripherals.h | 2 ++
include/hw/arm/raspi_platform.h | 2 +-
hw/arm/bcm2838_peripherals.c | 3 +++
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/hw/arm/bcm2838_peripherals.h
b/include/hw/arm/bcm2838_peripherals.h
index 86b0d96944e..af085934c92 100644
--- a/include/hw/arm/bcm2838_peripherals.h
+++ b/include/hw/arm/bcm2838_peripherals.h
@@ -69,6 +69,8 @@ struct BCM2838PeripheralState {
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 0db146e5920..7bc4807fa51 100644
--- a/include/hw/arm/raspi_platform.h
+++ b/include/hw/arm/raspi_platform.h
@@ -73,7 +73,7 @@ uint64_t board_ram_size(uint32_t board_rev);
#define MPHI_OFFSET 0x6000 /* Message-based Parallel Host Intf.
*/
#define DMA_OFFSET 0x7000 /* DMA controller, channels 0-14 */
#define ARBA_OFFSET 0x9000
-#define BRDG_OFFSET 0xa000
+#define BRDG_OFFSET 0xa000 /* RPiVid ASB for BCM2838 (BCM2711) */
#define ARM_OFFSET 0xB000 /* ARM control block */
#define ARMCTRL_OFFSET (ARM_OFFSET + 0x000)
#define ARMCTRL_IC_OFFSET (ARM_OFFSET + 0x200) /* Interrupt controller */
diff --git a/hw/arm/bcm2838_peripherals.c b/hw/arm/bcm2838_peripherals.c
index 55ae56733f4..ca2f37b2606 100644
--- a/hw/arm/bcm2838_peripherals.c
+++ b/hw/arm/bcm2838_peripherals.c
@@ -185,6 +185,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", BRDG_OFFSET, 0x24);
}
static void bcm2838_peripherals_class_init(ObjectClass *oc, void *data)
--
2.34.1
- [PULL 34/45] tests/avocado/boot_linux_console.py: Add Rpi4b boot tests, (continued)
- [PULL 34/45] tests/avocado/boot_linux_console.py: Add Rpi4b boot tests, Peter Maydell, 2024/02/27
- [PULL 23/45] hw/arm/raspi: Split out raspi machine common part, Peter Maydell, 2024/02/27
- [PULL 44/45] tests/qtest/bcm2828-mailbox: Append added properties to mailbox test, Peter Maydell, 2024/02/27
- [PULL 40/45] tests/qtest/bcm2828-mailbox: Add mailbox property tests. Part 1, Peter Maydell, 2024/02/27
- [PULL 43/45] hw/misc/bcm2835_property: Add missed BCM2835 properties, Peter Maydell, 2024/02/27
- [PULL 26/45] hw/gpio: Add BCM2838 GPIO stub, Peter Maydell, 2024/02/27
- [PULL 27/45] hw/gpio: Implement BCM2838 GPIO functionality, Peter Maydell, 2024/02/27
- [PULL 37/45] tests/qtest/bcm2828-mailbox: Add mailbox tests tags. Part 1, Peter Maydell, 2024/02/27
- [PULL 33/45] hw/arm/bcm2838_peripherals: Add clock_isp stub, Peter Maydell, 2024/02/27
- [PULL 38/45] tests/qtest/bcm2828-mailbox: Add mailbox tests tags. Part 2, Peter Maydell, 2024/02/27
- [PULL 32/45] hw/arm: Add memory region for BCM2837 RPiVid ASB,
Peter Maydell <=
- [PULL 45/45] docs/system/arm: Add RPi4B to raspi.rst, Peter Maydell, 2024/02/27
- [PULL 41/45] tests/qtest/bcm2828-mailbox: Add mailbox property tests. Part 2, Peter Maydell, 2024/02/27
- [PULL 42/45] tests/qtest/bcm2828-mailbox: Add mailbox property tests. Part 3, Peter Maydell, 2024/02/27