From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VAe+Lsdf; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: athierry@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638552845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7u5DK41+YrO3LRIhRGBrxjWLclWltYDBMTQW7CCICt0=; b=VAe+Lsdf2imEyIznw0A1WBHwnK/VJQzM7vtPvIz7EAhDv2crUdmUPmImoAqwniL7FzmkX1 mXtuVCv2LsjwhQ3KZZQUCdJD2Kjy84ADX7tdNWICFxaKFzCiH0ex1i8eDnfpEraycK75UR b8/81YBNihlR+1PnvfjURnI1CH7Fxjg= 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 Received: by mail-qk1-f198.google.com with SMTP id s8-20020a05620a254800b0046d6993d174so4005681qko.3 for ; Fri, 03 Dec 2021 09:34:04 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=0hntH5w7zUFnZ2ftdTI5Sk6drce0x2Z1r9G25hxXav4=; b=UHo3eCK/OX4pYqqq0IzUudecnWGX1xXT33k134XxuumEc6sSLlJTgPXXYyo6aQQrYf hqg+xd0qvWWACOscRB9gWRXVw7EwOtL/jVTkMRGdrsoBcUxZ9BdXkw5Qz+TFfxedLiDc W3gVnLlcjIebrmEHO1D6EDwoYFdldVdu8aKqQgXZTj2WtTJIqVx7KmxM8Ep+VV2rEBew NR3c0zdbXPXMNSJ2dX6lpNyyCvkbp+5z27bXiIuMtfQus3yCMKWYLI+xwKfVWrWytUbu zxdxDxkNkzlScIWXgQrOuYEcVepiYf0iOZcSL15BTEim3TAfpyALsgF8EHN/jMejzOx6 ViIA== X-Gm-Message-State: AOAM530/iYSu9LmwzyA5114SRyjyciVnVyEldpcXz1w+zP45lfFQfRIF BHOuLGyS6FOHuP5SqQJn4SyQ+lht8Q7GXJl+2YCPDtxPxSSksgwhSkLGuSZbsLjobgCA3o/NADA VdLuXjgpR8BgxC/BM6uSzmb7Vri2XUQ//XPyzNTsB4236wJha+luQTSAn+3DEevTFKQ== 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) Return-Path: 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: athierry@redhat.com To: devel@edk2.groups.io Cc: Adrien Thierry , Ard Biesheuvel , Leif Lindholm , Pete Batard Subject: [edk2-platforms PATCH] Platform/RaspberryPi: Fix miniuart base address and length Date: Fri, 3 Dec 2021 12:32:10 -0500 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=athierry@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="US-ASCII" 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 =0D =20=0D #define PL011_UART_REGISTER_BASE BCM2836_PL011_UART_BASE_ADDRESS=0D -#define MINI_UART_REGISTER_BASE (BCM2836_MINI_UART_BASE_ADDRESS + 0x= 40)=0D +#define MINI_UART_REGISTER_BASE BCM2836_MINI_UART_BASE_ADDRESS=0D =20=0D //=0D // 16550 UART register offsets and bitfields=0D 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)=0D #define BCM2836_PL011_UART_LENGTH 0x00001000=0D =20=0D -#define BCM2836_MINI_UART_OFFSET 0x00215000=0D +#define BCM2836_MINI_UART_OFFSET 0x00215040=0D #define BCM2836_MINI_UART_BASE_ADDRESS (BCM2836_SOC_R= EGISTERS + BCM2836_MINI_UART_OFFSET)=0D -#define BCM2836_MINI_UART_LENGTH 0x00000070=0D +#define BCM2836_MINI_UART_LENGTH 0x00000040=0D =20=0D #define BCM2836_I2C0_OFFSET 0x00205000=0D #define BCM2836_I2C0_BASE_ADDRESS (BCM2836_SOC_R= EGISTERS + BCM2836_I2C0_OFFSET)=0D --=20 2.31.1