arm: apple: Disable debug UART
PATCH 1/1 arm: apple: Disable debug UART
The address of the debug UART varies differs between the M1 and the M1 Pro/Max SoCs. So we have to disable it to make a single U-Boot binary that works on all SoC generations. Leave the settings for the base address and clock rate of the M1 in place to make it easier to re-enable the debug UART when needed.
--- configs/apple_m1_defconfig | 1 - 1 file changed, 1 deletion(-)
configs/apple_m1_defconfig +0 -1
@@ -3,7 +3,6 @@ CONFIG_ARCH_APPLE=y CONFIG_DEFAULT_DEVICE_TREE="t8103-j274" CONFIG_DEBUG_UART_BASE=0x235200000 CONFIG_DEBUG_UART_CLOCK=24000000 -CONFIG_DEBUG_UART=y CONFIG_SYS_LOAD_ADDR=0x0 CONFIG_USE_PREBOOT=y # CONFIG_DISPLAY_CPUINFO is not set
Signature · 1 line
2.35.1
Hi Mark,
Quoted 6 lines · Mark Kettenis
The address of the debug UART varies differs between the M1 and the M1 Pro/Max SoCs. So we have to disable it to make a single U-Boot binary that works on all SoC generations. Leave the settings for the base address and clock rate of the M1 in place to make it easier to re-enable the debug UART when needed.
How about adding some docs about how to, and what the addresses are?
Quoted 19 lines
Signed-off-by Mark Kettenis <[email protected]>--- configs/apple_m1_defconfig | 1 - 1 file changed, 1 deletion(-)configs/apple_m1_defconfig +0
-2@@ -3,7 +3,6 @@ CONFIG_ARCH_APPLE=y CONFIG_DEFAULT_DEVICE_TREE="t8103-j274" CONFIG_DEBUG_UART_BASE=0x235200000 CONFIG_DEBUG_UART_CLOCK=24000000 -CONFIG_DEBUG_UART=y CONFIG_SYS_LOAD_ADDR=0x0 CONFIG_USE_PREBOOT=y # CONFIG_DISPLAY_CPUINFO is not set --
Quoted 2 lines
2.35.1
Regards,
SImon
Quoted 7 lines
From: Simon Glass <[email protected]>
Date: Fri, 11 Feb 2022 13:29:15 -0700Hi Mark,
Quoted 1 line · Mark Kettenis
Quoted 7 lines
Quoted 5 lines
The address of the debug UART varies differs between the M1 and the M1 Pro/Max SoCs. So we have to disable it to make a single U-Boot binary that works on all SoC generations. Leave the settings for the base address and clock rate of the M1 in place to make it easier to re-enable the debug UART when needed.
How about adding some docs about how to, and what the addresses are?
Yes I can do that. A section at the end of doc/board/apple/m1.rst? Is it ok if I provide a single update to that file for the M1 Pro/Max support?
Quoted 24 lines
Quoted 18 lines
Signed-off-by Mark Kettenis <[email protected]>--- configs/apple_m1_defconfig | 1 - 1 file changed, 1 deletion(-)configs/apple_m1_defconfig +0
-2@@ -3,7 +3,6 @@ CONFIG_ARCH_APPLE=y CONFIG_DEFAULT_DEVICE_TREE="t8103-j274" CONFIG_DEBUG_UART_BASE=0x235200000 CONFIG_DEBUG_UART_CLOCK=24000000 -CONFIG_DEBUG_UART=y CONFIG_SYS_LOAD_ADDR=0x0 CONFIG_USE_PREBOOT=y # CONFIG_DISPLAY_CPUINFO is not set --Quoted 2 lines
2.35.1
Regards,
SImon
Hi Mark,
Quoted 14 lines · Mark Kettenis
Quoted 14 lines
From: Simon Glass <[email protected]>
Date: Fri, 11 Feb 2022 13:29:15 -0700Hi Mark,
Quoted 6 lines · Mark Kettenis
The address of the debug UART varies differs between the M1 and the M1 Pro/Max SoCs. So we have to disable it to make a single U-Boot binary that works on all SoC generations. Leave the settings for the base address and clock rate of the M1 in place to make it easier to re-enable the debug UART when needed.
Quoted 5 lines
Quoted 1 line
How about adding some docs about how to, and what the addresses are?
Yes I can do that. A section at the end of
doc/board/apple/m1.rst? Is it ok if I provide a single update to that file for the M1 Pro/Max support?
Sounds right, just enough to explain how to enable it.
Regards,
Simon
Quoted 25 lines
Quoted 25 lines
Quoted 19 lines
Signed-off-by Mark Kettenis <[email protected]>--- configs/apple_m1_defconfig | 1 - 1 file changed, 1 deletion(-)configs/apple_m1_defconfig +0
-2@@ -3,7 +3,6 @@ CONFIG_ARCH_APPLE=y CONFIG_DEFAULT_DEVICE_TREE="t8103-j274" CONFIG_DEBUG_UART_BASE=0x235200000 CONFIG_DEBUG_UART_CLOCK=24000000 -CONFIG_DEBUG_UART=y CONFIG_SYS_LOAD_ADDR=0x0 CONFIG_USE_PREBOOT=y # CONFIG_DISPLAY_CPUINFO is not set --Quoted 2 lines
2.35.1
Regards,
SImon
Quoted 20 lines · Simon Glass
Hi Mark,
Quoted 17 lines · Mark Kettenis
Quoted 8 lines
From: Simon Glass <[email protected]>
Date: Fri, 11 Feb 2022 13:29:15 -0700Hi Mark,
Quoted 1 line · Mark Kettenis
Quoted 7 lines
Quoted 5 lines
The address of the debug UART varies differs between the M1 and the M1 Pro/Max SoCs. So we have to disable it to make a single U-Boot binary that works on all SoC generations. Leave the settings for the base address and clock rate of the M1 in place to make it easier to re-enable the debug UART when needed.
How about adding some docs about how to, and what the addresses are?
Yes I can do that. A section at the end of
doc/board/apple/m1.rst?
Just list the relevant settings like in
doc/board/sipeed/maix.rst:591doc/board/emulation/qemu-arm.rst:118
Quoted 14 lines
Quoted 2 lines
Is it ok if I provide a single update to that file for the M1 Pro/Max support?
Sounds right, just enough to explain how to enable it.
Regards,
SimonQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Mark Kettenis <[email protected]>--- configs/apple_m1_defconfig | 1 - 1 file changed, 1 deletion(-)
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
configs/apple_m1_defconfig CONFIG_ARCH_APPLE=y · line 5
Quoted 8 lines
configs/apple_m1_defconfig +0
-0@@ -3,7 +3,6 @@ CONFIG_ARCH_APPLE=y CONFIG_DEFAULT_DEVICE_TREE="t8103-j274" CONFIG_DEBUG_UART_BASE=0x235200000 CONFIG_DEBUG_UART_CLOCK=24000000
Please, use 'make savedefconfig' to create a consistent defconfig, and copy the generated defconfig to configs/apple_m1_defconfig before resubmitting.
Best regards
Heinrich
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 7 lines
configs/apple_m1_defconfig +0
-2-CONFIG_DEBUG_UART=y CONFIG_SYS_LOAD_ADDR=0x0 CONFIG_USE_PREBOOT=y # CONFIG_DISPLAY_CPUINFO is not set --2.35.1
Regards,
SImon