From nobody Fri May 3 00:09:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+84349+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+84349+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1638635893; cv=none; d=zohomail.com; s=zohoarc; b=ZAgsrlEvWvBxznzXt8uae9KICMue5eCLf9Om6Fj01dxhyGHbPDknJmqyAvlm/dXF5lbUDTMaJdK6QVSgO1SwX5hGSSPfqU0v13n24tPqbVrI1Q8S86kkvE6OxUjUz/LEiGPH6Xc8LbvTIlgOp3RWYexlIeN1K0LSYyTSTknAN2k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638635893; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=1aILWiEhjkmCV03TazcpHFkIuWvRIHsVYGijf8S5rK0=; b=e142MBhmI22lJc5ZNX5iGW3Pt+zE1zNNFCso2B2U+Gf6E5TkhNOZiowwge4M5FvhMuHdr2HXS0yRHnzLiN77nRhUJjcHljSR5IKM5Ui6CgdhMikJCQ45398q/jIuRyoZTBArYO8Rl8nM52qf8SUx4wgeKNMKYg2EgH0UWzKuF/U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+84349+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1638635893676744.4238933667008; Sat, 4 Dec 2021 08:38:13 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id GzW1YY1788612xEV9UqCHDAV; Sat, 04 Dec 2021 08:38:13 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.14699.1638552846323390809 for ; Fri, 03 Dec 2021 09:34:06 -0800 X-Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-305-XYp6Z-v7NEKOb7wVVE1Qvw-1; Fri, 03 Dec 2021 12:34:04 -0500 X-MC-Unique: XYp6Z-v7NEKOb7wVVE1Qvw-1 X-Received: by mail-qk1-f198.google.com with SMTP id s8-20020a05620a254800b0046d6993d174so4005681qko.3 for ; Fri, 03 Dec 2021 09:34:04 -0800 (PST) X-Gm-Message-State: WfOny2gUCKnkR44PoPTDCRIwx1787277AA= X-Received: by 2002:a05:622a:1206:: with SMTP id y6mr21935936qtx.356.1638552843973; Fri, 03 Dec 2021 09:34:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoUGQiaQ0UlX6apZNOYyUU38/9M1WEbJiJC849vSJ6Unh31K6CX3T7pgvCZCbUhQKpZTDjMw== X-Received: by 2002:a05:622a:1206:: with SMTP id y6mr21935909qtx.356.1638552843703; Fri, 03 Dec 2021 09:34:03 -0800 (PST) X-Received: from fedora.redhat.com (modemcable200.11-22-96.mc.videotron.ca. [96.22.11.200]) by smtp.gmail.com with ESMTPSA id x16sm2384016qkp.67.2021.12.03.09.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Dec 2021 09:34:03 -0800 (PST) From: "Adrien Thierry" To: devel@edk2.groups.io Cc: Adrien Thierry , Ard Biesheuvel , Leif Lindholm , Pete Batard Subject: [edk2-devel] [edk2-platforms PATCH] Platform/RaspberryPi: Fix miniuart base address and length Date: Fri, 3 Dec 2021 12:32:10 -0500 Message-Id: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,athierry@redhat.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1638635893; bh=y+3cJmPdqnk3bhPGzCsjaS2HJrSC/4+M2mEws3DvHmo=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=JjmAG0IjrLGIAFpy4O+xjKGAY8bJM+SaQ+kgSsgzhIP7H6/UwP4pHwGIKLXbrJ7Prue ObAcPM25MgRNbjKdoKRKYhfvMR3CSBkjPQRAFlF/DA07H40Hcg3C3hNXbRPpNsh+4Ly+5 Uz7FsjZwicfYpUH3s+qmEYjfhcUdrgVaWEY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1638635894533100001 Content-Type: text/plain; charset="utf-8" Make sure the base address and length of the Raspberry Pi miniuart set in the ACPI tables match those in the official device tree. This will be useful for adding ACPI support to the miniuart Linux driver. Signed-off-by: Adrien Thierry --- .../RaspberryPi/Library/DualSerialPortLib/DualSerialPortLib.h | 2 +- Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Platform/RaspberryPi/Library/DualSerialPortLib/DualSerialPortL= ib.h b/Platform/RaspberryPi/Library/DualSerialPortLib/DualSerialPortLib.h index 24c0e5fd56..65e8aeb17c 100644 --- a/Platform/RaspberryPi/Library/DualSerialPortLib/DualSerialPortLib.h +++ b/Platform/RaspberryPi/Library/DualSerialPortLib/DualSerialPortLib.h @@ -17,7 +17,7 @@ #include =20 #define PL011_UART_REGISTER_BASE BCM2836_PL011_UART_BASE_ADDRESS -#define MINI_UART_REGISTER_BASE (BCM2836_MINI_UART_BASE_ADDRESS + 0x= 40) +#define MINI_UART_REGISTER_BASE BCM2836_MINI_UART_BASE_ADDRESS =20 // // 16550 UART register offsets and bitfields diff --git a/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h b/= Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h index a930c64af3..f34dddd58d 100644 --- a/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h +++ b/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h @@ -81,9 +81,9 @@ #define BCM2836_PL011_UART_BASE_ADDRESS (BCM2836_SOC_R= EGISTERS + BCM2836_PL011_UART_OFFSET) #define BCM2836_PL011_UART_LENGTH 0x00001000 =20 -#define BCM2836_MINI_UART_OFFSET 0x00215000 +#define BCM2836_MINI_UART_OFFSET 0x00215040 #define BCM2836_MINI_UART_BASE_ADDRESS (BCM2836_SOC_R= EGISTERS + BCM2836_MINI_UART_OFFSET) -#define BCM2836_MINI_UART_LENGTH 0x00000070 +#define BCM2836_MINI_UART_LENGTH 0x00000040 =20 #define BCM2836_I2C0_OFFSET 0x00205000 #define BCM2836_I2C0_BASE_ADDRESS (BCM2836_SOC_R= EGISTERS + BCM2836_I2C0_OFFSET) --=20 2.31.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#84349): https://edk2.groups.io/g/devel/message/84349 Mute This Topic: https://groups.io/mt/87501357/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-