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: 143375 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp42283ljj; Thu, 2 Aug 2018 22:22:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeuuc57BOaHHWIsXqx/KTZWFnkRpOR3Jv3uXX93RkwGTAbuNeFr5Ivwg+nYe5DObEstn+0i X-Received: by 2002:a37:d401:: with SMTP id l1-v6mr2198742qki.221.1533273734188; Thu, 02 Aug 2018 22:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533273734; cv=none; d=google.com; s=arc-20160816; b=nbTDH+w6oaTtvmwDqlV9xeQpvYftiphsMpP9SuimmFrEg9aCDyWBAPGvb2eOENIV9M CGOo8TQLx3DjEel/KlvZK94L9RYzWRNehNqYfkSC6lEsF8t2DDcosqBAmB1K5HJmgy4B OXWCoNcdD8wsChr6H4jWMZV97v0YD7WZ0DvXI+uC1EYdxvDhhBMOig+xzz1JgPvXZ02H ZL8ISiXaTJQT937KvoDkrex8CQD/dXtq7rBEG3XVDMnuL4K2ngw+wsM3gtIrhJyjf6rO G/KE1h9FW7/Yw00fE7B40WRVPVMHvJdFgGvBzxWkPf/j9Q3vPLLjKDh64WmQ8axaJekt 8nmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=W4xRqbIaN7lU6IcAs5txxjmzBkF8l08UbM4unAuC3OI=; b=Klmxi1ght4Rt6T34UT/8ojjPBFSagQcklcFfz5+zVrGFgCGlDsvkca2fc7rjAB75P3 gVDTR6jfRlCUZpJSEOfJuqi45IUbSHAZeXjIIlaQCxIXL9qfwnRQ8UBi+0a7Fy0weqUA PRiSEobLpJFp1KGgYxCxsZmgQ6xyhk476hcwVpEAk2LnXj34vriBfpow7as6Crh8+Vzl ZgddYEtC1qijylSijPb06PX8NN6HEPKI2jiVd+PWk9MZeXLphSFfsiBblCACPvJxZYvy 8ls4yEfuVvFOuNkQRT3GewyZm6tT+MvoYMdBA3T4+j38d3P9iF0TCDJi1SXx0s/GFdKE WGbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KR1uoZ74; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o65-v6si1497390qkc.269.2018.08.02.22.22.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 02 Aug 2018 22:22:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KR1uoZ74; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:48997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flSXV-0001Y1-Ic for patch@linaro.org; Fri, 03 Aug 2018 01:22:13 -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-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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 -- 2.17.1