Message ID | 20250204002240.97830-7-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6504:1d96:b0:287:184:e28 with SMTP id o22csp88948ltz; Mon, 3 Feb 2025 16:24:07 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWoX/SOUO8uecTwyW0K5OS+Q6U5Q5kgFXf173iNQLukQRwrFGrmzmSKy4okIhi9PtRy3iyUPw==@linaro.org X-Google-Smtp-Source: AGHT+IGvm2w29X8YV1AJa25FF+xEtjNLSoC9Ka7lbANOjUI6Qy+sj+tP0kUPPis1BYRI7xbxsC1k X-Received: by 2002:a05:620a:44d1:b0:7b7:7d6:dfe2 with SMTP id af79cd13be357-7bffccc9f63mr2604276685a.10.1738628647480; Mon, 03 Feb 2025 16:24:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738628647; cv=none; d=google.com; s=arc-20240605; b=EkLVPMgCUD4QblEThYj3MVqYOEaLrAQ7GUifZ+k/gpF70XNxc8NUap7t16ExPjS6AP I399gtky5k7ZVKLmatnjm5x4ULUal9OEMITFTwJipIX8sq2i2uhDs7j5o6CaBfFBx7qR UHpd+8mxzYzIiKulm8Tnalc7cmfg6yGJoJaNTDbkn+W2i0LNsCbUnYpG2eyeYOJaoa4R Yky8VUmhD0BB1B8Rt3fFh0UQTb1/xX28WacZCB+97AxDGPZmkexNJclHhJOxpuds9tMS YnEZewPmSeBaUIlLsLqGjVS9FfihJ43bm4n5pl7hYYdefE88MQ/ayzb4FWcDBZwwP1rn 5YsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=7ETuzJ6SLiQ/NiVSSl3xkPrhN42XnijAgudKaENxFFg=; fh=uKqHXmvbEPG605opcSBUlsL0nPRXUqNQpNGL4j3vIAk=; b=AH1H8doQPwsFz8nKcCp605VpEBLKm10JAMYr/+FULv3rTMK/JFGln7Jnhi7OQX70F3 qxWEdcy7SO+WTFb0pR2yimGgjvoAwD6/7keGvdAFsIZqh8j3QQ/P0/82qKNKFmzW7anR 1+02D8abWV46ZiAFOu3r0RtKUMQV700A8eorbMUW09C8Yj2Igxai3S45mjwo/9Xo2hmg 64WLnWzNERUvMINbOFggZljpL7vsnyGTG8PFfQub+om51iCmuPkCbFHPZKQbNH2NtDmy zkNufR/tqL74VaTbHRwqtD/c+rPzJnCeFHz7X5SbfNkY/VijSJzRs4BPgqPmqQWm3Ljz lD5Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hhG/7OZe"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c02db4b5e5si137177185a.25.2025.02.03.16.24.07 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Feb 2025 16:24:07 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b="hhG/7OZe"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tf6ir-0000Ec-94; Mon, 03 Feb 2025 19:23:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1tf6io-00009w-Et for qemu-devel@nongnu.org; Mon, 03 Feb 2025 19:23:22 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1tf6im-00074i-Uo for qemu-devel@nongnu.org; Mon, 03 Feb 2025 19:23:22 -0500 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-385e27c75f4so4146668f8f.2 for <qemu-devel@nongnu.org>; Mon, 03 Feb 2025 16:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738628599; x=1739233399; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7ETuzJ6SLiQ/NiVSSl3xkPrhN42XnijAgudKaENxFFg=; b=hhG/7OZe/znQ5f1S7qyAWD4XACKBwXpdTucUHCSiGpEVqW751yn5jhTti6J9iAkoDc 3luef1D8FvsoEy9AMlzbcqxPZW4mbHRhg2WiatHqlsYa9iVsjQcIapq2pMEGiQ9RRtID UwiKYHj0yocvH5h2V1X7ypAB1K0Yu4YDuXthYw7zfXtUqjJjY3NnsFQXS3oB3MDFvZgd lGZ4OLOvNlSzGLkrQ4lMz/ZcOgBTapg/N3nYHQLWex1QYEBe0KF9tvnhpuQFB9c9sq5p Y5bUNwHXcw3Ohtj/ALGd7De26MHytbcpQjroK7L7cmZmfTU5EsTp4IVlRHrabqzqQI+E 6gaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738628599; x=1739233399; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7ETuzJ6SLiQ/NiVSSl3xkPrhN42XnijAgudKaENxFFg=; b=rmNu/j05tB9hwklJMWG9ttgPBslnPx4a2uzGSvZynawkgNTehjjf8AfTB1thXpwYMS fuN2rG2ko27KWLzkxItTzEFG9BI99mAPoqeTcGDwls8WhV4A+MGYI9z2XrIrBlZcyrEr RwU0sdTf79S1xbQdSDR3WmEjRqmg8fTaCHtXuOVZN7W8tFsa1PkrJA4i7Q213YMuG+b4 yuzgdWn7f1nQOPnJnOuX0NvSuDKVVmykjJ32Ci1hh9T+dWVdpTjD7wRF6XYooNBNqx2D qdaLUv7MW+BAkksvy+3xj+Sztd4CYuAaKZlcwIjMMPS6WE3DwJYnVAAtazo1dYiPbZGO 4feg== X-Gm-Message-State: AOJu0YxmhFKNvzGf/qWtAI/rUDTLYJXgEHmO4ZS8/uZJuVcpgLUa0BNR A63XEmxN4UuN6gWCdky5D91oNLkEHCIFCoLMm2mMvCEv2XGEvjcjYqBxh0G+DBGRWl2EZUt9GiL uArQ= X-Gm-Gg: ASbGnctFPru9CRxPfUUC14hACHLwL+qRfz/Epjmx0n3jNeBNt11x+7iD0NfT/cm5cQc sEubmFAHAjU5raKtzpa9RGHDEbYr/qqnvJcgihF4tJYkL451eSXGCvud/Sc7blNqBCU9MSvAQ2Z q6b+v5/o7o/9QW8qg+xfWI+lM+7gg3YinpGLZmw33B8CzLZL64phj/Za0PPzmiaSxDYW/KEYAxw owL/YDgHO8xo5Dherd28hA3MKyT1z51aX/HuTHC1Kz8we26TPkgW7/NqUZDc2JtqP6AQpvRtj1K gDdLa5YorGyqtEp827Bz1WfquaBHc9g+A22ebQIXUBUkNM5/qc7JTEzCvEBW7y6y5w== X-Received: by 2002:a5d:5988:0:b0:385:fd07:8616 with SMTP id ffacd0b85a97d-38c5167d80bmr20625537f8f.0.1738628599192; Mon, 03 Feb 2025 16:23:19 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438e245efbcsm168179175e9.33.2025.02.03.16.23.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 03 Feb 2025 16:23:18 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= <berrange@redhat.com>, BALATON Zoltan <balaton@eik.bme.hu>, Peter Maydell <peter.maydell@linaro.org>, Laurent Vivier <lvivier@redhat.com>, Ovchinnikov Vitalii <vitalii.ovchinnikov@auriga.com>, =?utf-8?q?Philippe_Ma?= =?utf-8?q?thieu-Daud=C3=A9?= <philmd@linaro.org>, Jared Mauch <jared+home@puck.nether.net>, Fabiano Rosas <farosas@suse.de>, Paolo Bonzini <pbonzini@redhat.com>, qemu-arm@nongnu.org, =?utf-8?q?Alex_Be?= =?utf-8?q?nn=C3=A9e?= <alex.bennee@linaro.org>, devel@lists.libvirt.org Subject: [PATCH v2 06/12] hw/arm/raspi: Consider network interface for B models Date: Tue, 4 Feb 2025 01:22:34 +0100 Message-ID: <20250204002240.97830-7-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250204002240.97830-1-philmd@linaro.org> References: <20250204002240.97830-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=philmd@linaro.org; helo=mail-wr1-x434.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[v2,01/12] hw/arm/raspi: Access SoC parent object using BCM283X_BASE() macro
|
expand
|
diff --git a/hw/arm/raspi.c b/hw/arm/raspi.c index 1a6a1f8ff22..68332fba027 100644 --- a/hw/arm/raspi.c +++ b/hw/arm/raspi.c @@ -143,6 +143,16 @@ static const char *board_type(uint32_t board_rev) return types[bt].model; } +static bool is_model_b(uint32_t board_rev) +{ + return !!strchr(board_type(board_rev), 'B'); +} + +static bool has_enet(uint32_t board_rev) +{ + return is_model_b(board_rev); +} + static void write_smpboot(ARMCPU *cpu, const struct arm_boot_info *info) { static const ARMInsnFixup smpboot[] = { @@ -304,6 +314,10 @@ void raspi_base_machine_init(MachineState *machine, machine->kernel_cmdline, &error_abort); qdev_realize(DEVICE(soc), NULL, &error_fatal); + if (has_enet(board_rev)) { + /* TODO: model LAN9512 and wire over USB2 */ + } + /* Create and plug in the SD cards */ di = drive_get(IF_SD, 0, 0); blk = di ? blk_by_legacy_dinfo(di) : NULL;
Raspberry Pi 'B' models have an ethernet chipset (the LAN9512). Since we don't yet model it, add a /* TODO */ comment. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/arm/raspi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)