public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-platforms PATCH] Platform/RaspberryPi: Fix miniuart base address and length
@ 2021-12-03 17:32 athierry
  2021-12-13 14:54 ` Adrien Thierry
  0 siblings, 1 reply; 10+ messages in thread
From: athierry @ 2021-12-03 17:32 UTC (permalink / raw)
  To: devel; +Cc: Adrien Thierry, Ard Biesheuvel, Leif Lindholm, Pete Batard

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 <athierry@redhat.com>
---
 .../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/DualSerialPortLib.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 <IndustryStandard/Bcm2836Gpio.h>
 
 #define PL011_UART_REGISTER_BASE      BCM2836_PL011_UART_BASE_ADDRESS
-#define MINI_UART_REGISTER_BASE       (BCM2836_MINI_UART_BASE_ADDRESS + 0x40)
+#define MINI_UART_REGISTER_BASE       BCM2836_MINI_UART_BASE_ADDRESS
 
 //
 // 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_REGISTERS + BCM2836_PL011_UART_OFFSET)
 #define BCM2836_PL011_UART_LENGTH                           0x00001000
 
-#define BCM2836_MINI_UART_OFFSET                            0x00215000
+#define BCM2836_MINI_UART_OFFSET                            0x00215040
 #define BCM2836_MINI_UART_BASE_ADDRESS                      (BCM2836_SOC_REGISTERS + BCM2836_MINI_UART_OFFSET)
-#define BCM2836_MINI_UART_LENGTH                            0x00000070
+#define BCM2836_MINI_UART_LENGTH                            0x00000040
 
 #define BCM2836_I2C0_OFFSET                                 0x00205000
 #define BCM2836_I2C0_BASE_ADDRESS                           (BCM2836_SOC_REGISTERS + BCM2836_I2C0_OFFSET)
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-12-15 23:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-03 17:32 [edk2-platforms PATCH] Platform/RaspberryPi: Fix miniuart base address and length athierry
2021-12-13 14:54 ` Adrien Thierry
2021-12-13 15:14   ` Ard Biesheuvel
2021-12-13 19:17     ` Andrei Warkentin
2021-12-14  5:39       ` [edk2-devel] " Jeremy Linton
2021-12-14  6:21         ` Andrei Warkentin
2021-12-14 13:35           ` Samer El-Haj-Mahmoud
2021-12-14 16:42           ` Jeremy Linton
2021-12-14 22:49             ` Adrien Thierry
2021-12-15 23:53               ` Jeremy Linton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox