From nobody Wed Nov 27 02:45:34 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1702003328; cv=none; d=zohomail.com; s=zohoarc; b=kiRKFMX7ETv8tErbOIN9oSt1CM+pArj+SOccKvboqZDzt/2u6WP0aT7eLfRk5/zGgOYtn5xBsNbFpZI1M8SB1Mkonelf2mBKddrPJ4EnrgmOXUHFu73fK9YIsxxHan/SYXoAOt3vv+fJusyGQOeVDkMf1CjAEOEzdLAqfYQxJns= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1702003328; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=fVH9O9un+zwSeBPQSL0IeMDZWUWBtxU0cSyYzIJS41g=; b=ccdDZfX2PnYd6VqAnqBQHLpnWjbeiofbayyzjTclQtEBzNlDlwNwL24ZD4Q9tcjErdnwa053bVqGTWFO8diMwkWwmAU0glnws/DB0BH4UOCKVJso9vC1+YsWaqcV3j+zrKKYqn3VYhAsRM4Az1w96a0Wd0dOiOcMa3AYRp+qCqU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1702003328789770.5627360250033; Thu, 7 Dec 2023 18:42:08 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBQfT-0004Ca-PH; Thu, 07 Dec 2023 21:32:43 -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 ) id 1rBQfR-00048e-N4; Thu, 07 Dec 2023 21:32:41 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBQfQ-0002TM-4O; Thu, 07 Dec 2023 21:32:41 -0500 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c9f62fca3bso20101221fa.0; Thu, 07 Dec 2023 18:32:39 -0800 (PST) Received: from localhost.localdomain ([185.200.240.39]) by smtp.gmail.com with ESMTPSA id r1-20020a2e94c1000000b002c9e6cbf78esm99062ljh.19.2023.12.07.18.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 18:32:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702002758; x=1702607558; 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=fVH9O9un+zwSeBPQSL0IeMDZWUWBtxU0cSyYzIJS41g=; b=inuypUePzjXih0Hj0aqS70yTrhIfH9pqsUFe20P0iDppW/pwu0HWoc5rvkEjqx9IGG AG2lbM2FJcd8FUhwKWhsehZrTWbMCGekSnFqpLK042czzPZBvIdFrzaK57HZhbPYG7y6 SkbhqatTDYnds4xtHP48xop1hOYfbtqSo7crlj09qRqcPsDyTny5vapfk+jDIDr2G/xL uw65i2txoafWCGuMtNuogv+kNi6v78Le+6gj7l5/shpdoJJwrzud9i5afZDeoQ4NYuEs qHcvXaTPYdbyR4fWqpu1t4I6WDcjiU/c7vLFdkXam4L+Hwq9tmvfEWcfQGlsqx31IVgL ju7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702002758; x=1702607558; 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=fVH9O9un+zwSeBPQSL0IeMDZWUWBtxU0cSyYzIJS41g=; b=N8VqUax/m7RlybO4iZbtk+HOtZausMthIq/b4W2x30Zu+eCmrFZdy0gJwkVD9D13p7 keopnOjI9qpHiHMrMI3OJJ0j4JJkGV+BIalqDIXV/mUpbPQ6ah3Sp1YK2b/yH8bKdU34 zVF6kiqQWhdOLHlesdHFgraz+r38YkU9mNFLhR1vtmiG9EiAMrXzWq5Du8hddiFOTKj/ KbGKtM7nD34dSI1hZu5UNAeCjVk4MR25Z256YrORv6UAUkRk7EAWcWA1+uMBeFOkMlUx 07dTPOiuSae2Bjq1CMydnvh4U7jQ3rRfdr51O2zJtYAfijQpBkLqXzrcgkX8+N3KZjih 7AdQ== X-Gm-Message-State: AOJu0YwbyOeH20Yeb436C7eBYtT8cZMLJyXEZNcKuxK4F/6UrF0+EY7W 9EodzRbP9CJ90fjLWd4S3e65BEh+luA1lg== X-Google-Smtp-Source: AGHT+IEJKBQLFVhADKeXJIWx973c+eyKEC4YnVFOSAvWRm3MjKLaoPt+92hWEboPY/qk4K4NfV5n7Q== X-Received: by 2002:a05:651c:10a3:b0:2ca:24cf:5b2d with SMTP id k3-20020a05651c10a300b002ca24cf5b2dmr1923011ljn.14.1702002757807; Thu, 07 Dec 2023 18:32:37 -0800 (PST) From: Sergey Kambalin X-Google-Original-From: Sergey Kambalin To: qemu-arm@nongnu.org Cc: qemu-devel@nongnu.org, Sergey Kambalin Subject: [PATCH v4 13/45] Add memory region for BCM2837 RPiVid ASB Date: Thu, 7 Dec 2023 20:31:13 -0600 Message-Id: <20231208023145.1385775-14-sergey.kambalin@auriga.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231208023145.1385775-1-sergey.kambalin@auriga.com> References: <20231208023145.1385775-1-sergey.kambalin@auriga.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=serg.oker@gmail.com; helo=mail-lj1-x231.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1702003329313100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Sergey Kambalin --- hw/arm/bcm2838_peripherals.c | 3 +++ include/hw/arm/bcm2838_peripherals.h | 3 ++- include/hw/arm/raspi_platform.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/arm/bcm2838_peripherals.c b/hw/arm/bcm2838_peripherals.c index 196fb890a2..d3b42cf25b 100644 --- a/hw/arm/bcm2838_peripherals.c +++ b/hw/arm/bcm2838_peripherals.c @@ -182,6 +182,9 @@ static void bcm2838_peripherals_realize(DeviceState *de= v, Error **errp) sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->gpio), 0)); =20 object_property_add_alias(OBJECT(s), "sd-bus", OBJECT(&s->gpio), "sd-b= us"); + + /* BCM2838 RPiVid ASB must be mapped to prevent kernel crash */ + create_unimp(s_base, &s->asb, "bcm2838-asb", RPI4B_ASB_OFFSET, 0x24); } =20 static void bcm2838_peripherals_class_init(ObjectClass *oc, void *data) diff --git a/include/hw/arm/bcm2838_peripherals.h b/include/hw/arm/bcm2838_= peripherals.h index 0a87645e01..af085934c9 100644 --- a/include/hw/arm/bcm2838_peripherals.h +++ b/include/hw/arm/bcm2838_peripherals.h @@ -64,12 +64,13 @@ struct BCM2838PeripheralState { MemoryRegion mphi_mr_alias; =20 SDHCIState emmc2; - UnimplementedDeviceState clkisp; BCM2838GpioState gpio; =20 OrIRQState mmc_irq_orgate; OrIRQState dma_7_8_irq_orgate; OrIRQState dma_9_10_irq_orgate; + + UnimplementedDeviceState asb; }; =20 struct BCM2838PeripheralClass { diff --git a/include/hw/arm/raspi_platform.h b/include/hw/arm/raspi_platfor= m.h index 0db146e592..537fc6b4af 100644 --- a/include/hw/arm/raspi_platform.h +++ b/include/hw/arm/raspi_platform.h @@ -74,6 +74,7 @@ uint64_t board_ram_size(uint32_t board_rev); #define DMA_OFFSET 0x7000 /* DMA controller, channels 0-14 = */ #define ARBA_OFFSET 0x9000 #define BRDG_OFFSET 0xa000 +#define RPI4B_ASB_OFFSET 0xa000 /* BCM2838 (BCM2711) RPiVid ASB */ #define ARM_OFFSET 0xB000 /* ARM control block */ #define ARMCTRL_OFFSET (ARM_OFFSET + 0x000) #define ARMCTRL_IC_OFFSET (ARM_OFFSET + 0x200) /* Interrupt controll= er */ --=20 2.34.1