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.5 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 759DFC35242 for ; Sat, 8 Feb 2020 16:58:24 +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 45B092082E for ; Sat, 8 Feb 2020 16:58:24 +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="WS+jnCCv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 45B092082E 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]:43314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0TR1-0007MY-DT for qemu-devel@archiver.kernel.org; Sat, 08 Feb 2020 11:58:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53726) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0TPm-0005We-8o for qemu-devel@nongnu.org; Sat, 08 Feb 2020 11:57:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0TPl-0001eM-38 for qemu-devel@nongnu.org; Sat, 08 Feb 2020 11:57:06 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:41485) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0TPk-0001dc-Tc; Sat, 08 Feb 2020 11:57:05 -0500 Received: by mail-wr1-x432.google.com with SMTP id c9so2479961wrw.8; Sat, 08 Feb 2020 08:57:04 -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=uyF64iuYYQw6zbyIHAWavbNHZnEbok8Q/hkHcClOAlo=; b=WS+jnCCvhSX08Yh+/2ERV1butvw2ZyT88wXj7VUUHARHvX4odpwAVXj27g1Z/H7nic d354oEju46FU/95lJUdzL1qq5ryIKo8hUgBmMLsDt0EiwHbaBjEeDKOtG8Pfeoz8HjsC unioHcxZIHCVRLjvY9qtuhhq9F6dkBQTveVDcdYa1u5DuE1nbP2xiyGVOgfSCXioLnwv fQuybsW1KMv9phVHXqfFhC8haXM6Jep9tHf2AQguLw0BnU5F6gnFYSnx38FDhjjeHDCa zKpBSzFL8Zo+7Te4j6inLO8F8S7WapYBB5THlkO32AIKgVN7oVNio98LIB+HQg9KpWul sMLw== 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=uyF64iuYYQw6zbyIHAWavbNHZnEbok8Q/hkHcClOAlo=; b=QYOlFmtDSzukXwaF7AtHNXYvG5+qtIO4Sffqb+ghIjg/ObDI81S4bhi6OUq1gOJvDD wM0DZiyqgHUmZh82Lbrts8tziGKOqUNtULzJwomeCVASg5tg9Xoy08o2O9K0eiYIJE3F BwU+IbuAuPv2WUOLl2bIke0qZtJcFQlfVW2QTf3ExKhf/orXnjd3eCdeNFgeFuUPJghE 73b+4eQUh2qn44ULgIG9FfxgL+weQsIZiBLWdEjMpWZrN1GCmU1Kukbc3RCn7WEX/ppA AOMt4Rjex2tDjamQzy18OW1eB4jfMB+XE9YcPTgoNacIMCOsnSAStxG9YnnuaUKMpaMj bTDA== X-Gm-Message-State: APjAAAWBu4zoMOn85a3RinBfHAxGwwzQpYyrd1D5xj9ZRRsqAFlDhYtn m3Sit0Qr9lZKlx9oplpEpLS+sNBH X-Google-Smtp-Source: APXvYqzXh1o3LCPVfy99fV4Qy9KbhQPlyurZ4UO9D9UmgdHDpvqR0Xc6P0rpbrR4u8FROIq1TCDgOQ== X-Received: by 2002:a5d:6692:: with SMTP id l18mr5918288wru.382.1581181023754; Sat, 08 Feb 2020 08:57:03 -0800 (PST) Received: from localhost.localdomain (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id a5sm7872763wmb.37.2020.02.08.08.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Feb 2020 08:57:03 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 02/13] hw/arm/raspi: Correct the board descriptions Date: Sat, 8 Feb 2020 17:56:34 +0100 Message-Id: <20200208165645.15657-3-f4bug@amsat.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200208165645.15657-1-f4bug@amsat.org> References: <20200208165645.15657-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::432 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 , Alistair Francis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Andrew Baumann , Esteban Bosse , Niek Linnenbank , qemu-arm@nongnu.org, Igor Mammedov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" We hardcode the board revision as 0xa21041 for the raspi2, and 0xa02082 for the raspi3: 166 static void raspi_init(MachineState *machine, int version) 167 { ... 194 int board_rev = version == 3 ? 0xa02082 : 0xa21041; These revision codes are for the 2B and 3B models, see: https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md Correct the board description. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/raspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/raspi.c b/hw/arm/raspi.c index f2ccabc662..818146fdbb 100644 --- a/hw/arm/raspi.c +++ b/hw/arm/raspi.c @@ -221,7 +221,7 @@ static void raspi2_init(MachineState *machine) static void raspi2_machine_init(MachineClass *mc) { - mc->desc = "Raspberry Pi 2"; + mc->desc = "Raspberry Pi 2B"; mc->init = raspi2_init; mc->block_default_type = IF_SD; mc->no_parallel = 1; @@ -243,7 +243,7 @@ static void raspi3_init(MachineState *machine) static void raspi3_machine_init(MachineClass *mc) { - mc->desc = "Raspberry Pi 3"; + mc->desc = "Raspberry Pi 3B"; mc->init = raspi3_init; mc->block_default_type = IF_SD; mc->no_parallel = 1; -- 2.21.1