[PATCH v4] Align Raspberry Pi DMA interrupts with Linux DTS

2022-07-16 Thread Andrey Makarov
and 11--14 are handled separately. Signed-off-by: Andrey Makarov --- In version v4: - added a license header to bcm2835-dma-test.c In version v3: - changed naming of orgate & removed hard-coded constants In version v2: 1) an OR-gate is added according to review 2) a simple qtest is

[PATCH v3] Align Raspberry Pi DMA interrupts with Linux DTS

2022-07-14 Thread Andrey Makarov
In v3: - changed naming of orgate & removed hard-coded constants Signed-off-by: Andrey Makarov --- hw/arm/bcm2835_peripherals.c | 25 ++- include/hw/arm/bcm2835_peripherals.h | 2 + tests/qtest/bcm2835-dma-test.c | 106 +++ tests/qtest/meson.b

[PATCH v2] Align Raspberry Pi DMA interrupts with Linux DTS

2022-07-12 Thread Andrey Makarov
and 11--14 are handled separately. In version v2: 1) an OR-gate is added according to review 2) a simple qtest is added for testing DMA & its interrupts Signed-off-by: Andrey Makarov --- hw/arm/bcm2835_peripherals.c | 21 +- include/hw/arm/bcm2835_peripherals.h | 2 + tes

[PATCH] Align Raspberry Pi DMA interrupts with Linux DTS

2022-06-24 Thread Andrey Makarov
All Raspberry Pi models 1-3 (based on bcm2835) have Linux device tree (arch/arm/boot/dts/bcm2835-common.dtsi +25): /* dma channel 11-14 share one irq */ which mismatched the Qemu model. In this patch channels 0--10 and 11--14 are handled separately. Signed-off-by: Andrey Makarov --- hw