From patchwork Thu Aug 16 14:13:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 144425 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2136839ljj; Thu, 16 Aug 2018 07:16:57 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzQ0ihl+4RJNmS5e0B7ELOyiyiNLp40h696T93CLNN1a97lkEundkESVms8Hn84mQcBN7dv X-Received: by 2002:a0c:fa10:: with SMTP id q16-v6mr27126261qvn.46.1534429017547; Thu, 16 Aug 2018 07:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534429017; cv=none; d=google.com; s=arc-20160816; b=twXzWCeua5/dPq0HwGO4xWWYMWJ6ukVAZkf3fb72zbGXFSfkRjid3BqZq0IoLQ7oHa hnLWuGq8FfNFrWeuXXWyul/+Kc8mmooC0hPNWAx1qqMdp3UrLT8bfYjgPabuGR7i2gm8 59PQ4Vde/iTMH2H2VmKSQa3yAVw+SL++Batijuue6vYsGGW3ZLzZlyKo33aYeeTqOIYn cb0xUGLCH+ifJHtRBzRPx2kklnPNX8Jj5LFw7ggtwSqgEa5k8VpwJKHZYwSNJyBZ5epz exWzQkBinUeXvVzvtDxSvNVOHugRbkfeRxpMMIzt0i2wnrRB7ARvMdo21Cs3tJapsCXN y0ZA== 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=+73vl9CWuFiPHCEQERVKpNqMNigL2Kf9uOFE8y6jZEw=; b=jAgewAqPNqmIfKRRYwpyBoGfuSFvfwzw96EtbFl+VWZsG5Tbit65eW4rrTMYagJ8q3 5ACBcMIp026Kjn860A6Rfulqv8y3ve8Jar5+OJY4nTiasFCWrnRk1LUxolWRpIdmjycJ QwKVXAtrQaNvn7/phbT02GzchR55WHO8A3uaZi2kAq5Zozlcxfy3ubWt9MifpiIXdXkI 5KBEiytyxI9HJvFZ0DZSUTLcziBPJBT1P54yaIl6r+gpiVBQ0fxiuT6CpatSAIoOh4yN hbsiYa6jia0sc+YRKRp3ilY2W3w/AjMBEZxSt3dqkDFbtNXzEWqA1fH+Rd3LgRr7UbZA 8iUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=eN+c2pYe; 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 v11-v6si2559753qvi.252.2018.08.16.07.16.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 16 Aug 2018 07:16:57 -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=eN+c2pYe; 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]:55925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqJ56-00087j-V8 for patch@linaro.org; Thu, 16 Aug 2018 10:16:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqJ1k-0006Qn-Ac for qemu-devel@nongnu.org; Thu, 16 Aug 2018 10:13:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqJ1d-0004Ef-AM for qemu-devel@nongnu.org; Thu, 16 Aug 2018 10:13:28 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:36239) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fqJ1d-0004DZ-1P; Thu, 16 Aug 2018 10:13:21 -0400 Received: by mail-pg1-x542.google.com with SMTP id h12-v6so2141151pgs.3; Thu, 16 Aug 2018 07:13:20 -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=+73vl9CWuFiPHCEQERVKpNqMNigL2Kf9uOFE8y6jZEw=; b=eN+c2pYeRN+4Wnqavy+YLpBd0laK6BII/8vCAyODvU/IGyMFXwON0KIdg2ewuhkRg6 zEQzB+sg1cJGAHKeuaEKTJNjQets9sCTlTfMHgEhkyIuD0DIIbpBqBwuNSdXJgRk1Ukb qbEWh7r3ECyBPmyIcIUny8zJ9LEI05tTIQabzffzWXChVYSDsRPjAnIcu9xuSgvEil9M abdu6FyatL0e75QRAji7St+yDNEhH9vBzCIZ5kuYtWgmRZaiTm/s2qHfz9F0T72G5akZ blseZwhyGEkLa8/q4uMopbVsTL2xs4iuADnnvGw5VfmWWmkO9eIXtXAPZ+rEE6RnhPp8 GvcA== 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=+73vl9CWuFiPHCEQERVKpNqMNigL2Kf9uOFE8y6jZEw=; b=e9IzlTsuufrKd1xKJ074v0NG4hd5l0tpZRFbOoHmstU4543DWtGTRcT89fXzbLcQ/L HxCPAWa/K2K3nKkP4U1mTeUYnixZVvP9z3GK+xcffB7VI/dl6oVsn8JuA4IUed4W2Dnf 3j0e31AA4Qtj7ScAW5stLjRrWdBt/18d+m+3F7OLePKId6hsgJl5SRcfJRZfkERpR84b cdGW4grpYtvCra6l2PCE/eovzfLzUDZ8QlXstJO23e8FZXB9TBXqvr2lYczccuypc5hG sC4hALirFdluoq0fee15ZBRq8Pq5phG/ewdMLNUgSsVzyBC64bLJ89ALnKbX1qKYF8dF WI+w== X-Gm-Message-State: AOUpUlHqxiDEIAhv9nhGZ3b/xeTodWf2FMZuYCGGcdA2zjqLrzNtdFWS V4hSmiPpUL7uPjm4+mJG428= X-Received: by 2002:a63:2b89:: with SMTP id r131-v6mr28695823pgr.39.1534428799781; Thu, 16 Aug 2018 07:13:19 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id s14-v6sm67381137pfj.105.2018.08.16.07.13.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Aug 2018 07:13:18 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Thu, 16 Aug 2018 23:43:11 +0930 From: Joel Stanley To: Peter Maydell Date: Thu, 16 Aug 2018 23:43:00 +0930 Message-Id: <20180816141303.20518-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:4864:20::542 Subject: [Qemu-devel] [PATCH v5 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" v5: Change back to ARMv7M from ARMMProfile v4: Fix number of IRQs v3: Rebase on Stefan's cortex-m0 series v2: Addresses review from Peter and Stefan Based-on: 20180814162739.11814-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