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: 10567567 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 D527B1390 for ; Thu, 16 Aug 2018 14:15:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3CED2AED0 for ; Thu, 16 Aug 2018 14:15:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B83F12B098; Thu, 16 Aug 2018 14:15:13 +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 5060D2AED0 for ; Thu, 16 Aug 2018 14:15:13 +0000 (UTC) Received: from localhost ([::1]:55925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqJ3Q-00087j-IX for patchwork-qemu-devel@patchwork.kernel.org; Thu, 16 Aug 2018 10:15:12 -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-Google-Smtp-Source: AA+uWPzGfoG6XocLSd3hRcyh5Tlg1RzgG/X1975atDxLYx6APv0Sm/Qy3pXqnQtwLX5kv1qXmUKROg== 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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