From patchwork Wed Jun 27 14:38:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 140326 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp960908ljj; Wed, 27 Jun 2018 07:38:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdnTfvkjpR07yPzwUCBi4z/q2eVPVV2I3BzkA2w0zlSDVuSZjzBBrDZ1W9pXmyA92N8tqIS X-Received: by 2002:a0c:95ad:: with SMTP id s42-v6mr1735719qvs.18.1530110331890; Wed, 27 Jun 2018 07:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530110331; cv=none; d=google.com; s=arc-20160816; b=JTz9esEpOxcFVAoIl9cp2LV+OoqPQda5xpZszPtMTxz5NuWXjGxY8tu+aqjdLei83x mMfQDVld19f4txszq9DE99we5qwGmr3oQFzwCUFMUsjS7DodJaZ1CQPi+0EYoGQfxmnr M6se07Ph2Hnih6X/9Z3Hd7ViOwUGhM3SxYg6X83p20SMLEPFS2V8UgByQRcAY2C8xEFw S3rxCVViL2N22jQp7wvfZc+gQzUJbdcHyStfWKlQxpWkmNZaHBe7eY+eKAbFQl/k0TYR 2ksUFm9cg6kjF9RBzombGbYWy1gD1IAs7QTjy+t4OHY3tDOdsxT1EOu8ReaLpuNeu64f aKiw== 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=aMBb3Wa0uXQOAC8285KnyA3hZ4B5RSBmzSlgXgXt3Ao=; b=z9Lulm7qHWAGlcQdRsyx2f0EM3VvXqprrELZq8zIUUyAm9ykjx+FD8750gN5PdT5n+ ZylpruGDhiCqYoOauvb2OTANuuqm0W2iOmK+/jR3dkZOV/Q8KYCNjJKRNYXYdriSna20 a5FgxgwreLJd2/fq7sk746lsUjnP4zaOrSwJY0rMzrXk6syLSUv+413tdQFW2jKxKEH7 IzLYHZQsj6SNE/UZpfKE7zO2RawszsNglyRbOdj2iVA57fL7K0bcMjWfHPk4O4B9R5qL wXWqiky5JBG8+JQRGdf9EOujcQ0To1dYGQdk4oiD/0Re7wKd3vR7L0ffA7OVOQNJ/xKK ykZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SxrM3Eux; 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 v64-v6si2206395qki.313.2018.06.27.07.38.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 27 Jun 2018 07:38:51 -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=SxrM3Eux; 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]:59692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBat-0004Tl-9A for patch@linaro.org; Wed, 27 Jun 2018 10:38:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBac-0004Sg-QB for qemu-devel@nongnu.org; Wed, 27 Jun 2018 10:38:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYBaY-0002jF-OY for qemu-devel@nongnu.org; Wed, 27 Jun 2018 10:38:34 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:46538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYBaY-0002iH-Ij; Wed, 27 Jun 2018 10:38:30 -0400 Received: by mail-pl0-x242.google.com with SMTP id 30-v6so1130776pld.13; Wed, 27 Jun 2018 07:38:30 -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=aMBb3Wa0uXQOAC8285KnyA3hZ4B5RSBmzSlgXgXt3Ao=; b=SxrM3EuxK1l3+vtSelG/F26PxdRhiK9c4bYjFBQnvyid08d7AaO2qujbIXlXUEoMoI 6xZv9tt4SribWQ82pHpKg1h+LBiaNHMDYPj/y/arbZPy5B/ZJllrcK18v6RMJ0O+vzkm 4Ma3ly2vhqTlbCCzZtsGpUfS7eDKz739laLFtQfmupXQOG8UVrgZK/PaUnhP05YcedcK jojUdrIGzbGcaiW36V/AxFAYpvcJVrl31szkQIGyNzOTL1ZrsKkRdaGOdRb7sOsasex/ 0lZsLXcdGll9GCKShEbcHVj63ZJN2yv/2OCyzOcUUxLE8rDMbs27jk0fmnjKN2cyF+Pm TIOA== 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=aMBb3Wa0uXQOAC8285KnyA3hZ4B5RSBmzSlgXgXt3Ao=; b=ZcOcJ13QdLQYvKomvnmlaGnfRljYILx2wmmYn/vyKaEstAABKxsLnNMgI0NOe9cgwe JE7fKVSQspcFgFQGNXQKHLt7039SZHps81bdgvw4WIzElBWGPHzCAnYo2otjCxtWLKde DRTj+vFg5RJByUiiaqAmhNySkY3UBasqUXMzn4/cpYMSecKqOXw101OAcxoJD1PRs5qj LniLs9tQMUurZWYqxCJUknP4ygzgwNNFC3ht/AQk/ZBaAIa7PNc2Bq4w/eCKsmCFLPIl sYFCXrisiLSrI5dg0Vl2epTDZ3AtaFZVGwuf6eqRjIcF/C6wfz7M360i+SgLvRLLbl/2 u8IA== X-Gm-Message-State: APt69E1XXmY9asNI0CDftJtGgrOFFI4qSeLFsd26IrEfwsgckmHQpjj/ kkw7Rp99w9L+7fROx5KWl/o= X-Received: by 2002:a17:902:728a:: with SMTP id d10-v6mr6398938pll.192.1530110309418; Wed, 27 Jun 2018 07:38:29 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id y14-v6sm6162474pgv.37.2018.06.27.07.38.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Jun 2018 07:38:28 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Thu, 28 Jun 2018 00:08:20 +0930 From: Joel Stanley To: Peter Maydell Date: Thu, 28 Jun 2018 00:08:12 +0930 Message-Id: <20180627143815.1829-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::242 Subject: [Qemu-devel] [PATCH v2 0/3] [PATCH 0/2] 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" 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. v2: Addresses review from Peter and Stefan Joel Stanley (3): arm: Add Nordic Semiconductor nRF51 SoC arm: Add BBC micro:bit machine MAINTAINERS: Add NRF51 entry MAINTAINERS | 8 +++ default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs | 1 + hw/arm/microbit.c | 56 +++++++++++++++ hw/arm/nrf51_soc.c | 116 ++++++++++++++++++++++++++++++++ include/hw/arm/nrf51_soc.h | 41 +++++++++++ 6 files changed, 223 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