From patchwork Mon Oct 4 13:47:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 515203 Delivered-To: patch@linaro.org Received: by 2002:adf:fbc8:0:0:0:0:0 with SMTP id d8csp4369398wrs; Mon, 4 Oct 2021 06:49:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV7xsSJGuIfJEvu5156BttiH7zhY8iDvspCo2003722PT4qEELLys2flsBtDNd9fAE6fEG X-Received: by 2002:ab0:6c41:: with SMTP id q1mr7078493uas.16.1633355352480; Mon, 04 Oct 2021 06:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633355352; cv=none; d=google.com; s=arc-20160816; b=kCPNIg6VLa5vlxnoXnA4MDSjYo1M0f1ffnyNB6tgWT2z5NPIBLAdBv1JERn947FypS 5zgXcc/50ZuFTZSfq/puAyANGnbMXr1lzGPkng69fh44u3I5KGGSasr0SZwIqwQ8N2oq HUz+B4LsdzPL3u9eOqR+CSaceZTRq2+N+3E0mw+hZ/HKugab46tyjfErOB463negixgV Lt3YnV29M55csQjGPrN/pn4fhwlCSdEPRSMzaEiMWUFE5ZzxJHcNd/0maq4CzMa/vbtG q2xmPgNrhpumjCreF5pTeBs70WmCg/2k9MZxEuD7A0HT/GpJMSteDOGZu1WoqCwC5Mob eTag== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=2XKksSNJpzNeevRjjy+0RRvABj/O0e/8A0w+HPwQEvE=; b=dbqBfbuCCy9zFienaS9wSF9Rdcb/Vajot1NASr6rRnZ663HxIbSSp5elJJnCc22qsn EqkXPwj9yua0ChW/ir3W3tWCOQvuBAgf16l8HXzkaUa1Y9uzJ89Rgh5obtzSXqITlr3Z dVpSDbhoHj1V5hMcPxrEFy1P8hiphHQID6MUTPJDTNfMNInWbzZqUL11lS24ceIbwdxl Bmtg67FioBaSJfrW3O0sfx5Lc4BeCjcHPRjOixm4FQV8+pSNqn1YJ8j0lIjPoAynQu8M pXz6YtSpJKJ1NyWC8iCYsKvjTfsEhzedASfQqp+RJYVbk3GSlGOsbZ8Rxx9SNiOM07oW 0JxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=f7tmgdTh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l13si9516458vsv.319.2021.10.04.06.49.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Oct 2021 06:49:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=f7tmgdTh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXOL9-0006yn-Qo for patch@linaro.org; Mon, 04 Oct 2021 09:49:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXOJy-0006Ge-3q for qemu-devel@nongnu.org; Mon, 04 Oct 2021 09:47:58 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:55820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXOJs-0007Ik-PD for qemu-devel@nongnu.org; Mon, 04 Oct 2021 09:47:57 -0400 Received: by mail-wm1-x32f.google.com with SMTP id v127so13493033wme.5 for ; Mon, 04 Oct 2021 06:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2XKksSNJpzNeevRjjy+0RRvABj/O0e/8A0w+HPwQEvE=; b=f7tmgdThQJhz/46AoxeZAdAwLhUtYZHGEyLZq6KVONi5FNORKwuEXJ/EnGMb5fDf8o QEhe1lt9tAPwVGAofqzFQdXDSKbpCxudOpH7xt0i3YOItlBTVe8DSd+HZ4aycSBVW9DM gLIai21BOTecgVMnWPPmapFOaEqO542CO8spxanY+7v6t6Uk9xgBga6KG+cAFHduWb8t 0kCjYF/TnXZssJlsqUC0DCLGxzVOZunaWf6SY4kN04hBVW+Qdw/nRkGHCdBycm96s04M 9XxET0o9Tc0lyjFz+YIut+ZDyBl9GhSCG2+O2ic4Q+rZEbp44bAlocBzNiSlv5hHTPy5 V5jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2XKksSNJpzNeevRjjy+0RRvABj/O0e/8A0w+HPwQEvE=; b=mRJlkeIyRclo9sXYDGkYJ7GZTj5TxYpZamsUD/GWqWHQ/nUlcp8ADNaR3zUg0LqaIu j19g+RMoVbHgdypPzxnTFodp6KBp+5GjC3zcF9nKwI1YGvoQsWmWZtS32r+CltLVG9Hz LeJhvY3C5UmQC4dkIXtqi74MXDYldOP2f7kgwF0k+5tmek2LQhtxpSY9giXiMd7lEbTU InpfG2IosLsypeTWHNc+IE0qac3UoIW0NYQwhAvLFnAxQTqrdqc/fohEV961ZIPVG0zL 40iSTBzoRgjBaOD2DOm21oDob0frVdnCh4Ie+6UQ47O1bjt6XmkinbdCq/rB23UTzWwA ey2g== X-Gm-Message-State: AOAM53140+KRTtk2nJMbwM8PI4Ta33OYSGaKJ6Xps5DgKEH3jifWJIar FNyzthrVv/eg4XW3MwLEqE/zhg== X-Received: by 2002:a1c:f402:: with SMTP id z2mr18783275wma.53.1633355270873; Mon, 04 Oct 2021 06:47:50 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l2sm15890484wmi.1.2021.10.04.06.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 06:47:46 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9660D1FF9E; Mon, 4 Oct 2021 14:47:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 7/7] hw/arm/raspi: Add the Raspberry Pi 4B board Date: Mon, 4 Oct 2021 14:47:41 +0100 Message-Id: <20211004134742.2044280-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211004134742.2044280-1-alex.bennee@linaro.org> References: <20211004134742.2044280-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , f4bug@amsat.org, Andrew Baumann Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé The Raspberry Pi 4 uses a BCM2711 SoC (based on a BCM2838). Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée --- vAJB: - use 8gb version --- hw/arm/raspi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.30.2 diff --git a/hw/arm/raspi.c b/hw/arm/raspi.c index 03f54887f4..0342aeab03 100644 --- a/hw/arm/raspi.c +++ b/hw/arm/raspi.c @@ -369,6 +369,15 @@ static void raspi3b_machine_class_init(ObjectClass *oc, void *data) rmc->board_rev = 0xa02082; raspi_machine_class_common_init(mc, rmc->board_rev); }; + +static void raspi4b_machine_class_init(ObjectClass *oc, void *data) +{ + MachineClass *mc = MACHINE_CLASS(oc); + RaspiMachineClass *rmc = RASPI_MACHINE_CLASS(oc); + + rmc->board_rev = 0xd03114; + raspi_machine_class_common_init(mc, rmc->board_rev); +}; #endif /* TARGET_AARCH64 */ static const TypeInfo raspi_machine_types[] = { @@ -393,6 +402,10 @@ static const TypeInfo raspi_machine_types[] = { .name = MACHINE_TYPE_NAME("raspi3b"), .parent = TYPE_RASPI_MACHINE, .class_init = raspi3b_machine_class_init, + }, { + .name = MACHINE_TYPE_NAME("raspi4b"), + .parent = TYPE_RASPI_MACHINE, + .class_init = raspi4b_machine_class_init, #endif }, { .name = TYPE_RASPI_MACHINE,