From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBxZt-0000QC-2c for qemu-devel@nongnu.org; Wed, 30 Nov 2016 00:37:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBxZp-0005JP-Vs for qemu-devel@nongnu.org; Wed, 30 Nov 2016 00:37:09 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cBxZp-0005IU-M8 for qemu-devel@nongnu.org; Wed, 30 Nov 2016 00:37:05 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uAU5Y6KZ079648 for ; Wed, 30 Nov 2016 00:37:03 -0500 Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by mx0a-001b2d01.pphosted.com with ESMTP id 271mr424v0-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 30 Nov 2016 00:37:03 -0500 Received: from localhost by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 30 Nov 2016 15:37:01 +1000 From: "Alastair D'Silva" Date: Wed, 30 Nov 2016 16:36:23 +1100 Message-Id: <20161130053629.23340-1-alastair@au1.ibm.com> Subject: [Qemu-devel] [PATCH v2 0/6] Add support for the Epson RX8900 RTC to the aspeed board List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-arm@nongnu.org Cc: qemu-devel@nongnu.org, Peter Maydell , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Andrew Jeffery , Joel Stanley , Alastair D'Silva From: Alastair D'Silva This patch series adds support for the Epson RX8900 RTC to the Aspeed board. The tests use the existing imx25 infrastructure, and some minor changes have been made to uniquely identify the I2C buses. A NULL check have been added to eliminate empty i2cslave init functions. Support for named interrupts has been implemented in qtest to facilitate testing. Alastair D'Silva (6): arm: Uniquely name imx25 I2C buses. hw/i2c: Add a NULL check for i2c slave init callbacks qtest: Support named interrupts hw/timer: Add Epson RX8900 RTC support tests: Test all implemented RX8900 functionality arm: Add an RX8900 RTC to the ASpeed board default-configs/arm-softmmu.mak | 1 + hw/arm/aspeed.c | 12 + hw/arm/imx25_pdk.c | 4 +- hw/arm/pxa2xx.c | 9 +- hw/arm/tosa.c | 7 - hw/arm/z2.c | 7 - hw/core/irq.c | 17 +- hw/i2c/core.c | 6 +- hw/i2c/imx_i2c.c | 6 +- hw/timer/Makefile.objs | 2 + hw/timer/ds1338.c | 6 - hw/timer/rx8900.c | 890 ++++++++++++++++++++++++++++++++++++++++ hw/timer/rx8900_regs.h | 139 +++++++ hw/timer/trace-events | 31 ++ include/hw/irq.h | 12 +- qtest.c | 102 +++-- tests/Makefile.include | 2 + tests/libqtest.c | 87 +++- tests/libqtest.h | 59 +++ tests/rx8900-test.c | 881 +++++++++++++++++++++++++++++++++++++++ 20 files changed, 2208 insertions(+), 72 deletions(-) create mode 100644 hw/timer/rx8900.c create mode 100644 hw/timer/rx8900_regs.h create mode 100644 tests/rx8900-test.c -- 2.9.3