From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD03CC35247 for ; Thu, 6 Feb 2020 01:34:55 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A02E820661 for ; Thu, 6 Feb 2020 01:34:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Nye+nc8j" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A02E820661 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:59398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izW4E-0005WY-Po for qemu-devel@archiver.kernel.org; Wed, 05 Feb 2020 20:34:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54379) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izVod-0001BW-KS for qemu-devel@nongnu.org; Wed, 05 Feb 2020 20:18:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izVoc-00049N-AB for qemu-devel@nongnu.org; Wed, 05 Feb 2020 20:18:47 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:37402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1izVoc-00041K-3A; Wed, 05 Feb 2020 20:18:46 -0500 Received: by mail-wm1-x343.google.com with SMTP id f129so5041247wmf.2; Wed, 05 Feb 2020 17:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bj2pLjmxnon+yHpt+3WlsQNgSCFWtNKV2Jq/oi6zYzc=; b=Nye+nc8ji+LUoD+HqHEh898XZcqoaNdY5bQe5q2jNmG6KWO/OLLNAL0Mq6UN8IWRef HSTiFX9YHmG3prS6i6FPzypakPBA2Io13Sa1AnLVn4Cd/mrjcKmPmePyeBT1AeEBt+AO 3lvg0H5lpxAQ8LOSoBfJu6rZY0yg7uN9z/9tUfwvpK0NKMIwqcDoznEMWEIdgPFcrzTu 32rs7if1Avykot7/SS59R/EP4Nu5tQzBj2VlIZNkgYDZax5tO90n++DAXNLQtrlmTenu cb1SscE1nxv9ShTPYD+8DnE0uYJfzyYP3ekE7DGBewoMgAx1ldKy6XPhOYlSSjpzVdMZ nqZA== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=bj2pLjmxnon+yHpt+3WlsQNgSCFWtNKV2Jq/oi6zYzc=; b=b51GVn0jIaSj0igmTclU+8Tqr70csH6kWkXaHHl/iMUSdZBjB4WcuBv9zXyOconJJQ OMxfMYW0hjJ99K990M8ub4Hfmrxhw1Tara3YYJfwhb9SVKgY9hHDuPjoyzWmPat+dMy3 LNJ/5u9igZgL5KnmVjie5NFMAuEdDKzZ3/5NfG7cWmv2o4lEbyHge9JdkA3ynQCGbrGl cDA2g7UhltY2Zi56nrOf7izsE5Hgm3U3UEWLzyacmyvWKppPXcOkfRGtQQDBSzSqZ6P6 U+0A+Opn/ASLkMFppEBWsufIAzeUWu0mHNSv4nxO9C5bdrS+aFtQ/gN6EELJcmAJ0rks 8wuw== X-Gm-Message-State: APjAAAXobJIpujuei9/x1GAkH9nPn8iEafEnIOdfVLM6vokq1f4IoX2O kxku9K7pmgi8kVS1beipu7cpU+0y X-Google-Smtp-Source: APXvYqy/CqQ+dxAfLGKYZYGHBE6RkjTGxFlQlv+FOFh1m5/0j2Iiv1yzlkg6kn8gxpdHJq2sWxtEJw== X-Received: by 2002:a7b:c1d0:: with SMTP id a16mr582193wmj.175.1580951923906; Wed, 05 Feb 2020 17:18:43 -0800 (PST) Received: from localhost.localdomain (2.red-95-127-156.staticip.rima-tde.net. [95.127.156.2]) by smtp.gmail.com with ESMTPSA id w13sm2053526wru.38.2020.02.05.17.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 17:18:43 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 21/30] hw/arm/raspi: Add the Raspberry Pi B+ machine Date: Thu, 6 Feb 2020 02:17:47 +0100 Message-Id: <20200206011756.2413-22-f4bug@amsat.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200206011756.2413-1-f4bug@amsat.org> References: <20200206011756.2413-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Joaquin de Andres , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Andrew Baumann , Esteban Bosse , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" $ qemu-system-arm -M raspi1 -serial stdio \ -kernel raspberrypi/firmware/boot/kernel.img \ -dtb raspberrypi/firmware/boot/bcm2708-rpi-b.dtb \ -append 'printk.time=0 earlycon=pl011,0x20201000 console=ttyAMA0' [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.69+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1261 Tue Sep 3 20:21:01 BST 2019 [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d [ 0.000000] CPU: VIPT aliasing data cache, unknown instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi Model B [ 0.000000] earlycon: pl11 at MMIO 0x20201000 (options '') [ 0.000000] bootconsole [pl11] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] cma: Reserved 8 MiB at 0x1b800000 [ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x49c with crng_init=0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 113680 [ 0.000000] Kernel command line: printk.time=0 earlycon=pl011,0x20201000 console=ttyAMA0 Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 434380K/458752K available (6971K kernel code, 635K rwdata, 2080K rodata, 464K init, 797K bss, 16180K reserved, 8192K cma-reserved) ... Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/raspi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/arm/raspi.c b/hw/arm/raspi.c index 0d1f15e08c..47cc250883 100644 --- a/hw/arm/raspi.c +++ b/hw/arm/raspi.c @@ -334,6 +334,11 @@ static const TypeInfo raspi_machine_types[] = { .parent = TYPE_RASPI_MACHINE, .class_init = raspi_machine_class_init, .class_data = (void *)0x9000c1, + }, { + .name = MACHINE_TYPE_NAME("raspi1"), + .parent = TYPE_RASPI_MACHINE, + .class_init = raspi_machine_class_init, + .class_data = (void *)0x900032, }, { .name = MACHINE_TYPE_NAME("raspi2"), .parent = TYPE_RASPI_MACHINE, -- 2.21.1