[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 18/41] Add clock_isp stub
From: |
Sergey Kambalin |
Subject: |
[PATCH v6 18/41] Add clock_isp stub |
Date: |
Sun, 25 Feb 2024 18:02:36 -0600 |
Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com>
---
hw/arm/bcm2838_peripherals.c | 6 ++++++
include/hw/arm/bcm2838_peripherals.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/hw/arm/bcm2838_peripherals.c b/hw/arm/bcm2838_peripherals.c
index 6badda3045..1f41028649 100644
--- a/hw/arm/bcm2838_peripherals.c
+++ b/hw/arm/bcm2838_peripherals.c
@@ -17,6 +17,9 @@
#define PCIE_MMIO_ARM_OFFSET 0x600000000
#define PCIE_MMIO_SIZE 0x40000000
+#define CLOCK_ISP_OFFSET 0xc11000
+#define CLOCK_ISP_SIZE 0x100
+
/* Lower peripheral base address on the VC (GPU) system bus */
#define BCM2838_VC_PERI_LOW_BASE 0x7c000000
@@ -228,6 +231,9 @@ static void bcm2838_peripherals_realize(DeviceState *dev,
Error **errp)
memory_region_add_subregion(get_system_memory(), PCIE_MMIO_ARM_OFFSET,
mmio_mr);
+ create_unimp(s_base, &s->clkisp, "bcm2835-clkisp", CLOCK_ISP_OFFSET,
+ CLOCK_ISP_SIZE);
+
/* GPIO */
if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpio), errp)) {
return;
diff --git a/include/hw/arm/bcm2838_peripherals.h
b/include/hw/arm/bcm2838_peripherals.h
index 49bb4fab08..adc02894c1 100644
--- a/include/hw/arm/bcm2838_peripherals.h
+++ b/include/hw/arm/bcm2838_peripherals.h
@@ -77,6 +77,7 @@ struct BCM2838PeripheralState {
OrIRQState dma_9_10_irq_orgate;
UnimplementedDeviceState asb;
+ UnimplementedDeviceState clkisp;
};
struct BCM2838PeripheralClass {
--
2.34.1
- Re: [PATCH v6 14/41] Add BCM2838 PCIE host, (continued)
- [PATCH v6 10/41] Introduce Raspberry PI 4 machine, Sergey Kambalin, 2024/02/25
- [PATCH v6 13/41] Add BCM2838 PCIE Root Complex, Sergey Kambalin, 2024/02/25
- [PATCH v6 15/41] Enable BCM2838 PCIE, Sergey Kambalin, 2024/02/25
- [PATCH v6 16/41] Add RPi4 RNG200, Sergey Kambalin, 2024/02/25
- [PATCH v6 05/41] Add GIC-400 to BCM2838 SoC, Sergey Kambalin, 2024/02/25
- [PATCH v6 17/41] Implement BCM2838 thermal sensor, Sergey Kambalin, 2024/02/25
- [PATCH v6 03/41] Split out raspi machine common part, Sergey Kambalin, 2024/02/25
- [PATCH v6 20/41] Add GENET register structs. Part 1, Sergey Kambalin, 2024/02/25
- [PATCH v6 18/41] Add clock_isp stub,
Sergey Kambalin <=
- [PATCH v6 19/41] Add GENET stub, Sergey Kambalin, 2024/02/25
- [PATCH v6 21/41] Add GENET register structs. Part 2, Sergey Kambalin, 2024/02/25
- [PATCH v6 25/41] Implement GENET register ops, Sergey Kambalin, 2024/02/25
- [PATCH v6 23/41] Add GENET register structs. Part 4, Sergey Kambalin, 2024/02/25
- [PATCH v6 24/41] Add GENET register access macros, Sergey Kambalin, 2024/02/25
- [PATCH v6 22/41] Add GENET register structs. Part 3, Sergey Kambalin, 2024/02/25
- [PATCH v6 27/41] Implement GENET TX path, Sergey Kambalin, 2024/02/25
- [PATCH v6 28/41] Implement GENET RX path, Sergey Kambalin, 2024/02/25