From patchwork Fri Aug 3 05:21:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10554551 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 308DA13AC for ; Fri, 3 Aug 2018 05:23:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 183F42C2E9 for ; Fri, 3 Aug 2018 05:23:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 099AB2C2F3; Fri, 3 Aug 2018 05:23:20 +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 531332C2E9 for ; Fri, 3 Aug 2018 05:23:19 +0000 (UTC) Received: from localhost ([::1]:49003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flSYW-0002ah-CW for patchwork-qemu-devel@patchwork.kernel.org; Fri, 03 Aug 2018 01:23:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flSXC-0001Wr-04 for qemu-devel@nongnu.org; Fri, 03 Aug 2018 01:21:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1flSX7-0004p0-Fx for qemu-devel@nongnu.org; Fri, 03 Aug 2018 01:21:52 -0400 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]:45508) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1flSX7-0004oa-8q; Fri, 03 Aug 2018 01:21:49 -0400 Received: by mail-pl0-x244.google.com with SMTP id j8-v6so2033935pll.12; Thu, 02 Aug 2018 22:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=W4xRqbIaN7lU6IcAs5txxjmzBkF8l08UbM4unAuC3OI=; b=KR1uoZ74vLaa6rgcENGMlP+jXOJBZBgixaJsZPHDDGlofOxlmidif2eIrGoXlxbuI+ jCcPHPPw43ot8NJQVryYSQeic9Ej1aQnb0HBBQYgW6aP2L5RmZ3ELcHnTqDnl7dniYBN q2SALbmPSEsFLSjo4oAaG9zYz5eagQc2LyFRfKMohAgn4CHQS0ISSCasasgLd1RL6xDQ ntSYlrQeU0kbxkJSKDjXHe8CPKs9xWRtRtBBcXxoppqxIJ94ITMk3gWpJMz1RVdOAW1s 4xg5pOo4+zyRnle5I5xvxrIC3qk7wWzJiUgF/WmFanRI3vtqsmZe8RBcjtxzcVpGQexK v98g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=W4xRqbIaN7lU6IcAs5txxjmzBkF8l08UbM4unAuC3OI=; b=SZVAp8+pV7VvcMafVTjiyc1/B+hK6OilXnmE9eeWJv+vw5XFQstChebvqzlBapRwvv A15S3usS1PSximImr6HliU41BZ6eCud9fjzCEyU6F12c6ESksE2fiHFFdMtqjBs3l3kB 6if8hgJSoXYRcfOvDDToGAq6eWLebsz4GYRX5jBubtP2NrQuLMhAAqEXCXxKvvUeioZ5 JbwSXAeN+J/Krwb6XB3G47SIE4lttol6t0JBgJawKSci2zehF8s/LTG07DW0fhl73g98 W/7TCJApiSZkVAHw4SEFzN66e6RdhQUbgdMtR3otgoPBnRBdrxC1yw+F0Wye9+R4hQLo 0W4g== X-Gm-Message-State: AOUpUlH3ScMw2rZQUp40upwWfj6C5Hu8dwOqV5YJIBsRieI1/KP+x+5L 39YVD74NrhsvyiKmT912OMY= X-Google-Smtp-Source: AAOMgpfQSw4covkC9vX5ql1T2ZQBLKxb0yfP3+FZN7shZH/PbzOumzixd4rRNzqH69mVKR6ZslPYiA== X-Received: by 2002:a17:902:15c5:: with SMTP id a5-v6mr2104849plh.137.1533273708123; Thu, 02 Aug 2018 22:21:48 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id v20-v6sm9210680pfk.12.2018.08.02.22.21.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Aug 2018 22:21:46 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Fri, 03 Aug 2018 14:51:39 +0930 From: Joel Stanley To: Peter Maydell Date: Fri, 3 Aug 2018 14:51:34 +0930 Message-Id: <20180803052137.10602-1-joel@jms.id.au> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::244 Subject: [Qemu-devel] [PATCH v4 0/3] arm: Add nRF51 SoC and micro:bit machine 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: , Cc: Stefan Hajnoczi , =?utf-8?q?Steffen_G=C3=B6rtz?= , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Jim Mussared , Julia Suvorova Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP v4: Fix number of IRQs Based-on: 20180725085944.11856-1-stefanha@redhat.com This short series implements a minimal definition of the Nordic Semiconductor nRF51, a Cortex-M0 ARM SoC, and the BBC micro:bit, a machine that will use this SoC. This work will serve as the base for our Google Summer of Code and Outreachy interns who will work on implementing a number of features on top of this base. I've tested this with a microbit micropython firmware, and checked that it starts running by looking at it with gdb. I chose to keep the nrf51 and the microbit seperate, to not confuse the peripherals that are on the microbit but are not part of the nrf51, and vice versa. Joel Stanley (3): MAINTAINERS: Add NRF51 entry arm: Add Nordic Semiconductor nRF51 SoC arm: Add BBC micro:bit machine MAINTAINERS | 8 +++ default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs | 1 + hw/arm/microbit.c | 54 +++++++++++++++ hw/arm/nrf51_soc.c | 119 ++++++++++++++++++++++++++++++++ include/hw/arm/nrf51_soc.h | 42 +++++++++++ 6 files changed, 225 insertions(+) create mode 100644 hw/arm/microbit.c create mode 100644 hw/arm/nrf51_soc.c create mode 100644 include/hw/arm/nrf51_soc.h