From patchwork Thu May 3 09:05:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 134883 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1663288lji; Thu, 3 May 2018 02:07:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqP0Luibb6dyYwVhcXhYEAYeORZ4FuLzvDQHQjEdlyPVfjFAPsjqDUkLmDR8UCmQJjetPRn X-Received: by 2002:ac8:2fb4:: with SMTP id l49-v6mr18671539qta.195.1525338470403; Thu, 03 May 2018 02:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525338470; cv=none; d=google.com; s=arc-20160816; b=sOQjYzTTO/CN/UV3lMusPizIeBLbqLhVfJ0ox0cAbeFiDFqFbeHsgavNe76aF7ojNr ZepmaI40bkxKVLkjftWO8aH40jsSp+mVHtC8XX2IYDJmPA3DbhRzTT77kqgF9TrWu3Lm RKmyuOvo5BDKthVPtKJpOOG2cV7jATqeME58tOeq7UdZY4Zi4nvKPS3k8bQqN/WQzY8U vO64Rs+x+Y0Re97EHwniAB6iFB0nPcs1obNEeEZ4zez1eK0pRbwU2Z5FluaC7hwAKUk6 x2ylkoZeHTncPaKMRMDKxgYGEHMa+qMWM5BzpBHvxp1mLzbaELXbhfvrAINlqm3opMWb dGyA== 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=4AfgIs7F3bf8grsVlBRm6zfi0oL6dZmZQ08cgELFcug=; b=iqvggcSBsquVngQ2TkEG12Ppbk2WicINUM5lxvyqiGW5N7rYDRvG9obo1xqPm1Nb8q r6coL4tgRWaM+nzB8FeHlnYRINi3juGkz9BFwbrLsSBA3y0Ktyj/DhiGCLPf561qeeS/ 5RpXjh4zf+FWhP/R7x77i7U4mujYFLzzyYwNdUUig3u5KJaW8oLmkM8RvacM+qa6JM7k l9R1PZBkgHjXbGkL1qHhQo19ddIxtqd968H90IPr7LQ1ethQLDRuIvWCgdeDVnG8AYPq Oc0MfNW0/0STzwDDBdGm+NkFWIMK/90QjEGNniV1n4Rnvwnuv1n4mk1uoWDk14ymAJcG xOuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JHVpxByj; 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 j23-v6si1993269qtc.221.2018.05.03.02.07.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 03 May 2018 02:07:50 -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=JHVpxByj; 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]:54771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEADN-0003Qm-SR for patch@linaro.org; Thu, 03 May 2018 05:07:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEABR-0002Ap-Hu for qemu-devel@nongnu.org; Thu, 03 May 2018 05:05:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEABM-0008Mi-HS for qemu-devel@nongnu.org; Thu, 03 May 2018 05:05:49 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:43414) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fEABM-0008KX-Bc; Thu, 03 May 2018 05:05:44 -0400 Received: by mail-pf0-x244.google.com with SMTP id b26so1428042pfi.10; Thu, 03 May 2018 02:05:44 -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=4AfgIs7F3bf8grsVlBRm6zfi0oL6dZmZQ08cgELFcug=; b=JHVpxByjEOaL9XjsSf8bpVa15jnFhaHz06XsMF6UWL7//ejSKXV+wPoi0vwy0f3pzY pTfZpPG7w6MrlrwdfqTdThBHtGRrmp96Ss0IHOvPVaoVzznLCW/ta3UlyWm4KKWsAG7K 52aFf2XgHsP0otOddTbgp052GO1Y0PVMxq53PN4eYD+SS44XRb/n16A8Ux5GaNbfFGCd k68BCdq6Bpa3c1JmW8FMJ0xj3V2jSP/RWCEA4DVwtL6vhKq1L6nNhi9q73deL8F/ZbS7 uNo2RnKmwJOQ0ElSGRuh8qwPd+4d+ioewbNjQx1gUpjWKFkPbrNdRXZcBao4bKDojsJe lpUQ== 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=4AfgIs7F3bf8grsVlBRm6zfi0oL6dZmZQ08cgELFcug=; b=Nj9ONEXJkzI0MFLMzRTfYYSXvW3Hwv8dPwThP4xqM6+mepFbZMacr5RuBGMk5hy5jC gYUNsgkiUipwSAjLpjIP3kagqMdeI4KtWoEcDzYuPDVmTBY4guusz61ViwGci4XkG7Wl SLXkdzOx478EGuG2ucq9P8WebBDfVoeNvQdVptOEFZ12JHW0NfjTyDF3UMB9qJw2+QS6 E0RpvOSbjzjXMhBmM3gRkQEkaUNlI9rNrHwLVib3k1cKRZCb5bYzaxlqqVlzPenA0qYK nZl6dXZgVUc5xRafEExHImYaN9jOEy7BahBMtfySCvpRsBnLzEjWix891CNvNQh3mmc8 03og== X-Gm-Message-State: ALQs6tBD40oem8dvXtwrEtTNG8LRtb9qxWc0djBH9fdlIvUk1ogfmbPJ jwSOEJEdu6RYxuBivkKrWeA= X-Received: by 2002:a65:4301:: with SMTP id j1-v6mr8928502pgq.356.1525338342811; Thu, 03 May 2018 02:05:42 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id p126-v6sm21519858pga.28.2018.05.03.02.05.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 02:05:42 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Thu, 03 May 2018 18:35:34 +0930 From: Joel Stanley To: Peter Maydell Date: Thu, 3 May 2018 18:35:30 +0930 Message-Id: <20180503090532.3113-1-joel@jms.id.au> X-Mailer: git-send-email 2.17.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::244 Subject: [Qemu-devel] [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: Andrew Jeffery , Stefan Hajnoczi , qemu-arm@nongnu.org, qemu-devel@nongnu.org, Jim Mussared Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hello, 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. Please review! Joel Stanley (2): arm: Add Nordic Semiconductor nRF51 SoC arm: Add BBC micro:bit machine default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs | 1 + hw/arm/microbit.c | 33 +++++++++++ hw/arm/nrf51_soc.c | 101 ++++++++++++++++++++++++++++++++ include/hw/arm/nrf51_soc.h | 31 ++++++++++ 5 files changed, 167 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.0