From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4doW-0001P6-Sn for qemu-devel@nongnu.org; Thu, 03 Dec 2015 19:01:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4doS-0000eb-SN for qemu-devel@nongnu.org; Thu, 03 Dec 2015 19:01:28 -0500 From: Andrew Baumann Date: Thu, 3 Dec 2015 16:00:55 -0800 Message-ID: <1449187263-4604-1-git-send-email-Andrew.Baumann@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/8] Raspberry Pi 2 support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Gr=C3=A9gory=20ESTRADE?= , Stefan Weil , Peter Crosthwaite , Andrew Baumann , qemu-arm@nongnu.org, Paolo Bonzini This patch series adds initial support for Raspberry Pi 2 (bcm2836). It is heavily based on the original (out of tree) work of Gregory Estrade, Stefan Weil and others to support Raspberry Pi 1. At the end of this series, it is possible to boot a recent raspbian kernel to a serial console using an invocation such as: qemu-system-arm -M raspi2 -kernel raspbian-boot/kernel7.img -sd 2015-09-24-raspbian-jessie.vhd -append "rw earlyprintk loglevel=8 console=ttyAMA0 root=/dev/mmcblk0p2" -serial stdio (where raspbian-boot is the boot partition from the matching image, and after commenting-out or removing /etc/ld.so.preload to avoid an unimplemented setend instruction). I plan to add DMA, USB, framebuffer, timers, and other system devices (vchiq, power, mphi, aux/uart1) in future patches. In the meantime, the complete code is available at: https://github.com/0xabu/qemu Although this series includes many of the peripherals common to Pi1 (aka bcm2835 aka Pi0), it's not yet possible to boot a Pi1, because it requires additional peripherals, so I'll also add that SoC and machine in a later patch. Cheers, Andrew Andrew Baumann (8): bcm2835_sbm: add BCM2835 mailboxes bcm2835_property: add bcm2835 property channel bcm2835_ic: add bcm2835 interrupt controller bcm2835_emmc: add bcm2835 MMC/SD controller bcm2835_peripherals: add rollup device for bcm2835 peripherals bcm2836_control: add bcm2836 ARM control logic bcm2836: add bcm2836 soc device raspi: add raspberry pi 2 machine default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs | 1 + hw/arm/bcm2835_peripherals.c | 185 ++++++++ hw/arm/bcm2836.c | 135 ++++++ hw/arm/raspi.c | 179 ++++++++ hw/intc/Makefile.objs | 1 + hw/intc/bcm2835_ic.c | 234 ++++++++++ hw/intc/bcm2836_control.c | 344 +++++++++++++++ hw/misc/Makefile.objs | 2 + hw/misc/bcm2835_property.c | 262 ++++++++++++ hw/misc/bcm2835_sbm.c | 280 ++++++++++++ hw/sd/Makefile.objs | 1 + hw/sd/bcm2835_emmc.c | 800 +++++++++++++++++++++++++++++++++++ include/hw/arm/bcm2835_arm_control.h | 481 +++++++++++++++++++++ include/hw/arm/bcm2835_mbox.h | 19 + include/hw/arm/bcm2835_peripherals.h | 42 ++ include/hw/arm/bcm2836.h | 33 ++ include/hw/arm/raspi_platform.h | 161 +++++++ include/hw/intc/bcm2835_ic.h | 26 ++ include/hw/intc/bcm2836_control.h | 49 +++ include/hw/misc/bcm2835_property.h | 27 ++ include/hw/misc/bcm2835_sbm.h | 37 ++ include/hw/sd/bcm2835_emmc.h | 56 +++ 23 files changed, 3356 insertions(+) create mode 100644 hw/arm/bcm2835_peripherals.c create mode 100644 hw/arm/bcm2836.c create mode 100644 hw/arm/raspi.c create mode 100644 hw/intc/bcm2835_ic.c create mode 100644 hw/intc/bcm2836_control.c create mode 100644 hw/misc/bcm2835_property.c create mode 100644 hw/misc/bcm2835_sbm.c create mode 100644 hw/sd/bcm2835_emmc.c create mode 100644 include/hw/arm/bcm2835_arm_control.h create mode 100644 include/hw/arm/bcm2835_mbox.h create mode 100644 include/hw/arm/bcm2835_peripherals.h create mode 100644 include/hw/arm/bcm2836.h create mode 100644 include/hw/arm/raspi_platform.h create mode 100644 include/hw/intc/bcm2835_ic.h create mode 100644 include/hw/intc/bcm2836_control.h create mode 100644 include/hw/misc/bcm2835_property.h create mode 100644 include/hw/misc/bcm2835_sbm.h create mode 100644 include/hw/sd/bcm2835_emmc.h -- 2.5.3