Received: from eggs.gnu.org ([2001:4830:134:3::10]:58469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlXpm-0003Eg-OD for qemu-devel@nongnu.org; Wed, 27 Nov 2013 00:38:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlXpi-0002vx-2N for qemu-devel@nongnu.org; Wed, 27 Nov 2013 00:38:46 -0500 Received: from [222.73.24.84] (port=33104 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlXph-0002sr-Mx for qemu-devel@nongnu.org; Wed, 27 Nov 2013 00:38:42 -0500 From: liguang Date: Wed, 27 Nov 2013 13:36:44 +0800 Message-Id: <1385530609-22741-1-git-send-email-lig.fnst@cn.fujitsu.com> Subject: [Qemu-devel] [PATCH v5 0/5] add sunxi machine type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Peter Crosthwaite , liguang this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7, and will add more devices. v2: split timer and interrupt controller emulation into their corresponding files. v3: 1. change loader_start address 2. add 64-bit counter 3. fixup fail to clear interrup status issue v4: 1. add VMSD 2. use defines of magic number for readability 3. code cleanup v5: 1. add VMSTATE_PTIMER_ARRAY 2. code cleanup TODO: 1. add BROM support 2. add more devices 3. add sunxi-7i support test: can boot-up officially released linux kernel. reference: http://linux-sunxi.org/Main_Page Li Guang (5) hw/ptimer: add VMSTATE_PTIMER_ARRAY hw/timer: add sunxi timer device hw/intc: add sunxi interrupt controller device hw/arm: add sunxi machine type MAINTAINERS: add myself to maintain sunxi machine MAINTAINERS | 9 +++++++++ default-configs/arm-softmmu.mak | 3 + hw/arm/Makefile.objs | 1 + hw/arm/sunxi-soc.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++ hw/intc/Makefile.objs | 1 + hw/intc/sunxi-pic.c | 244 +++++++++++++++++++++++++++++++++++++++ hw/timer/Makefile.objs | 1 + hw/timer/sunxi-pit.c | 276 +++++++++++++++++++++++++++++++++++++++ include/hw/intc/sunxi-pic.h | 20 +++ include/hw/ptimer.h | 3 +++ include/hw/timer/sunxi-pit.h | 37 +++++ 11 files changed, 693 insertions(+), 0 deletions(-) create mode 100644 hw/timer/sunxi-pit.c create mode 100644 include/hw/timer/sunxi-pit.h create mode 100644 hw/intc/sunxi-pic.c create mode 100644 include/hw/intc/sunxi-pic.h create mode 100644 hw/arm/sunxi-soc.c