From patchwork Wed Aug 8 21:07:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Denis V. Lunev\" via" X-Patchwork-Id: 10560489 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8CDF513BB for ; Wed, 8 Aug 2018 21:10:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C1DD2AF4D for ; Wed, 8 Aug 2018 21:10:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6ECB02AF75; Wed, 8 Aug 2018 21:10:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9DCFF2AF4D for ; Wed, 8 Aug 2018 21:09:59 +0000 (UTC) Received: from localhost ([::1]:45472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnViP-00044I-BT for patchwork-qemu-devel@patchwork.kernel.org; Wed, 08 Aug 2018 17:09:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnVhS-0003A5-3h for qemu-devel@nongnu.org; Wed, 08 Aug 2018 17:08:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnVhN-0006bh-1w for qemu-devel@nongnu.org; Wed, 08 Aug 2018 17:08:58 -0400 Received: from smtp20.mail.ru ([94.100.179.251]:32832) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fnVhM-0006am-Mq for qemu-devel@nongnu.org; Wed, 08 Aug 2018 17:08:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=YfxN6E2G+0ezMkfxVrnvtMgoLYMolWjp4hcPifCvp7w=; b=azIbX77pr+MbYMuFCi7p7ayeP1WixCqFxV38L93KCz9nQl3YdCQhmskdcD1UO80egy3h3Ura5bmju73I8ufwTMcxQwU1cjRJF6d9mDHrR384XJ+NVe23Ms7JeWPN+9d6ezj9SQA9h8vn0F9YD8amo43KBAqLt3ks8gLqaP0pU1s=; Received: by smtp20.mail.ru with esmtpa (envelope-from ) id 1fnVhK-0002Hh-Af; Thu, 09 Aug 2018 00:08:50 +0300 To: qemu-devel@nongnu.org Date: Thu, 9 Aug 2018 00:07:46 +0300 Message-Id: <20180808210750.3915-1-jusual@mail.ru> X-Mailer: git-send-email 2.17.1 Authentication-Results: smtp20.mail.ru; auth=pass smtp.auth=jusual@mail.ru smtp.mailfrom=jusual@mail.ru X-7FA49CB5: 0D63561A33F958A5DE7D44B892C0F3766D2E4307B80EE54E40440647E16323C48941B15DA834481F8AA50765F790063783E00425F71A4181389733CBF5DBD5E9B5C8C57E37DE458B4DA2F55E57A558BE49FD398EE364050F9647ADFADE5905B1302FCEF25BFAB345C4224003CC836476C0CAF46E325F83A522CA9DD8327EE4930A3850AC1BE2E735D75C33BCB8E74203B99CAE738F537891731C566533BA786A40A5AABA2AD371193C9F3DD0FB1AF5EB1248E41960EB3BA62623479134186CDE6BA297DBC24807EABDAD6C7F3747799A X-Mailru-Sender: 7766D515518070DE138AAC7428EA760D49A704732D6017BA8891CAF89471A083933BB49804EACBAA7C4160E8B47E48163DDE9B364B0DF2898CB68AF7A628805D594FB4C9F0DBF412AE208404248635DF X-Mras: OK X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 94.100.179.251 Subject: [Qemu-devel] [PATCH v2 0/4] arm: Add nRF51 SoC UART support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Julia Suvorova via Qemu-devel From: "Denis V. Lunev\" via" Reply-To: Julia Suvorova Cc: Peter Maydell , Jim Mussared , =?utf-8?q?Steffen_G=C3=B6rtz?= , Stefan Hajnoczi , Joel Stanley , Stefan Hajnoczi , Paolo Bonzini , Julia Suvorova Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series adds support for the nRF51 SoC UART, that used in BBC Micro:bit board, and QTest for it. v2: * Suspend/Enable functionality added * Connection to SoC moved to a separate patch * Added QTest for checking reception functionality * Mini-kernel test changed to fit current implementation * Addressed review comments on R_*, uart_can_receive, VMState, uart_transmit Julia Suvorova (4): hw/char: Implement nRF51 SoC UART hw/arm/nrf51_soc: Connect UART to nRF51 SoC tests/boot-serial-test: Add microbit board testcase tests/microbit-test: Check nRF51 UART functionality hw/arm/nrf51_soc.c | 20 +++ hw/char/Makefile.objs | 1 + hw/char/nrf51_uart.c | 329 +++++++++++++++++++++++++++++++++++ hw/char/trace-events | 4 + include/hw/arm/nrf51_soc.h | 3 + include/hw/char/nrf51_uart.h | 78 +++++++++ tests/boot-serial-test.c | 19 ++ tests/microbit-test.c | 106 ++++++++++- 8 files changed, 557 insertions(+), 3 deletions(-) create mode 100644 hw/char/nrf51_uart.c create mode 100644 include/hw/char/nrf51_uart.h