Skip to content

Commit 4606780

Browse files
author
Stephen Warren
committed
ARM: tegra: move debug-macro.S to include/debug
Move Tegra's debug-macro.S over to the common debug macro directory. Move Tegra's debug UART selection menu into ARM's Kconfig.debug, so that all related options are selected in the same place. Tegra's uncompress.h is left in mach-tegra/include/mach; it will be removed whenever Tegra is converted to multi-platform. Signed-off-by: Stephen Warren <swarren@nvidia.com>
1 parent 7a28106 commit 4606780

3 files changed

Lines changed: 38 additions & 31 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,13 @@ choice
345345
Say Y here if you want kernel low-level debugging support
346346
on SOCFPGA based platforms.
347347

348+
config DEBUG_TEGRA_UART
349+
depends on ARCH_TEGRA
350+
bool "Use Tegra UART for low-level debug"
351+
help
352+
Say Y here if you want kernel low-level debugging support
353+
on Tegra based platforms.
354+
348355
config DEBUG_VEXPRESS_UART0_DETECT
349356
bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
350357
depends on ARCH_VEXPRESS && CPU_CP15_MMU
@@ -409,6 +416,36 @@ choice
409416

410417
endchoice
411418

419+
choice
420+
prompt "Low-level debug console UART"
421+
depends on DEBUG_LL && DEBUG_TEGRA_UART
422+
423+
config TEGRA_DEBUG_UART_AUTO_ODMDATA
424+
bool "Via ODMDATA"
425+
help
426+
Automatically determines which UART to use for low-level debug based
427+
on the ODMDATA value. This value is part of the BCT, and is written
428+
to the boot memory device using nvflash, or other flashing tool.
429+
When bits 19:18 are 3, then bits 17:15 indicate which UART to use;
430+
0/1/2/3/4 are UART A/B/C/D/E.
431+
432+
config TEGRA_DEBUG_UARTA
433+
bool "UART A"
434+
435+
config TEGRA_DEBUG_UARTB
436+
bool "UART B"
437+
438+
config TEGRA_DEBUG_UARTC
439+
bool "UART C"
440+
441+
config TEGRA_DEBUG_UARTD
442+
bool "UART D"
443+
444+
config TEGRA_DEBUG_UARTE
445+
bool "UART E"
446+
447+
endchoice
448+
412449
config DEBUG_LL_INCLUDE
413450
string
414451
default "debug/icedcc.S" if DEBUG_ICEDCC
@@ -418,6 +455,7 @@ config DEBUG_LL_INCLUDE
418455
default "debug/socfpga.S" if DEBUG_SOCFPGA_UART
419456
default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \
420457
DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1
458+
default "debug/tegra.S" if DEBUG_TEGRA_UART
421459
default "mach/debug-macro.S"
422460

423461
config EARLY_PRINTK

arch/arm/mach-tegra/include/mach/debug-macro.S renamed to arch/arm/include/debug/tegra.S

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* arch/arm/mach-tegra/include/mach/debug-macro.S
3-
*
42
* Copyright (C) 2010,2011 Google, Inc.
53
* Copyright (C) 2011-2012 NVIDIA CORPORATION. All Rights Reserved.
64
*

‎arch/arm/mach-tegra/Kconfig‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -57,35 +57,6 @@ config TEGRA_AHB
5757
which controls AHB bus master arbitration and some
5858
perfomance parameters(priority, prefech size).
5959

60-
choice
61-
prompt "Low-level debug console UART"
62-
63-
config TEGRA_DEBUG_UART_AUTO_ODMDATA
64-
bool "Via ODMDATA"
65-
help
66-
Automatically determines which UART to use for low-level debug based
67-
on the ODMDATA value. This value is part of the BCT, and is written
68-
to the boot memory device using nvflash, or other flashing tool.
69-
When bits 19:18 are 3, then bits 17:15 indicate which UART to use;
70-
0/1/2/3/4 are UART A/B/C/D/E.
71-
72-
config TEGRA_DEBUG_UARTA
73-
bool "UART-A"
74-
75-
config TEGRA_DEBUG_UARTB
76-
bool "UART-B"
77-
78-
config TEGRA_DEBUG_UARTC
79-
bool "UART-C"
80-
81-
config TEGRA_DEBUG_UARTD
82-
bool "UART-D"
83-
84-
config TEGRA_DEBUG_UARTE
85-
bool "UART-E"
86-
87-
endchoice
88-
8960
config TEGRA_EMC_SCALING_ENABLE
9061
bool "Enable scaling the memory frequency"
9162

0 commit comments

Comments
 (0)