xen/arm: platform: Add Raspberry Pi platform
authorStewart Hildebrand <stewart.hildebrand@dornerworks.com>
Mon, 29 Jul 2019 13:19:20 +0000 (09:19 -0400)
committerJulien Grall <julien.grall@arm.com>
Wed, 31 Jul 2019 19:22:07 +0000 (20:22 +0100)
commit9f4d3848db9a0bff152a42a6bcb40bb714df7c4e
tree3ac0814e34352d3faaf92a947781590de9d21a42
parentaf156ff0859c8d362a5706640614c9d10f62adf2
xen/arm: platform: Add Raspberry Pi platform

The aux peripherals (uart1, spi1, and spi2) share an IRQ and a page of
memory. For debugging, it is helpful to use the aux UART in Xen. In
this case, Xen would try to assign spi1 and spi2 to dom0, but this
results in an error since the shared IRQ was already assigned to Xen.
Blacklist aux devices other than the UART to prevent mapping the shared
IRQ and memory range to dom0.

Blacklisting spi1 and spi2 unfortunately makes those peripherals
unavailable for use in the system. Future work could include forwarding
the IRQ for spi1 and spi2, and trap and mediate access to the memory
range for spi1 and spi2.

Signed-off-by: Stewart Hildebrand <stewart.hildebrand@dornerworks.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/platforms/Makefile
xen/arch/arm/platforms/brcm-raspberry-pi.c [new file with mode: 0644]